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

📄 adminremarkpaper.asp

📁 网络考试系统最终备份
💻 ASP
字号:
<!--#include file="conn.inc"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function rclick()
{

document.viewdatabase.isSelect.value = 1;



}
function testinfo(testid)
{ 
  page="testinfo.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')
}
function submit1(myform)
{    
  
	  
   
   if( document.viewdatabase.isSelect.value == 1)
   {
	 myform.action="selectTestUser.asp";
	   return true;
  
	}
	else
	{ myform.action="adminremarkpaper.asp";
	  alert("请选择试卷!!");
	  return false;
	
	}
 
 
}

function submit2(myform)
{    
    
	  
   
   if(document.viewdatabase.isSelect.value == 1)
   {
	 myform.action="enterScore.asp";
	   return true;
  
	}
	else
	{ myform.action="adminremarkpaper.asp";
	  alert("请选择试卷!!");
	  return false;
	
	}
 
 
}


function submit3(myform)
{    
    
	  
   
   
   if(document.viewdatabase.isSelect.value == 1)
   {
	 myform.action="errorPaperQueStatistic.asp";
	   return true;
  
	}
	else
	{ myform.action="adminremarkpaper.asp";
	  alert("请选择试卷!!");
	  return false;
	
	}
 
 
}


function submit4(myform)
{    
    
	  
   
   if(document.viewdatabase.isSelect.value == 1)
   {
	 myform.action="scorestatics.asp";
	   return true;
  
	}
	else
	{ myform.action="adminremarkpaper.asp";
	  alert("请选择试卷!!");
	  return false;
	
	}
 
 
}


function submit5(myform)
{    
    
	  
   
   
   if(document.viewdatabase.isSelect.value == 1)
   {
	 myform.action="searchscore.asp";
	   return true;
  
	}
	else
	{ myform.action="adminremarkpaper.asp";
	  alert("请选择试卷!!");
	  return false;
	
	}
 
 
}


</script>
<link rel="stylesheet" type="text/css" href="css.css">
</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;评卷管理</td>
  </tr>
</table>
<table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" id="AutoNumber2" bgcolor="#99CCFF" width="100%">
   <form name="searchscoreform" method="POST" action="adminremarkpaper.asp">
      <td><select size="1" name="subject">
      <option selected>--选择科目--</option>
      <%  sql="select * from subject_info"
      set rs=server.createobject("adodb.recordset")
      rs.open sql,conn,3,2
      do while not rs.eof %>
      <option value="<%=rs("SubID")%>"><%=rs("SubName")%></option>
      <% rs.movenext
      loop
      rs.close %></select>
      <input type="submit" value="查 询" name="B3" class="s02"></td>
    </form>
</table>







<form name="viewdatabase" method="post" onSubmit="return submit();">


<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber4" height="30">
  <tr>
    <td>    <p align="right">
        <input name="isSelect" type="hidden" value=0 >
	    <input type="submit" value="查看考试人员" name="selectUser" onClick="submit1(this.form)" class="s02">
        <input type="submit" value="平时成绩录入/修改" name="enterScore"    onClick="submit2(this.form)" class="s02">
        <input type="submit" value="试卷错题统计" name="staterrorPaper"  onClick="submit3(this.form)" class="s02">
        <input type="submit" value="成绩查询" name="scoredisplay"  onClick="submit5(this.form)" class="s02">
        <input type="submit" value="试卷分析" name="paperanalysis"  onClick="submit4(this.form)" class="s02">  
    </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="20" colspan="9">&nbsp;下面显示的是经过审批通过后的考试科目,单击【<a href="unpass.asp">这里</a>】察看未经审批的考试科目</td>
    </tr>
    <tr>
      <td  nowrap width="30" align="center" bgcolor="#E1E1E1">&nbsp;</td>
      <td  nowrap width="30" align="center" bgcolor="#E1E1E1" height="20"><b>序号</b></td>
      <td align="center" bgcolor="#E1E1E1" width="229">
      <p align="center"><b>考试时间</b></td>
      <td nowrap width="68" align="center" bgcolor="#E1E1E1"><strong>试卷编号</strong></td>
      <td nowrap width="100" align="center" bgcolor="#E1E1E1">
      <p align="center"><b>考试科目</b></td>
      <td  nowrap width="93" align="center" bgcolor="#E1E1E1"><b>设定人</b></td>
      <td nowrap width="106" align="center" bgcolor="#E1E1E1"><b>审批人</b></td>
      
    </tr>
    <%  subID=request("subject")
	sID = Request.QueryString("sujectviewp")
	if (sID <> "") THEN
	subID =sID
	end if
	
  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">
	  <input name="radioPaperID" type="radio"  onClick="rclick()"
 value="<%=rs("PaperID")%>" ></td>
      <td nowrap align="center" bgcolor="#E1E1E1" height="20"><%=i%> </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"><a href="javascript:testinfo(<%=rs("PaperID")%>)">    <%=rs("PaperID")%></a> </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">
  <table>
    <form ACTION="<%=Myself%>?sujectviewp=<%=subID%>%&gt;" METHOD="GET">
	
      <tr>
	          <td>
          <p ALIGN="right">
            <%If Page <> 1 and Page <> 0 Then ' 如果不是位于第一页%>          
            <a href="<%=Myself%>?Page=1&sujectviewp=<%=subID%>">
          第一页</a>
          <a HREF="<%=Myself%>?Page=<%=(Page-1)%>&sujectviewp=<%=subID%>">
          上一页</a>
          <%                                      
End If                                         
If Page <> rs.PageCount Then ' 如果不是位于最后一页                                         
%> <a HREF="<%=Myself%>?Page=<%=(Page+1)%>&sujectviewp=<%=subID%>">下一页</a>
        <a HREF="<%=Myself%>?Page=<%=rs.PageCount%>&sujectviewp=<%=subID%>">最后一页</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>
  </table>
  <p align="left">注:&nbsp;&nbsp;&nbsp; 1、点击考试编号查看本次考试的详细信息 <br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 2、点击用户名查看该用户的详细信息</p>
  <p align="left">&nbsp;&nbsp;&nbsp;</p>
</div>
</div>
</td>
</tr>
</table>


<%
conn.close
set conn = nothing
%>
</body>

</html>

⌨️ 快捷键说明

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