📄 queryscore.asp
字号:
<!--#include file="conn2.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="queryscore.asp">
<td bgcolor="#FFFFFF"> 成绩复查
:
<hr></td>
</form>
</tr>
</table>
<form name="viewdatabase" method="post">
<table width="97%" border="0" cellpadding="5" cellspacing="1" bgcolor="#5A8BCE" id="AutoNumber1" style="border-collapse: collapse">
<tr bgcolor="#FFFFFF" background="file:///E|/项目/project/images/backt.gif">
<td height="20" colspan="6"> 以下是你所有已考试过的科目</td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="16%" height="20" align="center">序号</td>
<td width="14%" align="center">考试科目</td>
<td width="17%" align="center">试卷编码</td>
<td width="16%" align="center">答题时间</td>
<td width="16%" align="center">交卷时间</td>
<td width="21%" align="center">成绩</td>
</tr>
<%
sql="select * from score1 where stu_num="& request.cookies("stu_num")
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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -