 |
|
 |
 |
| Publish |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| <%=sid%> |
 |
<%if sid<>"" then%>
Click the red arrows to sort by student name, grade, or title. Click the student's name to read the selection
|
 |
<%If Installment = "Persuasive" then%>
 |
"> Student
|
 |
 |
"> Grade
|
 |
 |
"> Title or Nominee
|
<%else%>
 |
"> Student
|
 |
 |
"> Grade
|
 |
 |
"> Title
|
<%end if%>
<% If Installment = "Persuasive" then
do while not rs.EOF%>
 |
&topic=<%=tsid%>"><%=rs("firstname")%> |
 |
 |
<%=rs("grade")%> |
 |
 |
<%=rs("Imm_name")%><%= " " %><%=rs("Imm_country")%><%=rs("Title")%> |
<%
rs.MoveNext
loop
rs.close
set rs=nothing
else
do while not rs.EOF%>
 |
"><%=rs("firstname")%> |
 |
 |
<%=rs("grade")%> |
 |
 |
<%=rs("title")%> |
<%
rs.MoveNext
loop
rs.close
set rs=nothing
end if
else
dim astates, hold(10000), found(10000)
aStates = Array( "Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", _
"Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", _
"Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", _
"Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", _
"Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", _
"New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", _
"Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", _
"South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", _
"West Virginia", "Wisconsin", "Wyoming", "Guam", "Puerto Rico", "Virgin Islands", _
"Alberta", "British Columbia", "Manitoba", "New Brunswick", "Newfoundland ", _
"Nova Scotia", "Northwest Territories", "Ontario", "Prince Edward Island", _
"Quebec", "Saskatchewan", "Yukon", "Other" )
tsid=replace(tsid,"%20"," ")
'Response.Write tsid
If Installment = "Persuasive" then
Set rs1 = Server.CreateObject("ADODB.Recordset")
strSQL1 = "SELECT * FROM wh_historymakers where topic = '"& tsid &"' and status=2 order by state"
'strSQL1 = "SELECT state FROM ww_2001 where hold=1 order by state"
rs1.Open strSQL1, "DSN=Network;UID=Network;PWD=olives1234;APP=WW", 1 ,3
do while not rs1.EOF
count=count+1
hold(count)=rs1("state") ' Bring into array
rs1.MoveNext
loop
rs1.Close
set rs1=nothing
for intloop1=1 to count
statelu=hold(intloop1)
For intLoop = 0 To 65
if statelu = astates(intloop) then 'Found State null so unique
fit=fit+1
found(fit)=astates(intloop)
astates(intloop)=""
end if
next
next
else
Set rs1 = Server.CreateObject("ADODB.Recordset")
strSQL1 = "SELECT * FROM ww_2001 where topic = '"& tsid &"' and hold=1 order by state"
'strSQL1 = "SELECT state FROM ww_2001 where hold=1 order by state"
rs1.Open strSQL1, "DSN=dotcom;UID=dotcom;PWD=well1234;APP=WW", 1 ,3
do while not rs1.EOF
count=count+1
hold(count)=rs1("state") ' Bring into array
rs1.MoveNext
loop
rs1.Close
set rs1=nothing
for intloop1=1 to count
statelu=hold(intloop1)
For intLoop = 0 To 65
if statelu = astates(intloop) then 'Found State null so unique
fit=fit+1
found(fit)=astates(intloop)
astates(intloop)=""
end if
next
next
end if%>
|
 |
<%If Installment = "Persuasive" then
for show=1 to fit
Set rs = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM wh_historymakers where topic = '"& tsid &"' and status=2 and state = '"& found(show) &"' order by firstname"
'Response.Write strsql
rs.Open strSQL, "DSN=network;UID=network;PWD=olives1234;APP=WW", 1 ,3
%>
| <%=found(show)%> |
 |
<%
do while not rs.EOF
%>
 |
Student
|
 |
 |
Grade
|
 |
 |
Title
|
 |
&topic=<%=topic%>"><%=rs("firstname")%> |
 |
 |
<%=rs("grade")%> |
 |
 |
<%=rs("Imm_name")%><%= " " %><%=rs("Imm_country")%><%=rs("Title")%> |
 |
<%
rs.MoveNext
loop
'rs.movefirst
%>
|
<%
next
'rs.close
set rs=nothing
else
for show=1 to fit
Set rs = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM ww_2001 where topic = '"& tsid &"' and hold=1 and state = '"& found(show) &"' order by firstname"
'Response.Write strsql
rs.Open strSQL, "DSN=dotcom;UID=dotcom;PWD=well1234;APP=WW", 1 ,3
%>
| <%=found(show)%> |
 |
<%
do while not rs.EOF
%>
 |
Student
|
 |
 |
Grade
|
 |
 |
Title
|
 |
&topic=<%=tsid%>"><%=rs("firstname")%> |
 |
 |
<%=rs("grade")%> |
 |
 |
<%=rs("title")%> |
 |
<%
rs.MoveNext
loop
'rs.movefirst
%>
|
<%
next
'rs.close
set rs=nothing
end if
end if
%>
|
|
 |
 |
 |
 |
 |
|
 |
|
|
<%
doFooter
%>
|