indexmain.asp
来自「这是一个用ASP写的在线考试系统.特别一点 就是考试试卷有两种考法,一种为系统」· ASP 代码 · 共 67 行
ASP
67 行
<!--#include file="conn2.asp"-->
<script language=javascript>
function check()
{if (document.form1.stu_num.value=="")
{alert("请输入用户名");
document.form1.stu_num.focus();
return false;}
if (document.form1.stu_pwd.value=="")
{alert("请输入用户密码");
document.form1.stu_pwd.focus();
return false;}
document.form1.ctype.value="add";
document.form1.submit();
}
</script>
<html>
<head>
<title> </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META content=CnSohoW设计 name=description>
<META content="firekinger@163.com" name=author>
<link href="css/Style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="329" border="1" align="center" bordercolor="#FFFFFF" class="Xsmall">
<tr>
<td width="33" height="286" valign="middle" bordercolor="#FFFFFF"><div align="center"></div></td>
<td width="284" bordercolor="#000000">
<form name="form1" method="post" action="checkusr.asp">
<table width="90%" border="0" align="center" class="Xsmall">
<tr>
<td height="50"> <div align="center"><strong> 在线考试系统</strong> </div></td>
</tr>
<tr>
<td><p>
考生学号:
<input type="text" name="stu_num" size="12" >
</p>
<p>
考生姓名:
<input type="password" name="stu_pwd" size="12" >
</p>
<p> </p>
<center>
<INPUT name=submit type=submit title=仔细阅读考试流程和须知了吗? onclick="check()" value=登录>
<input type=reset value=重写 name=Submit2>
</center></td>
</tr>
<tr>
<td height="30"> <div align="center">
你的IP地址为: <%=request.servervariables("remote_addr")%></div></td>
</tr>
<tr>
<td height="30"><div align="center"><font color="#FF0000"><a href="../default.asp">管理员登陆</a></font></div></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?