manageruseradd.asp
来自「网络考试系统最终备份」· ASP 代码 · 共 74 行
ASP
74 行
<!--#include file="conn.inc"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加用户</title>
<style type="text/css">
<!--
.style1 {
font-size: larger;
font-weight: bold;
}
-->
</style>
<script language="javascript">
function csubmit()
{var myform=document.form1;
var bool=true;
if (myform.college.value=="")
{ alert("请选择用户所属的学校!");
myform.college.focus();
bool=false;
}
return bool;
}
</script>
</head>
<body>
<table width="100%" height="25" border="0" cellspacing="0" bordercolor="#111111" id="AutoNumber2" style="border-collapse: collapse">
<tr>
<td width="100%">当前位置:<a href="news.asp">系统管理</a> ><a href="manageruser.asp">人员管理</a> > 添加用户</td>
</tr>
</table>
<table width="100%" border="0">
<tr>
<td><img src="images/2.jpg" width="104" height="40"></td>
</tr>
</table>
<%
sql1="select * from college_info"
set rs1=server.createobject("adodb.recordset")
rs1.open sql1,conn,3,2
%>
<form name="form1" method="post" action="manageruseradd2.asp" onSubmit="return csubmit()">
<table width="100%" height="20%" border="1">
<tr bgcolor="#CCCCCC">
<td height="35" colspan="2"><div align="center" class="style1">请选择用户所属学校</div></td>
</tr>
<tr>
<td width="19%" height="29"><div align="center"><strong>学校</strong></div></td>
<td width="81%"><select name="college" id="college">
<option>选择学校</option>
<%while not rs1.eof%>
<option value="<%=rs1("CollegeID")%>"><%=rs1("CollegeName")%></option>
<%
rs1.movenext
wend
rs1.close
%>
</select></td>
</tr>
<tr>
<td height="28" colspan="2"><div align="center">
<input type="submit" name="Submit" value="下一步">
</div></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?