<!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>修改E-mail_会员中心_{$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 edit_ok(data) {
	alert(data.message);
}
$.validate.setConfigs({
	xmlPath:'apps/member/validators/'
});
$(document).ready(function() {
	$('#member_editEmail').validate({
		submitHandler:function(form){
			$(form).ajaxSubmit({
				success: edit_ok,
				dataType:'json'
			});
			return false;
		},
		infoHandler:function(jq,message,type){
			jq.siblings('em').remove();
			if(type == 'error') jq.after('<em class="warn"> '+message+'</em>');
		}
	});
	$("input").change(function(){
		$(this).siblings('em').remove();
	});
});
</script>
</head>
<body class="person-theme">
	<div class="person-wrap">
		<?php $menu['email'] = 'class="person-current"'; $this->assign('menu',$menu); ?>
		<!--{template 'member/panel/header.html'}-->
		<div class="clear"></div>
		<div class="person-cont">
			<div class="hr-h10"></div>
			<form action="{url('member/panel/email')}" name="member_editEmail" id="member_editEmail" method="POST" >
				<ul class="formFormat">
					<li><span class="info f-l txt-r"><em>*</em> 登录密码：</span>
					<input type="password" name="password" id="password" value="" class="input-text f-l input-w200"/>
					</li>
					<li><span class="info f-l txt-r"><em>*</em> 新邮箱：</span>
					<input type="text"  name="email" id="email" value="" class="input-text age f-l input-w200" /></li>
					<li><span class="info f-l txt-r"><em>*</em> 再次输入：</span>
					<input type="text" class="input-text age f-l input-w200" value="" name="email_check" id="email_check"  /></li>
					<li class="ok-wrap"><input type="submit" id="button" value="确 定" class="zl-btn zl-ok f-l"/></li>
				</ul>
			</form>
			
		</div>
	</div>
<div class="hr-h10"></div>
<!--{template 'system/footer.html'}-->