www.pudn.com > Xiao5u_Exam_v2011627.rar > ResultSclass.asp, change:2010-12-10,size:1252b


<!--#include file="inc/right.asp"-->  
<!--#include file="inc/conn.asp"--> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<title>后台管理</title> 
<link href="images/main.css" rel="stylesheet" type="text/css"> 
</head> 
<body> 
<table width="100%" border="0" cellpadding="0" cellspacing="0"> 
  <tr valign="top"> 
    <td bgcolor="#FFFFFF"><br> 
      <table width="96%"  border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#aec3de"> 
        <tr align="center" bgcolor="#F2FDFF"> 
          <td class="optiontitle" colspan="6">班级列表</td> 
        </tr> 
<% 
set rs=server.createobject("adodb.recordset")  
sql="select * from Sclass"  
rs.open sql,conn,1,1 
%> 
	    <tr bgcolor="#FFFFFF"> 
<% 
if rs.eof and rs.bof then 
response.write "<td>还没有任何班级,请先添加班级。</td>" 
else 
row_count=1 
do while not rs.eof 
%> 
          <td height="25"><a href="Result.asp?action=list&ClassName=<%=rs("Cname")%>"><%=rs("Cname")%></a></td> 
<% if row_count mod 6 =0 then %> 
        </tr> 
        <tr bgcolor="#FFFFFF"> 
<% 
end if 
%> 
<% 
rs.movenext 
row_count=row_count+1 
loop 
end if 
rs.close 
set rs=nothing 
%> 
       </tr> 
      </table> 
    </td> 
  </tr> 
</table> 
</body> 
</html>