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

📄 default.asp

📁 1.本考试系统没有任何商业利益,请大家放心使用 2.本人进行了一些修改和界面美化 3.本考试系统考试题题型均为单选题,
💻 ASP
字号:
<!--#include file="include\conn.asp"-->

<%
if session("user")="" then
response.Write("<script>alert('亲爱的考生,您需要先登陆后再考试!');window.location.href('login.asp')</script>")
response.end
end if
set rs1=server.CreateObject("adodb.recordset")
sql="select * from test"
rs1.open sql,conn,1,3
%>

<script language=javascript>
var sec=59;var min=59;var hou=0;flag=0;idt=window.setTimeout("update();",1000);
function update(){sec--;if((sec==0)&&(min>0)){sec=59;min-=1;}if((min==0)&&(hou>0)){min=59;hou-=1;}
document.form2.time.value=hou+"时"+min+"分"+sec+"秒";idt=window.setTimeout("update();",1000);if((min==0)&&(sec==1)){document.form1.submit();}}
</script>


<style type="text/css">

<!--
body {background-image: url(../32pic90.gif);

}
.style5 {font-size: 14px; font-weight: bold; }
.style6 {font-size: 14px}
.style8 {
	font-size: 36px;
	font-weight: bold;
	color: #7B869A;
}
.style9 {font-size: 12px}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style5 {font-size: 14px; font-weight: bold; }
.style6 {font-size: 14px}
.style8 {	font-size: 36px;
	font-weight: bold;
	color: #7B869A;
}
.style9 {font-size: 12px}
.style11 {font-size: 12px; color: #FF0000; }
.style12 {color: #FF0000}
-->
</style>
<title>网上在线考试系统</title></head>

<body>
<table width="200" border="0" align="center" bgcolor="#6699CC">
  <tr>
    <td><table width="800" border="0" align="center" bgcolor="#B0BDD3">
      <tr>
        <td bordercolor="#D4D0C8" bgcolor="#FFFFFF"><div align="center" class="style8"><img src="Images/banner.gif" width="800" height="100"></div></td>
      </tr>
      <tr>
        <td bordercolor="#D4D0C8" bgcolor="#89B8F0"><div align="center"><span class="style11">考生请注意:考试中请不要刷新页面,否则将会取消这次的考试资格.</span></div></td>
      </tr>
      <tr>
        <td height="37" bordercolor="#D4D0C8" bgcolor="#86ABDF">
          <div align="center">
            <form name="form2" method="post" action="">
              <div align="center" class="style9">&#32771;&#29983;&#22995;&#21517;: <%=session("user")%> &#21097;&#20313;&#26102;&#38388;:
                  <input name="time" type="text" id="time" size="12">
                  <span class="style12">&#27880;&#24847;:&#32771;&#35797;&#26102;&#38388;&#21040;&#31995;&#32479;&#23558;&#33258;&#21160;&#20132;&#21367;!</span></div>
            </form>
        </div></td>
      </tr>
    </table>
      <form name="form1" method="post" action="jieguo.asp">
        <%
i=1
do while not rs1.eof
%>
        <table width="800" border="0" align="center" bordercolor="#7B869A" background="Images/back.jpg" bgcolor="#FFFFFF">
          <tr bgcolor="#999999">
            <td width="70" bgcolor="#FFFFFF"><span class="style5"><%=rs1("id")%>.</span></td>
            <td width="720" bgcolor="#FFFFFF"><span class="style6"><%=rs1("question")%></span></td>
          </tr>
          <tr>
            <td><span class="style5">
              <input type="radio" name="<%=i%>" value="A">
        A.</span></td>
            <td><span class="style6"><%=rs1("A")%></span></td>
          </tr>
          <tr>
            <td><span class="style5">
              <input type="radio" name="<%=i%>" value="B">
        B.</span></td>
            <td><span class="style6"><%=rs1("B")%></span></td>
          </tr>
          <tr>
            <td><span class="style5">
              <input type="radio" name="<%=i%>" value="C">
        C.</span></td>
            <td><span class="style6"><%=rs1("C")%></span></td>
          </tr>
          <tr>
            <td><span class="style5">
              <input name="<%=i%>" type="radio" value="D">
        D.</span></td>
            <td><span class="style6"><%=rs1("D")%></span></td>
          </tr>
          <tr>
            <td height="21"><input name="<%=i%>"   type="radio" value="???" checked style="display:none;"></td>
            <td><span class="style6"></span></td>
          </tr>
        </table>
        <div align="center">
          <%
  i=i+1
rs1.movenext
loop
session("dd")=0
%>
          <input type="submit" name="Submit" value="&#25552;&#20132;&#35797;&#21367;">
          <input name="chongfu" type="hidden" id="chongfu" value="1"> 
          <span class="style11">(考试完毕后请交卷,否则0分计算,交卷后将不能再考试)</span></div>
    </form></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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