📄 testlog.asp
字号:
<!--#include file="conn.inc"-->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
<link rel="stylesheet" type="text/css" href="css.css">
<script language="javascript">
function userinfo(userid)
{
page="userinfo.asp?userid="+userid
window.open (page,'查看用户信息','width=260,height=300')
}
function testinfo(testid)
{
page="testinfo.asp?testid="+testid
window.open (page,'查看考试信息','width=260,height=300')
}
</script>
</head>
<body>
<table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="25">
<tr>
<td width="100%">当前位置:<a href="news.asp">系统管理</a> >
<a href="searchscore.asp">查询成绩</a> > 考试记录</td>
</tr>
</table>
<table border="1" cellpadding="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber1">
<tr>
<td bgcolor="#E1E1E1" height="30" colspan="4">
<p align="center"><b><font face="黑体" size="3">[</font><font color="#FF0000" size="3" face="黑体"><%=request("starttime")%></font><font size="3" face="黑体">]—[</font><font color="#FF0000" size="3" face="黑体"><%=request("endtime")%></font><font size="3" face="黑体">]</font><font color="#FF0000" size="3" face="黑体"><%=request("subject")%></font><font size="3" face="黑体">考试纪录</font></b></td>
</tr>
<tr>
<td align="center" bgcolor="#E1E1E1" height="20" width="30"><b>序号</b></td>
<td align="center" bgcolor="#E1E1E1" width="160">
<p align="center"><b>警官证号</b></td>
<td align="center" bgcolor="#E1E1E1"><b>考试编号</b></td>
<td align="center" bgcolor="#E1E1E1" width="160"><b>是否参加了考试</b></td>
</tr>
<%
sql="select * from exam_testuser where testid=" & request("testid") & " order by havetest"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
i=0
do while not rs.eof
%>
<tr>
<td align="center" bgcolor="#E1E1E1" height="20"><%=i%></td>
<td align="center"><a href="javascript:userinfo(<%=rs("userid")%>)">
<%=rs("userid")%></a> </td>
<td align="center"><a href="javascript:testinfo(<%=rs("testid")%>)">
<%=rs("testid")%></a> </td>
<td align="center"><%=rs("havetest")%> </td>
</tr>
<%
rs.MoveNext
i=i+1
loop
%>
</table>
<p>注:1、点击警官证号查看该警官的详细信息<br>
2、点击考试编号查看本次考试的详细信息<br>
3、“0”表示为参加考试,“1”表示已经参加了考试</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -