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

📄 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>
<style type="text/css">
<!--
.style1 {
	color: #FF3333;
	font-size: 12pt;
	font-weight: bold;
}
.style6 {
	font-size: 12pt;
	font-weight: bold;
}
.style8 {font-size: 12pt}
-->
</style>
</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="5">
    <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="37"><b>序号</b></td>
    <td align="center" bgcolor="#E1E1E1" width="155">
    <p align="center"><b>证号</b></td>
    <td width="157" align="center" bgcolor="#E1E1E1"><strong>姓名</strong></td>
    <td width="185" align="center" bgcolor="#E1E1E1"><b>考试编号</b></td>
    <td align="center" bgcolor="#E1E1E1" width="213"><b>是否参加了考试</b></td>
  </tr>
  <% 
sql="select id,testid,exam_testuser.userid,havetest,username from exam_testuser,cadre_info where exam_testuser.userid=cadre_info.userid and testid=" & request("testid") & "order by havetest"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
i=0
num_f = 0
num_t = 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:userinfo(<%=rs("userid")%>)"><%=rs("username")%></a></td>
    <td align="center"><a href="javascript:testinfo(<%=rs("testid")%>)"><%=rs("testid")%></a></td>
    <td align="center"><%=rs("havetest")%><%
	if rs("havetest")=false then
		num_f=num_f+1
	elseif rs("havetest")=true then
		num_t=num_t+1
	end if
	%> </td>
  </tr>
  <% 
rs.MoveNext
i=i+1
loop
%>
</table>
<p>
  <%
rs.close
sql="select * from exam_score where testid="& request("testid")
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
%>
   <%
i=1
score=0
score60=0
do while not rs.eof
	  if rs("score")>59 then
	  	score60=score60+1	
	  end if
	  score=score+rs("score")	  
i=i+1
rs.movenext
loop
%>
<img src="images/cjtjfx.gif" width="132" height="27"> </p>
<p><span class="style1">本次考试参加人数:</span><span class="style6"><dfn><%=num_t%></dfn></span><span class="style1">人</span>  </p>
<p><span class="style1">  没参加的人数:</span><span class="style6"><dfn><%=num_f%></dfn></span><span class="style1">人</span></p>
<p>  <span class="style1">平均分:</span><dfn class="style6 style8"><%=score/num_t%></dfn><span class="style1">分</span>   </p>
<p><span class="style1">及格率:</span><dfn class="style6 style8"><%=score60/num_t%></dfn><span class="style1">%</span>    
  
</p>
<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 + -