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

📄 passit.asp

📁 一套在线考试系统
💻 ASP
字号:
<!--#include file="conn.asp"--><%
Dim sql1
Dim rs1
Dim sql2
Dim rs2
%>
<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>在线考试系统</title>
<link rel="stylesheet" type="text/css" href="../DEFAULT.CSS">
<script language="javascript">
function submitit()
{
if (document.all.passadvice.value=="")
 {
 alert("审批意见不能为空!");
 document.all.passadvice.focus();
 return false;
 }
else
 return true;
}
</script>
<script language="JavaScript1.2" src="../js/lock.js"></script>
</head>

<body oncontextmenu="self.event.returnValue=false" onselectstart="selectstart();" bgcolor="#FFFFFF">

<%
sql="select * from waitforpass where objid='"& request("objid")&"'"
rs.open sql,conn,3,2
if not isnull(rs("passtime")) then
%>
<p>已经审批 [<a href="news.asp">返回</a>]</p>
<%
else
if rs("objname")="考试计划" then
sql1="select * from exam_test where examid='"& request("objid")&"'"
set rs1=server.createobject("adodb.recordset")
rs1.open sql1,conn,3,1
%>
<table border="1" cellspacing="0" style="border-collapse: collapse" bordercolor="#007CD0" width="100%" id="AutoNumber2" cellpadding="0" class="withborder" bgcolor="#F1F1F1">
  <tr height="20">
    <td colspan="4" height="25" class="border_blue">
    <p align="center">试卷信息</td>
  </tr>
  <tr height="20">
    <td align="center" height="25" class="border_bold">卷面总分(<font color="#FF0000">分</font>)</td>
    <td colspan="3" align="center"><b>
    <input type="text" name="totalper" size="20" value="<%=rs1("totalper")%>" class="s03" readonly></b></td>
  </tr>
  <tr height="20">
    <td align="center" height="25"> </td>
    <td class="border_bold" align="center">单选题</td>
    <td class="border_bold" align="center">多选题</td>
    <td class="border_bold" align="center">判断题</td>
  </tr>
  <tr height="20">
    <td align="center" height="25" class="border_bold">题型分布(<font color="#FF0000">个</font>)</td>
    <td align="center"><b>
    <input type="text" name="singlecount" size="12" value="<%=rs1("singlecount")%>" class="s03" readonly></b></td>
    <td align="center"><b>
    <input type="text" name="multicount" size="12" value="<%=rs1("multicount")%>" class="s03" readonly></b></td>
    <td align="center"><b>
    <input type="text" name="judgecount" size="12" value="<%=rs1("judgecount")%>" class="s03" readonly></b></td>
  </tr>
  <tr height="20">
    <td align="center" height="25" class="border_bold">分值分布(<font color="#FF0000">分</font>)</td>
    <td align="center"><b>
    <input type="text" name="singleper" size="12" value="<%=rs1("singleper")%>" class="s03" readonly></b></td>
    <td align="center"><b>
    <input type="text" name="multiper" size="12" value="<%=rs1("multiper")%>" class="s03" readonly></b></td>
    <td align="center"><b>
    <input type="text" name="judgeper" size="12" value="<%=rs1("judgeper")%>" class="s03" readonly></b></td>
  </tr>
  <tr height="20">
    <td align="center" colspan="4" height="25" class="border">考试时间设定</td>
  </tr>
  <tr height="20">
    <td align="center" height="25" class="border_bold">考试时间(<font color="#FF0000">小时</font>)</td>
    <td colspan="3" align="center"><b>
    <input type="text" name="testtime" size="12" value="<%=rs1("examtime")%>" class="s03" readonly></b></td>
  </tr>
  <tr height="20">
    <td align="center" height="25" class="border_bold">有效期</td>
    <td colspan="3" align="center"><b>
    <input type="text" name="starttime" size="20" value="<%=rs1("starttime")%>" class="s03" readonly> 
    <input type="text" name="endtime" size="20" value="<%=rs1("endtime")%>" class="s03" readonly></b></td>
  </tr>
  <tr height="20">
    <td colspan="4" bordercolor="#000000" height="25">
    <p align="left">&nbsp;如果您同意此次考试计划,请填写如下意见。</td>
  </tr>
</table>
<form method="POST" action="savepass.asp?testid=<%=request("objid")%>&objname=考试计划" onsubmit="return submitit();">
  <div align="center">
    <center>
    <table border="1" cellspacing="0" style="border-collapse: collapse" bordercolor="#000000" width="480" id="AutoNumber2" class="withborder" cellpadding="0" bgcolor="#F1F1F1">
      <tr>
        <td height="24" class="border" colspan="2" width="478">&nbsp;审核意见</td>
      </tr>
      <tr>
        <td align="center" height="24" width="67">是否同意</td>
        <td height="24" width="410"><select size="1" name="yesorno">
        <option selected value="同意">同意</option>
        <option value="不同意">不同意</option>
        </select></td>
      </tr>
      <tr>
        <td align="center" height="37" width="67">审核意见</td>
        <td height="37" width="410" align="center" style="height: 160">
        <textarea rows="9" name="passadvice" cols="49" class="s01"></textarea></td>
      </tr>
      <tr>
        <td align="center" colspan="2" height="25" class="border" width="478" style="height: 30">
        <p align="center">
        <input type="submit" value="提 交" name="B1" class="s02">&nbsp;
        <input type="reset" value="重 置" name="B2" class="s02"></td>
      </tr>
    </table>
    </center>
  </div>
</form>
<%
else
sql2="select * from exam_news where newsid='"& request("objid")&"'"
set rs2=server.createobject("adodb.recordset")
rs2.open sql2,conn,3,2
%>
<table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">
  <tr>
    <td width="100%"><%=rs2("posttime")%> </td>
  </tr>
  <tr>
    <td width="100%"><b><font color="#0099FF" size="3"><%=rs2("title")%></font></b></td>
  </tr>
  <tr>
    <td width="100%"><i><b>发布人:<%=rs2("postusername")%> </b></i></td>
  </tr>
  <tr>
    <td width="100%"><%=rs2("text")%> </td>
  </tr>
</table>
<form method="POST" action="savepass.asp?newsid=<%=request("objid")%>&objname=考试新闻" onsubmit="return submitit();">
  <div align="center">
    <center>
    <table border="1" cellspacing="0" style="border-collapse: collapse" bordercolor="#000000" width="480" id="AutoNumber2" cellpadding="0" class="withborder" height="254" bgcolor="#F1F1F1">
      <tr>
        <td height="25" colspan="2" class="border">审核意见</td>
      </tr>
      <tr>
        <td width="80" align="center" height="25" class="noborder1">是否同意</td>
        <td height="25"><select size="1" name="yesorno">
        <option selected value="同意">同意</option>
        <option value="不同意">不同意</option>
        </select></td>
      </tr>
      <tr>
        <td align="center" class="noborder1" height="39">审核意见</td>
        <td height="39">
        <textarea rows="11" name="passadvice" cols="51" class="s01"></textarea></td>
      </tr>
      <tr>
        <td align="center" colspan="2" height="25" class="border">
        <p align="center">
        <input type="submit" value="提 交" name="B1" class="s02">&nbsp;
        <input type="reset" value="重 置" name="B2" class="s02"></td>
      </tr>
    </table>
    </center>
  </div>
  <div align="center">
    <center>
    <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="480" height="30">
      <tr>
        <td width="100%"> </td>
      </tr>
    </table>
    </center>
  </div>
</form>
<%
end if
end if
%>

</body>

</html>

⌨️ 快捷键说明

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