unpassuser.asp

来自「网络考试系统最终备份」· ASP 代码 · 共 465 行

ASP
465
字号

<!--#include file="conn.inc"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
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(myform.radioPaperID.checked)
   {
	 myform.action="selectTestUser.asp";
	   return true;
  
	}
	else
	{ myform.action="adminremarkpaper.asp";
	  alert("请选择试卷!!");
	  return false;
	
	}
 
 
}

function submit2(myform)
{    
    
	  
   
   if(myform.radioPaperID.checked)
   {
	 myform.action="enterScore.asp";
	   return true;
  
	}
	else
	{ myform.action="adminremarkpaper.asp";
	  alert("请选择试卷!!");
	  return false;
	
	}
 
 
}


function submit3(myform)
{    
    
	  
   
   if(myform.radioPaperID.checked)
   {
	 myform.action="errorPaperQueStatistic.asp";
	   return true;
  
	}
	else
	{ myform.action="adminremarkpaper.asp";
	  alert("请选择试卷!!");
	  return false;
	
	}
 
 
}


function submit4(myform)
{    
    
	  
   
   if(myform.radioPaperID.checked)
   {
	 myform.action="scorestatics.asp";
	   return true;
  
	}
	else
	{ myform.action="adminremarkpaper.asp";
	  alert("请选择试卷!!");
	  return false;
	
	}
 
 
}


function submit5(myform)
{    
    
	  
   
   if(myform.radioPaperID.checked)
   {
	 myform.action="searchscore.asp";
	   return true;
  
	}
	else
	{ myform.action="adminremarkpaper.asp";
	  alert("请选择试卷!!");
	  return false;
	
	}
 
 
}

function csubmit()
{
manclass.sdepartment.value="-请选择系部-";
manclass.smayjor.value="-请选择专业-";
manclass.sclass.value="-请选择班级-";
manclass.submit();
}
function ssubmit()
{
manclass.smayjor.value="-请选择专业-";
manclass.sclass.value="-请选择班级-";
manclass.submit();
}

function msubmit()
{

manclass.sclass.value="-请选择班级-";
manclass.submit();
}

