<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %> 
<html>
	<head>
		<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css">
		<title>用户登录</title>
		<script language="JavaScript">
    	<!--
    	function onSubmit() {
    		if (document.UserForm.loginName.value == "") {
    			alert("登录名不能为空!");
    			return false;
    		}
    		
    		if (document.UserForm.loginPasswd.value == "") {
    			alert("登录密码不能为空!");
    			return false;
    		} 
    		return true;
    	}
    	//-->
   	 	</script>
	</head>
	<body>
    	<form action="${pageContext.request.contextPath}/servlet/UserServlet" name="UserForm" method="post" onsubmit="return onSubmit()">
    		<br><br><br><br><br><br><br><br><br><br><br><br><br>
	   		<table align="center" border="0" cellpadding="4" cellspacing="1" class="list">
           		<tr align="center"> 
          			<td colspan="2" align="center"> 
          				用户登录
          				<input type="hidden" name="methodName" value="userLogin" />
         			</td>
        		</tr>
        		<tr>
              		<td class="td_left">登录名：</td>
              		<td class="td_right"><input type="text" name="loginName" size="30" />*</td>
            	</tr>
            	<tr>
              		<td class="td_left">登录密码：</td>
              		<td class="td_right"><input type="password" name="loginPasswd" size="30" />*</td>
            	</tr>
	            <tr>
	            	<td align="center" colspan="2">
		            	<input type="submit" value="登录" class="btn_style"/>&nbsp;&nbsp;
		            	<input type="reset" value="重置" class="btn_style"/>&nbsp;&nbsp;
		            </td>
	            </tr>
			</table>
       </form>
	</body>
</html>