<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangePW.aspx.cs" Inherits="XpShop.Manage.ChangePW" %>
<%@ Register TagPrefix="uc1" TagName="Commond" Src="Modules/Commond.ascx" %>
<!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>
	<title>修改密码</title> 
	<!--#include file="inc/head.inc"-->
	<script type="text/javascript" src="inc/multi_popup.js"></script>
	<script src="../../inc/jquery.validate.js" type="text/javascript"></script>
	<script src="../../inc/jquery.metadata.js" type="text/javascript"></script>
	<script src="../../inc/jquery.form.js" type="text/javascript"></script>
	<link type="text/css" rel="stylesheet" href="style/multi_popup.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="style/cmxform.css" />
	<script type="text/javascript">
	$(document).ready(function(){
	    $("#Form1").validate({
		    event: "keyup",
		    rules: {
			    txtOldPassword: {
				    required: true,
				    rangelength: [6,16]
			    },
			    txtNewPassword1: {
			        required: true,
				    rangelength: [6,16]
			    },
			    txtNewPassword2: {
				    required: true,
				    rangelength: [6,16],
				    equalTo:$("#txtNewPassword1")
			    }
		    },
		    messages: {
			    txtOldPassword: {
				    required: "请输入6-16位字符，可由英文和数字组成",
				    rangelength: "请输入6-16位字符，可由英文和数字组成1"
			    },
			    txtNewPassword1: {
				    required: "请输入6-16位字符，可由英文和数字组成",
				    rangelength: "请输入6-16位字符，可由英文和数字组成"
			    },
			    txtNewPassword2: {
				    required: "请输入6-16位字符，可由英文和数字组成",
				    rangelength: "请输入6-16位字符，可由英文和数字组成",
				    equalTo:"两次输入密码不一致"
			    }
		    },
		    debug:"false",
		    submitHandler:function(form){
			    form.submit();
		    }
	    });
	})
    </script>
</head>
<body>
<uc1:Commond id="Commond1" runat="server"></uc1:Commond>
<div class="container">
	<div class="sub_container">
		<div class="sub_container_title"><a href="<%=AdminDefault%>" target="_top">桌面</a><img src="images/admin_title.jpg" height="9" width="8" align="absMiddle">更改密码</div>
		<div class="sub_container_content">
			<form id="Form1" method="post" runat="server">
				<div class="frame">
					<div class="frame_title">更改密码</div>
					<div class="frame_content">
					    <table cellSpacing="0" cellPadding="0" class="ptable" style="width:100%;">
							<tr>
								<th class="tl"><em>*</em>旧密码：</th>
								<td class="tr"><asp:textbox id="txtOldPassword" runat="server"></asp:textbox></td>
							</tr>
							<tr>
								<th class="tl"><em>*</em>新密码：</th>
								<td class="tr"><asp:textbox id="txtNewPassword1" runat="server"></asp:textbox></td>
							</tr>
							<tr>
								<th class="tl"><em>*</em>重复新密码：</th>
								<td class="tr"><asp:textbox id="txtNewPassword2" runat="server"></asp:textbox></td>
							</tr>
							<tr>
								<td colSpan="2" class="center"><asp:button id="btnSave" onclick="btnSave_Click" Text="保存" Runat="server"></asp:button></td>
							</tr>
						</table>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>
</body>
</html>
