%
Results = 15
Divider = "search_divider"
Bgc1 = "search"
Bgc2 = "search_odd"
rActin = Request.QueryString("Actin")
rQuestion = Request.QueryString("Question")
rCat = Request.QueryString("Cat")
rGameId = Request.QueryString("GameId")
rArmy = Request.QueryString("Army")
rSubArmy = Request.QueryString("SubArmy")
rJump = Request.QueryString("Jump")
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Wd"
%>
White Dwarf Search Page
Here I offer an exclusive search engine to search the pages of the White Dwarf Magazine
The articles are categorized but not scanned.
The only thing left for you to do is search your own stack of White Dwarfs, open the copy on the right page and read on!
Perhaps in the future, when time is unlimited, I will scan some of the articles.
But for now, have fun!
<%
If lcase(rActin) = "search" then
Sql = "Select * From Artikelen Where Trefwoorden Like '%" & rQuestion & "%'"
CntRes = "Select count(*) from Artikelen Where Trefwoorden Like '%" & rQuestion & "%'"
If rCat <> "" Then
Sql = Sql + "and Cat Like '%" & rCat & "%'"
CntRes = CntRes +"and Cat Like '%" & rCat & "%'"
End if
If rArmy <> "" Then
Sql = Sql + "and Leger Like '%" & rArmy & "%'"
CntRes = CntRes +"and Leger Like '%" & rArmy & "%'"
End if
If rSubArmy <> "" Then
Sql = Sql + "and Spec_leger Like '%" & rSubArmy & "%'"
CntRes = CntRes +"and Spec_leger Like '%" & rSubArmy & "%'"
End if
Sql = Sql + " Order By Game_id, Leger, Spec_leger, Cat, Titel"
Set Rs = Conn.Execute(Sql)
Set Rt = Conn.Execute(CntRes)
End if
If rActin = "" then
Sql = "Select * From Artikelen Where Leger='" & rac & "' Order By Game_id, Leger, Spec_leger, Titel"
Set Rs = Conn.Execute(Sql)
End if
%>
| | | | | | |
<%
If lcase(rActin) = "search" then
Count = rJump
If rJump > 1 Then
Rs.Move(rJump)
end if
If Rt(0) = 0 Then
%> We found no results for your entry '<% = rQuestion %>'
<% if rCat <> "" Then %>
and Category = '<% = rCat %>'
<% End if %>
<% if rArmy <> "" Then %>
and Army = '<% = rArmy %>'
<% End if %>
<% if rSubArmy <> "" Then %>
and SubArmy '<% = rSubArmy %>'
<% End if %>
|
<%Else
%>
We found <% = Rt(0) %> entries containing your input '<% = rQuestion %>'
<% if rCat <> "" Then %>
and Category = '<% = rCat %>'
<% End if %> <% if rArmy <> "" Then %>
and Army = '<% = rArmy %>'
<% End if %>
<% if rSubArmy <> "" Then %>
and SubArmy '<% = rSubArmy %>'
<% End if %>
|
|
|
<% If Rt(0) > Results then
If rJump = "" Or rJump =0 Then %>
| We display the result from 1 to <% = Results %> |
|
<% For j = 1 to ((Rt(0)+Results)/Results)
If (J*Results) = (Count+Results) Then %>
[<% = j %>]
<% Else %>
<% = j %>
<% End if %>
<% Next %>
|
Next
|
<% Else
If (rJump + Results) => Rt(0) Then %>
| We display the result from <% = rJump + 1 %> to <% = Rt(0) %>' |
|
<% For j = 1 to ((Rt(0)+Results)/Results)
If (J*Results) = (Count+Results) Then %>
[<% = j %>]
<% Else %>
<% = j %>
<% End if %>
<% Next %>
|
Prev
|
<% Else %>
| We display the result from <% = rJump + 1 %> to <% = rJump + Results %> |
Prev
|
<% For j = 1 to ((Rt(0)+Results)/Results)
If (J*Results) = (Count+Results) Then %>
[<% = j %>]
<% Else %>
<% = j %>
<% End if %>
<% Next %>
|
Next
|
<% End if %>
<% End if %>
|
<% End if %>
No | Publication | Game | Army | Title | Keywords |
Page | Category | Sub Army | Sub Title |
|
|
<%
For I = (rJump + 1) to (rJump + Results)
If not Rs.eof then
Count = Count + 1
If count/2 = int(count/2) Then
Bgc = Bgc1
Else
Bgc = Bgc2
End if
%>
<% = Count%> |
<% If Rs("Pub_nr") <> "" Then %>
<% = Rs("Pub_nr")%> |
<% Else %>
|
<% End if %>
<% If Rs("Game_id") <> "" Then %>
<% Gid = Rs("Game_id")
Sql = "Select * From Gamesystem Where Game_id = " & Gid
Set Rt = Conn.Execute(Sql)
If rt.eof = false then
%> <% = Rt("Game_naam") %>
|
<% End if
Else %>
|
<% End if %>
<% If Rs("Leger") <> "" Then %>
<% = Rs("Leger")%> |
<% Else %>
|
<% End if %>
<% If Rs("Titel") <> "" Then %>
<% = Rs("Titel")%> |
<% Else %>
|
<% End if %>
<% = Rs("Trefwoorden")%> |
<% If Rs("Pagina") <> "" Then %>
<% = Rs("Pagina")%> |
<% Else %>
|
<% End if %>
<% If Rs("Cat") <> "" Then %>
<% = Rs("Cat")%> |
<% Else %>
|
<% End if %>
<% If Rs("Spec_leger") <> "" Then %>
<% = Rs("Spec_leger")%> |
<% Else %>
|
<% End if %>
<% If Rs("Sub_titel") <> "" Then %>
<% = Rs("Sub_titel")%> |
<% Else %>
|
<% End if %>
|
<% Rs.MoveNext
End if
Next
%>
|
No | Publication | Game | Army | Title | Keywords |
Page | Category | Sub Army | Sub Title |
|
|
<%
End if
End if
conn.Close
%>
© Monster & Co <% = Date %>
This page is automatically generated