<!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>
</head>
<body>
<script language="javascript">
<!--
function checkData()
{
var userName = document.addNew.txt_UserName.value;
var userPass = document.addNew.txt_UserPass.value
var userPass2 = document.addNew.txt_UserPass2.value;
var userAge = document.addNew.txt_UserAge.value;
if(userName.length == 0)
{
alert("用户名不能为空!");
document.addNew.txt_UserName.focus();
return false;
}
if(userPass.length == 0)
{
alert("用户密码不能为空!");
document.addNew.txt_UserPass.focus();
return false;
}
if(userPass2.length == 0)
{
alert("用户确认密码不能为空!");
document.addNew.txt_UserPass2.focus();
return false;
}
if(userPass2 != userPass )
{
alert("用户两次密码输入不一致!");
document.addNew.txt_UserPass2.focus();
return false;
}
if(userAge.length == 0)
{
alert("用户年龄不能为空!");
document.addNew.txt_UserAge.focus();
return false;
}
return true;
}
-->
</script>
<form action="addNewUser.asp" method="post" name="addNew" id="addNew" onSubmit="return checkData()">
<p> </p>
<table width="420" border="1" align="center" cellpadding="0" cellspacing="2" bordercolor="#FFFFFF" bgcolor="#CCCCCC">
<tr align="center" bgcolor="#FFFFFF">
<td height="35" colspan="2" bgcolor="#CCCCCC">新用户注册</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right">用户名:</td>
<td height="30"><input name="txt_UserName" type="text" id="txt_UserName"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="150" height="30" align="right">密 码:</td>
<td height="30"><input name="txt_UserPass" type="password" id="txt_UserPass"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="150" height="30" align="right">确认密码:</td>
<td height="30"><input name="txt_UserPass2" type="password" id="txt_UserPass2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="150" height="30" align="right">年 龄:</td>
<td height="30"><input name="txt_UserAge" type="text" id="txt_UserAge" size="6"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right">性 别:</td>
<td height="30"><select name="txt_UserSex" id="txt_UserSex">
<option value="男">男</option>
<option value="女">女</option>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right">工作部门:</td>
<td height="30"><input name="txt_UserClass" type="text" id="txt_UserClass" size="15"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right">电子邮箱:</td>
<td height="30"><input name="txt_UserEmail" type="text" id="txt_UserEmail"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30" align="right"><input type="submit" name="Submit" value="提 交"></td>
<td height="30"> </td>
</tr>
</table>
<p> </p>
</form>
</body>
</html>