www.gusucode.com > ASP毕业设计在线考试管理系统源码 > ASP毕业设计在线考试管理系统源码\code\user\searchmyscore.asp
<!--#include file="db.asp"--> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>在线考试系统</title> <link href="../Style.css" rel="stylesheet" type="text/css"> </head> <body> <table border="0" cellpadding="2" cellspacing="0" bgcolor="#99CCFF" width="100%"> <tr> <form name="searchscoreform" method="POST" action="searchmyscore.asp"> <td bgcolor="#FFFFFF">当前位置:在线考试系统 -> 成绩查询 <hr></td> </form> </tr> </table> <form name="viewdatabase" method="post"> <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#5A8BCE" id="AutoNumber1" style="border-collapse: collapse"> <tr bgcolor="#E6F7FF"> <td height="20" colspan="6"> 下面显示的是您本人的考试科目</td> </tr> <tr bgcolor="#E6F7FF"> <td align="center" height="20"><b>序号</b></td> <td align="center"><b>考试科目</b></td> <td align="center"><b>试卷编码</b></td> <td align="center"><b>开始答题时间</b></td> <td align="center"><b>交卷时间</b></td> <td align="center"><b>成绩</b></td> </tr> <% sql="select * from score where userid="& request.cookies("userid") set rs=server.createobject("adodb.recordset") rs.open sql,conn,3,2 on error resume next rs.PageSize = 10 Page = CLng(Request("Page")) If Page < 1 Then Page = 1 If Page > rs.PageCount Then Page = rs.PageCount i=page+(page-1)*9 rs.AbsolutePage = Page For iPage = 1 To rs.PageSize %> <tr bgcolor="#FFFFFF"> <td height="20" align="center"><%=i%> </td> <td align="center"><%=rs("subject")%> </td> <td align="center"><%=rs("testid")%> </td> <td align="center"><%=rs("starttime")%> </td> <td align="center"><%=rs("endtime")%> </td> <td align="center"><%=rs("score")%> </td> </tr> <% rs.MoveNext If rs.EOF Then Exit For i=i+1 Next %> </table> </form> <div ALIGN="right"> <form ACTION="<%=Myself%>?suject=<%=subject%>" METHOD="GET"> <table> <tr> <td> <p ALIGN="right"><%If Page <> 1 Then ' 如果不是位于第一页%> <a href="<%=Myself%>?Page=1&suject=<%=subject%>">第一页</a> <a HREF="<%=Myself%>?Page=<%=(Page-1)%>&suject=<%=subject%>">上一页</a> <% End If If Page <> rs.PageCount Then ' 如果不是位于最后一页 %> <a HREF="<%=Myself%>?Page=<%=(Page+1)%>&suject=<%=subject%>">下一页</a> <a HREF="<%=Myself%>?Page=<%=rs.PageCount%>&suject=<%=subject%>">最后一页</a> <% End If %> <font SIZE="2">输入页次:</font><input NAME="Page" SIZE="3" CLASS="s01"> <font SIZE="2">页次:</font><font COLOR="Red" SIZE="2"><%=Page%>/<%=rs.PageCount%></font></p> <p> </td> </tr> </table> </form> </div> </body> </html>