📄 user.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="checkuser.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>吻宇考试管理系统</title>
<style type="text/css">
<!--
body {
background-color: #EFF8FE;
}
body,td,th {
font-size: 12px;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
color: #000000;
}
-->
</style>
<script language="javascript">
function checkform()
{
if(document.cnwy.zkz.value=="")
{
alert("考生的准考证号不能为空~!")
return false;
}
if(document.cnwy.password.value=="")
{
alert("考生的密码不能为空")
return false;
}
if(document.cnwy.name.value=="")
{
alert("考生的真实姓名不能为空~!")
return false;
}
}
</script>
</head>
<body>
<form action="user_add.asp" method="post" name="cnwy" id="cnwy" onsubmit="return checkform()">
<table width="347" align="center" cellpadding="1" cellspacing="1" bgcolor="#67B0ED">
<tr>
<td colspan="2" bgcolor="#EFF8FE"><div align="center">考生增加</div></td>
</tr>
<tr>
<td width="116" bgcolor="#EFF8FE">考生的准考证号:</td>
<td width="222" bgcolor="#EFF8FE"><input name="zkz" type="text" id="zkz"></td>
</tr>
<tr>
<td bgcolor="#EFF8FE">考生登陆的密码:</td>
<td bgcolor="#EFF8FE"><input name="password" type="text" id="password"></td>
</tr>
<tr>
<td bgcolor="#EFF8FE">考生的真实姓名:</td>
<td bgcolor="#EFF8FE"><input name="name" type="text" id="name"></td>
</tr>
<tr>
<td bgcolor="#EFF8FE">考生所在的班级:</td>
<td bgcolor="#EFF8FE"><select name="class" id="class">
<%dim rs,sql
set rs=server.createobject("adodb.recordset")
sql="select * from class order by id desc"
rs.open sql,conn,1,1
if not rs.eof then
rs.movefirst
do while not rs.eof
%>
<option value="<%=rs("class")%>"><%=rs("class")%></option>
<%rs.movenext
loop
else
%>
<option value="暂时没有任何数据">暂时没有任何数据</option>
<%end if
rs.close
set rs=nothing
set conn=nothing%>
</select></td>
</tr>
<tr>
<td bgcolor="#EFF8FE">考生所在的学校:</td>
<td bgcolor="#EFF8FE"><select name="school" id="school">
<option value="宝丰县第二高级中学">宝丰县第二高级中学</option>
</select></td>
</tr>
<tr>
<td colspan="2" bgcolor="#EFF8FE"><table width="171" border="0" align="center">
<tr>
<td width="78"><input name="Submit" type="submit" value="添加"></td>
<td width="83"><div align="right">
<input type="reset" name="Submit2" value="清除">
</div></td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -