% Option Explicit %>
<%
' Response.write Session("MySql")
'If this is the first passthru, and not a request for details, do the following:
If Request.Querystring("OrgID") = "" then
Dim connectme, mypage, mypagesize, maxcount, howmanyrecs, rs, sql, pad, conn, scriptname, counter, ref
%>
Fungal Genetics Strain Search Interim Return Page
<% 'make database connection
Set connectme = Server.CreateObject("ADODB.Connection")
connectme.open "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=D:\fgsc_data\OrderData.mdb"
sql = Session("MySql") 'grab Session sql statement
mypage=request.querystring("whichpage") 'determine current page increment
If mypage="" then 'if first pass, then set page to 1
mypage=1
end if
mypagesize=Session("No") 'set maximum records per page to 10
set rs=Server.CreateObject("ADODB.Recordset")
rs.cursorlocation=aduseclient
rs.cachesize=5
rs.open sql, connectme
If rs.RecordCount < 1 then 'display error page if no records found
%>
<% Else 'if records are found, display interim page
rs.movefirst
rs.pagesize=mypagesize 'set recordset page size to 10
maxcount=cint(rs.pagecount) 'set maxcount to number of pages
rs.absolutepage=mypage 'set current page marker
howmanyrecs=0 'set counter to 0
%>

|
FGSC Strain Search Results =
<%= rs.RecordCount %> Each page may contain a maximum
of <%= mypagesize %> records. This is page <%= mypage %> of <%= maxcount %>, or
you can select another page : |
<% 'print page pad for navigation if there are more than 10 records
If rs.RecordCount > 10 then
pad="0"
scriptname=request.servervariables("script_name")
for counter=1 to maxcount
If counter>=10 then
pad=""
end if
ref="" & pad & counter & ""
response.write ref & " "
'if counter mod 10 = 0 then 'set to 10 per line for display
' response.write " "
'end if
next
End If
%> |
Return to
Strain Search Form. |
|
|
|
<% 'start printing the information for the 10 records
do while not rs.eof and howmanyrecs < rs.pagesize
%>
<%= rs.Fields("StrainName").Value %> ;
<% If rs.Fields("MT").Value <> "" then response.write "Mating Types: " & rs.Fields("MT").Value & "- - -" %>
Species: <%= rs.Fields("Species").Value %> | ">More details?... |
Genotype: <%= rs.Fields("REPORTING GENES").Value %>
<% If rs.Fields("ALLELE").Value <> "" then response.write "Alleles: " & rs.Fields("ALLELE").Value & " " %>
<% If rs.Fields("LNKGRP").Value <> "" then response.write "Linkage Group(s): " & rs.Fields("LNKGRP").Value & " " %>
<% If rs.Fields("GENEBACK").Value <> "" then response.write "Genetic Background: " & rs.Fields("GENEBACK").Value & " " %>
<% If rs.Fields("MUTAGEN").Value <> "" then response.write "Mutagen: " & rs.Fields("MUTAGEN").Value & " " %>
<% If rs.Fields("STOCK").Value <> "" then response.write "Stock No. from Other Collection: " & rs.Fields("STOCK").Value & " " %>
<% If rs.Fields("DEPOSNAME").Value <> "" then response.write "Depositor of Strain: "& rs.Fields("DEPOSNAME").Value & " " %>
<% If rs.Fields("OPPMT").Value <> "" then response.write "Strain of Opposite Mating Type: " & rs.Fields("OPPMT").Value & " " %>
<% If rs.Fields("GLASGOW").Value <> "" then response.write "Glasgow Number: " & rs.Fields("GLASGOW").Value & " " %>
<% If rs.Fields("TRANS").Value <> "" then response.write "Translocations: " & rs.Fields("TRANS").Value & " " %>
<% If rs.Fields("REF1").Value <> "" then response.write " Reference: " & rs.Fields("REF1").Value & " " %>
<% If rs.Fields("REF2").Value <> "" then response.write " Reference: " & rs.Fields("REF2").Value & " " %>
|
<% rs.movenext
howmanyrecs=howmanyrecs+1 'increment variable to count records
loop
%>
<% 'print page pad at bottom for navigation
If rs.RecordCount > 10 then
Response.write "Select another page: | "
pad="0"
scriptname=request.servervariables("script_name")
for counter=1 to maxcount
If counter>=10 then
pad=""
end if
ref="" & pad & counter & ""
response.write ref & " "
'if counter mod 10 = 0 then
' response.write " "
'end if
next
Response.write " | "
End If
%>
FGSC fees are described
here Return to Strain Search Form. |
|
|