?? 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 + -