Basic HTML version of Foils prepared July 5 98

Foil 11 ASP - Example Code I (contd.)

From FMS: Forces Modeling and Simulation Handout JSU HPC Summer Institute for Undergraduates, Jackson MS -- June 15 1998. by Wojtek Furmanski, Subhash Nair, Tom Pulikal


<%
if typelist.EOF then `if no records are present then print a message
%>
<!-- There are no records in the system -->
<% else %> <!-- otherwise print the data -->
<table border="0" cellspacing="2" cellpadding="2" bgcolor="<% = tabbgcol %>"
align="center" valign="middle" width="90%">
<tr align="left" valign="middle">
<%
Do While Not typelist.EOF ` print the data in a loop and construct the url
clsid = typelist("clsid") ` on the fly
sx = "<a target=main href=sp_classes_rec.asp?id=" & clsid & ">"
` if the record is the selected one then change the
` background color
if(StrComp(selid,clsid,vbBinaryCompare) = 0) then
sx = sx & "<font color=" & thfgcol & ">" & typelist("cname") & "</font></a>"
%>
<th align="left" valign="middle" nowrap bgcolor="<% = hgltcol %>" width="90%">
<% = sx %>



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998