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

📄 index.asp

📁 一个很好用的考试asp考试系统
💻 ASP
字号:
<!--#INCLUDE FILE="conn.asp" -->

<%
sql="select *from test"
rs.open sql,conn,3,3
do while not rs.eof 
'RANDOMIZE
'RandomValue = INT(10*RND)+1
'rs("count")=rs("count")+RandomValue
rs.update
rs.movenext
loop
rs.close

sql="select top 100 * from test order by id"'提取试题 desc意思从大到小
Set rs = conn.Execute(sql)
%><head>
<title>www.25175.com 在线考试系统v1.61</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="25175_1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-top: 0px;
}
-->
</style></head>   	


<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="754" valign="top" bgcolor="#A0A4AC" style="line-height:140%;"> 网站名称:<font color="#0000FF"><a href="http://www.25175.com">SP.25175</a></font><br>
      网站LOGO:<a href="http://www.25175.com/logo1.GIF">http://www.25175.com/logo1.GIF</a><br>
      演示地址:<font color="#0000FF"><a href="http://www.25175.com/asp/test_20050825_v161/">http://www.25175.com/asp/test_20050825_v161/</a><br>
      </font>下载地址:<font color="#0000FF"><a href="http://www.25175.com/asp/test_20050825_v161/test_20050825_v161.rar">http://www.25175.com/asp/test_20050825_v161/test_20050825_v161.rar</a><br>
    </font> 在线聊天:<a href="http://wpa.qq.com/msgrd?V=1&Uin=29752345&Site=www.25175.com&Menu=yes">29752345</a> <a href="login.asp">后台管理</a></td>
  </tr>
</table>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="1"><div align="center"></div></td>
  </tr>
</table>
  <table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td height="25" bgcolor="#A0A4AC"> 
<form action="" method="post" name=forms>
考试时间:
<input type=text name=timea size=9>
<script language=javascript>
var sec=0;var min=0;var hou=0;flag=0;idt=window.setTimeout("update();",1000);
function update(){sec++;if(sec==60){sec=0;min+=1;}if(min==60){min=0;hou+=1;}if((min>0)&&(flag==0)){flag=1;}
document.forms.timea.value=hou+"时"+min+"分"+sec+"秒";idt=window.setTimeout("update();",1000);}
</script>
</form>  
      </td>
    </tr>
  </table>
	<%
	if Request.Form("timea")=1 then
	Response.Write "时间已到。"
	end if
	%>    

<FORM action="stry_result.asp" id=FORM1 method=post name=FORM1>
  <table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
(考试请务刷新本页面)
<table width="768" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="1" bgcolor="#666666"><div align="center"></div></td>
                </tr>
        </table>
<%
  i=1
  rs.movefirst
  do while not rs.eof
%>
</span><TABLE width="768" border="0" cellpadding="0" cellspacing="0">
          <TR>
            <TD height="35" bgcolor="#EFEFEF"><span class="unnamed18high"><span class="style1">&nbsp;第</span><%=rs("id")%><span class="style1">题:</span><%=rs("question")%></span></TD>
          </TR>
          <TR>
            <TD height="20">
              <table width="768" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="1" bgcolor="#666666"><div align="center"></div></td>
                </tr>
              </table>
              <table width="768" height="100" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td><input name=ans<%=i%>
type=radio value="A">
                    A. <%=rs("A")%> &nbsp;</td>
                </tr>
                <tr>
                  <td><input name=ans<%=i%>  
type=radio value="B" >
                    B.                  <%=rs("B")%>&nbsp;</td>
                </tr>
                <tr>
                  <td><input name=ans<%=i%>  
type=radio value="C" >
                    C.                  <%=rs("C")%>&nbsp;</td>
                </tr>
                <tr>
                  <td><input name=ans<%=i%>  
type=radio value="D" >
                    D.                  <%=rs("D")%>&nbsp;</td>
                </tr>
              </table>
              
              <table width="768" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="1" bgcolor="#666666"><div align="center"></div></td>
                </tr>
            </table></TD>
          </TR>
        </TABLE>        
        <div align="left">
<%
i=i+1
rs.movenext
loop
%>
        </div></td>
  </tr>
  <tr>
    <td height="50">  <table width="768" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="48">
		<input id=submit1 name=submit1 type=submit value="交卷">
        <input id=reset1 name=reset1 type=reset value="重填">
          &nbsp;</td>
      </tr>
      <tr>
        <td height="1" bgcolor="#666666"><div align="center"></div></td>
      </tr>
    </table>      </td>
  </tr>
</table>
</FORM>

<table width="768"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="20" bgcolor="#A0A4AC"><div align="center" class="style1">
        <div align="center"><a href="http://www.25175.com">powered by 25175</a></div>
    </div></td>
  </tr>
</table>

⌨️ 快捷键说明

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