<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean"%>
<%@ page isELIgnored="false" %> 
<html:html locale="true">
	<head>
		<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css">
		<title>修改密码</title>
		<script language="javascript">
		<!--
		function onSubmit() {
			if(!confirm("确定要修改吗?")){
		   		return false;
		   	} else {
	       	    var form = document.UserForm;
	       	    if (form.userPasswd.value != form.confirmPasswd.value) {
	       	    	alert("两次密码输入不一致!");
	       	    	return false;
	       	    } else {
	       	    	return true;
	       	    }
   	    	}
   	    }
		//-->
		</script>
	</head>
	<body>
    	<form action="${pageContext.request.contextPath}/userAction.do" method="post" name="UserForm" onsubmit="return onSubmit()">
    		<input type="hidden" name="method" value="updateUserPasswd" />
	   		<table width="98%" align="center" border="0" cellpadding="4" cellspacing="1" class="list">
           		<tr align="center"> 
          			<td colspan="2" width="100%" class="title_td" align="center"> 
          				<div class="title_font">修改密码</div>
         			</td>
        		</tr>
        		<tr>
              		<td class="td_left">密码：</td>
              		<td class="td_right">
              			<input type="password" name="userPasswd" size="50" /> *
              		</td>
            	</tr>
            	<tr>
	            	<td class="td_left">确认密码：</td>
	              	<td class="td_right">
	              		<input type="password" name="confirmPasswd" size="50" /> *
	              	</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:html>