<!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={$CONFIG[charset]}" />
<title>重设密码_{$SYSTEM[sitename]}</title>
	<link href="{IMG_URL}templates/{TEMPLATE}/css/style.css" type="text/css" rel="stylesheet" rev="stylesheet" media="screen"  />
	<link href="{IMG_URL}templates/{TEMPLATE}/css/content.css" type="text/css" rel="stylesheet" rev="stylesheet" media="screen"  />
	<!--[if IE 6]> 
		<link href="{IMG_URL}templates/{TEMPLATE}/css/ie6.css" type="text/css" rel="stylesheet" rev="stylesheet" media="screen"  />
	<![endif]-->
<script type="text/javascript" src="{IMG_URL}js/config.js"></script>
<script type="text/javascript" src="{IMG_URL}js/lib/jquery.js"></script>
<script type="text/javascript" src="{IMG_URL}js/lib/jquery.form.js"></script>
<script type="text/javascript" src="{IMG_URL}js/lib/cmstop.validator.js"></script>
<script type="text/javascript">

function editpassword_ok(data) {
	if(data.state) {
		$('#resetForm').hide();
		$('#successUl').show();
	} else {
		alert(data.error);
	}
}
$.validate.setConfigs({
	xmlPath:'apps/member/validators/'
});
$(document).ready(function() {
	$('#member_resetPassword').validate({
		submitHandler: function (form){
			$(form).ajaxSubmit({
				success: editpassword_ok,
				dataType:'json'
			});
		},
		infoHandler:function(jq,message,type){
			if(type == 'error') {
				jq.siblings('.tipinfo').html(message).show();
			}
		}
	});
	$("input").change(function() {
		$(this).siblings('.tipinfo').hide();
	});
});
</script>
</head>
<body>
<!--{template 'system/header.html'}-->
<div class="hr-h10"></div>
<div class="column">
	<div class="member-wrap w-720 bor-ccc">
		<div class="member-title">
			<h2>忘记密码</h2>
			<span class="cor-666">请提供您注册时所填邮箱，系统将为您发送确认邮件。只有邮箱与用户名完全匹配才能找回密码。  </span>
		</div>
		<div>
		<form action="{$url}" method="POST"  name="member_resetPassword" id="member_resetPassword">
			<ul class="formFormat member-form" id="">
				<li><span class="info f-l"><label for="username">新密码：</label></span>
				<input name="password" id="password" type="password" type="text" class="input-text age f-l input-w160" />
				<span class="tipinfo"></span></li>
				<li><span class="info f-l"><label for="email">重复输入：</label></span>
				<input name="password_check" id="password_check" type="password" value="" class="input-text age f-l input-w160" />
				<span class="tipinfo"></span></li>
				<li class="align-member"><input type="submit" id="resetpasswordsubmit" value="提交" class="member-btn" /></li>
			</ul>
			<ul id="successUl"  style="display:none;">
				<li><p class=" mar_t_10">您成功更改了密码，请牢记您的新密码！<a href="{WWW_URL}" class="c_red u">返回首页</a></p></li>
			</ul>
		</form>
		</div>
	</div>
</div>

<div class="hr-h10"></div>
<!--{template 'system/footer.html'}-->