</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 method="POST"   name="manclass" action="unpassuser.asp">
  <%
  v_cid = request("scollege")
    v_dep = request("sdepartment")
	  v_may = request("smayjor")
	  v_class = request("sclass")
  %>
    <tr>
      <td  nowrap >学校:      
        <select size="1" name="scollege" onChange="csubmit();">
          <option value="-请选择院校-">-请选择院校-</option>
          <%
		
		  if v_cid = "-请选择院校-" or v_cid="" then
		sql = "select * from college_info"
		else
		sql = "select * from college_info where CollegeID <>"&v_cid
		end if
		
        set rs = server.CreateObject("adodb.recordset")
		rs.open sql,conn,3,2
		do while not rs.eof
		if not rs.eof then
		  
		%>
          <option  value="<%=rs("CollegeID")%>" ><%=rs("CollegeName")%></option>
          <%
		rs.movenext
		end if
		loop
		rs.close
		set rs = nothing
		

		if v_cid <> "-请选择院校-" and v_cid<>"" then
		
		sql = "select * from college_info where CollegeID = "&v_cid
        set rs = server.CreateObject("adodb.recordset")
		rs.open sql,conn,3,2
		%>
        <option value="<%=rs("CollegeID")%>" selected><%=rs("CollegeName")%></option>
        <%
		  rs.close
		set rs = nothing
		end if
		
		
		
		
		%>
        </select>
        系部:
        <select size="1" name="sdepartment" onchange="ssubmit();">
          <option value="-请选择系部-"  selected>-请选择系部-</option>
          <%
			
		  
			if v_dep = "-请选择系部-" or v_dep="" then
		    sql = "select * from department_info where  College_ID like '"&v_cid&"' "
			else
		    sql = "select * from department_info where  College_ID like '"&v_cid&"'and DepID <> "&v_dep&" "
			end if
		
       	   set rs = server.CreateObject("adodb.recordset")
		   rs.open sql,conn,3,2
		   do while not rs.eof
		   if not rs.eof then
		%>
          <option  value="<%=rs("DepID")%>"><%=rs("DepName")%></option>
          <%
		rs.movenext
		end if
		loop
		rs.close
		set rs = nothing
		
		if v_dep <> "-请选择系部-" and v_dep <> "" then
		   sql = "select * from department_info where  College_ID like '"&v_cid&"'and DepID = "&v_dep&" "
		   set rs = server.CreateObject("adodb.recordset")
		   rs.open sql,conn,3,2
		
		%>
          <option selected value="<%=rs("DepID")%>"><%=rs("DepName")%></option>
          <% end if%>
        
        </select>专业:       
        <select size="1" name="smayjor" onChange="msubmit();">
          <option value="-请选择专业-"  selected>-请选择专业-</option>
          <%
		  
			if v_may = "-请选择专业-" or v_may = "-所有专业-" or v_may="" then
		    sql = "select * from mayjor_info where  College_ID like '"&v_cid&"' and Dep_ID like '"&v_dep&"' "
			else
		    sql = "select * from mayjor_info where  College_ID like '"&v_cid&"' and Dep_ID like '"&v_dep&"' and MayjorID<>"&v_may
			end if
		
       	   set rs = server.CreateObject("adodb.recordset")
		   rs.open sql,conn,3,2
		   do while not rs.eof
		   if not rs.eof then
		%>
          <option  value="<%=rs("MayjorID")%>"><%=rs("MayjorName")%></option>
          <%
		rs.movenext
		end if
		loop
		rs.close
		set rs = nothing
		
		if v_may <> "-请选择专业-" and v_may <> "-所有专业-" and v_may<>"" then
		   sql = "select * from mayjor_info where  College_ID like '"&v_cid&"' and Dep_ID like '"&v_dep&"' and MayjorID="&v_may
		   set rs = server.CreateObject("adodb.recordset")
		   rs.open sql,conn,3,2
		
		%>
          <option  selected value="<%=rs("MayjorID")%>"><%=rs("MayjorName")%></option>
          <% end if%>
          <input name="incollege" type="hidden" value="<%=v_cid%>">
        </select>
        班级:
		
		
		
		
        <select size="1" name="sclass" onChange="submit();">
          <option value="-请选择班级-"  selected>-请选择班级-</option>
          <%
		  
			if v_class = "-请选择班级-" or v_class="" then
		    sql = "select * from class_info where  College_ID like '"&v_cid&"' and Dep_ID like '"&v_dep&"' and Mayj_ID like '"&v_may&"' "
			else
		    sql = "select * from class_info where  College_ID like '"&v_cid&"' and Dep_ID like '"&v_dep&"' and Mayj_ID like '"&v_may&"' and ClassID="&v_class
			end if
		
       	   set rs = server.CreateObject("adodb.recordset")
		   rs.open sql,conn,3,2
		   do while not rs.eof
		   if not rs.eof then
		%>
          <option  value="<%=rs("ClassID")%>"><%=rs("ClassName")%></option>
          <%
		rs.movenext
		end if
		loop
		rs.close
		set rs = nothing
		
		if v_class <> "-请选择班级-" and v_class <> "" then
		    sql = "select * from class_info where  College_ID like '"&v_cid&"' and Dep_ID like '"&v_dep&"' and Mayj_ID like '"&v_may&"' and ClassID="&v_class
		   set rs = server.CreateObject("adodb.recordset")
		   rs.open sql,conn,3,2
		
		%>
          <option  selected value="<%=rs("ClassID")%>"><%=rs("ClassName")%></option>
          <% end if%>
          <input name="incollege" type="hidden" value="<%=v_cid%>">
        </select>      <div align="right"></div></td>
    </tr>
  </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 width="42%">    <p align="left">账号:
      <input type="text" name="textfield">
      姓名:
      <input type="text" name="textfield2">
      <input name="Submit4" type="submit" class="s02" value="Search">    
    </td>
    <td width="51%"><div align="right">
      <input type="radio" name="radiobutton" value="radiobutton">
  全选
    <input type="radio" name="radiobutton" value="radiobutton">
  全部取消
  <input name="Submit" type="submit" class="s02" value="删除所选人员">
    </div></td>
    <td width="7%"><div align="right">
      <input name="Submit2" type="submit" class="s02" value="进行审亥">
    </div></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="10"><div align="center"><b><font color="#FF0000" size="3" face="黑体">未通过审亥的人员</font></b></div></td>
    </tr>
    <tr>
      <td  nowrap width="27" align="center" bgcolor="#E1E1E1">&nbsp;</td>
      <td  nowrap width="28" align="center" bgcolor="#E1E1E1" height="20"><b>序号</b></td>
      <td align="center" bgcolor="#E1E1E1" width="127"><strong>账号</strong></td>
      <td align="center" bgcolor="#E1E1E1" width="166"><strong>姓名</strong></td>
      <td nowrap width="140" align="center" bgcolor="#E1E1E1"><strong>学校</strong></td>
      <td nowrap width="122" align="center" bgcolor="#E1E1E1">
      <p align="center"><strong>系部</strong></td>
      <td  nowrap width="84" align="center" bgcolor="#E1E1E1"><b>专业</b></td>
      <td nowrap width="94" align="center" bgcolor="#E1E1E1"><strong>班级</strong></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 type="checkbox" name="checkbox" value="checkbox"></td>
      <td nowrap align="center" bgcolor="#E1E1E1" height="20"> </td>
      <td nowrap align="center">&nbsp;</td>
      <td nowrap align="center">&nbsp;</td>
      <td nowrap align="center">&nbsp;</td>
    
      <td nowrap align="center">&nbsp;</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">&nbsp;</td>
      <td nowrap align="center">&nbsp;</td>
      <% sql1="select * from user_info where UserID="& rs("Pass_User_ID")
      set rs1=server.createobject("adodb.recordset")
      rs1.open sql1,conn,3,2
      %>
    </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 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
%>

⌨️ 快捷键说明

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