⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testlog.asp

📁 在根目录下存放着系统登陆以及实现用户功能的网页文件
💻 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> &gt;
    <a href="searchscore.asp">查询成绩</a> &gt; 考试记录</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>
&nbsp;&nbsp;&nbsp; 2、点击考试编号查看本次考试的详细信息<br>
&nbsp;&nbsp;&nbsp; 3、“0”表示为参加考试,“1”表示已经参加了考试</p>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -