<%@ page contentType="text/html; charset=GB2312" language="java" import="java.sql.*"
errorPage="" request.setCharacterEncoding("GBK");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
" http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>用户登陆</title>
<script language="javascript" type="">
function userFormCheck()
{
if(formUser.userName.value==""){
alert("用户名不能为空。");
formUser.userName.focus();
return false;
}
else if(formUser.userName.value.length<3||formUser.userName.value.length>8){
alert("用户名超出了范围(3~8)")
formUser.userName.focus();
return false;
}
else if(formUser.userPwd.value==""){
alert("密码不能为空");
formUser.userPwd.focus();
return false;
}
else if(formUser.userPwd.value.length<3||formUser.userPwd.value.length>8){
alert("密码超出了范围(3~8)");
formUser.userPwd.focus();
return false;
}
else alert("注册成功");
}
</script>
</head>
<body>
<p><div align="center"><b><font size="2" color="#FF6600"></font></b></div>
<form name="formUser" method="post" action="loginCheck.jsp" onSubmit="return
userFormCheck();">
<table width="320" border="0" bgcolor="#cccccc" cellspacing="1"
cellpadding="1" align="center">
<tr align="center">
<td colspan="2"><b>物业信息管理系统</b></td>
</tr>
<tr bgcolor="#ffcc00">
<td colspan="7"></td>
</tr>
<tr align="center">
<td colspan="2">
<p><br>用户登录</p><p>
</td>
</tr>
<tr>
<td width="140" align="right">用户名:</td>
<td width="250" align="top">
<input type="name" name="userName" size="16" maxlength="25" />
</td>
</tr>
<tr>
<td width="140" align="right">密 码:</td>
<td width="250" valign="top">
<p><input type="password" name="userPwd" size="16" maxlength="25" />
</td>
</tr>
<tr>
<td width="140" align="right"> </td>
<td width="250" valign="top">
<p><br />
<input type="submit" name="btnSubmit" value="登录"
onclick="javascript:return(userFormCheck());"/
>
<input type="reset" name="reset" value="取消" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<p><br />如果您还未注册,请点此<a href="login.jsp">注册</a></p>
<p></p>
</td>
</tr>
</table>
</form>
</body>
</html>