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

📄 unpass.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 testinfo(testid)
{ 
  page="untestinfo.asp?testid="+testid
  window.open (page,'查看考试信息','width=320,height=470')
}
function userinfo(userid)
{ 
  page="userinfo.asp?userid="+userid
  window.open (page,'查看用户信息','width=300,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="adminremarkpaper.asp">评卷管理</a> &gt; 未审批考试计划查询</td>
  </tr>
</table>
<form name="viewdatabase" method="post">
  <table border="1" cellpadding="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber1">
    <tr>
      <td bgcolor="#E1E1E1" height="20" colspan="6">&nbsp;
      <div align="center"><b><font color="#FF0000" size="3" face="黑体">未通过审批的考试计划</font></b></div></td>
    </tr>
    <tr>
      <td width="30" align="center" bgcolor="#E1E1E1" height="20"><b>序号</b></td>
      <td align="center" bgcolor="#E1E1E1" width="229">
      <p align="center"><strong>试卷编号</strong></td>
      <td width="68" align="center" bgcolor="#E1E1E1"><b>有效期</b></td>
      <td width="100" align="center" bgcolor="#E1E1E1">
      <p align="center"><b>考试科目</b></td>
      <td width="93" align="center" bgcolor="#E1E1E1"><b>设定人</b></td>
      <td width="106" align="center" bgcolor="#E1E1E1"><b>设定批准人</b></td>
    </tr>
    <%  subID=request("subject")
if subID="--选择科目--" or subID="" then
  sql="select * from paper_info where Paper_Type = 0"
else
  sql="select * from paper_info where Sub_ID="&subID&"  AND   Pass_User_ID IS NOT NULL"
end if
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
if not rs.eof then
v_SubID = rs("Sub_ID")

subsql = "select * from subject_info where SubID = "&v_SubID
set subrs = server.CreateObject("adodb.recordset")
subrs.open subsql,conn,3,2
v_SubName = subrs("SubName")

subrs.close
set subrs = nothing


%>
    <tr>
      <td nowrap align="center" bgcolor="#E1E1E1" height="20"><%=i%> </td>
      <td nowrap align="center"><a href="javascript:testinfo(<%=rs("PaperID")%>)">    <%=rs("PaperID")%></a>  </td>
	 
      <td nowrap align="center"><%=formatdatetime(rs("StartTime"),1)%>&nbsp;<%=formatdatetime(rs("StartTime"),3)%>&nbsp;—&nbsp;<%=formatdatetime(rs("EndTime"),1)%>&nbsp;<%=formatdatetime(rs("EndTime"),3)%> </td>
      <td nowrap align="center">&nbsp;<%=v_SubName%> </td>
      <% sql1="select * from user_info where UserID="& rs("Set_User_ID")
      set rs1=server.createobject("adodb.recordset")
      rs1.open sql1,conn,3,2
      %>
      <td  nowrap align="center"> <a href="javascript:userinfo(<%=rs1("UserID")%>)">
	  <%=rs1("UserRName")%>
	  <% rs1.close %> </td>
      <% sql1="select * from user_info where UserID="& rs("Pass_User_ID")
      set rs1=server.createobject("adodb.recordset")
      rs1.open sql1,conn,3,2
      %>
      <td nowrap align="center">  <a href="javascript:userinfo(<%=rs1("UserID")%>)">
	  <%=rs1("UserRName")%>
      <% rs1.close %> </td>
    </tr>
    <% 
rs.MoveNext

If rs.EOF Then Exit For

i=i+1
end if
Next
%>
    <caption></caption>
  </table>
</form>
<div ALIGN="right">
  <form ACTION="<%=Myself%>?suject=<%=subject%>" METHOD="GET">
    <table>
      <tr>
        <td>
        <p ALIGN="right"><%If Page <> 1 and Page <> 0 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 + -