<!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" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>{#$title#}</title>
	<meta name="author" content="骑士CMS" />
	<meta name="copyright" content="74cms.com" />
	<link rel="shortcut icon" href="{#$QISHI.site_dir#}favicon.ico" />
	<link rel="stylesheet" href="{#$QISHI.site_template#}css/user_common.css" />
	<link rel="stylesheet" href="{#$QISHI.site_template#}css/user_personal.css" />
	<script src="{#$QISHI.site_template#}js/png24fix.js"></script>
	<script src="{#$QISHI.site_template#}js/jquery.js"></script>
	<script src="{#$QISHI.site_template#}js/Validform.min.js"></script>
	<script>
		$(document).ready(function() {
			$(".security_item:last").css({"border-bottom":"0"});
			var RightHeight = $(".a_s_right").height();
			$(".a_s_left .a_s_nav").height(RightHeight-2);
			//验证
			$("#form1").Validform({
				tiptype:2
			});
			// 发送邮箱验证码
			$("#SendEmailCode").click(function() {
				var email = $("input[name=email]").val();
				$.post('{#$QISHI.site_dir#}plus/ajax_verify_email.php',{act: 'send_code',email:email},function(data){
					if(data=="success")
					{
						alert("验证码已发至您的邮箱");
					}
					else
					{
						alert(data);
					}
				});
			});
			// 邮箱验证操作
			$("#EmailSubmit").click(function() {
				var email = $("input[name=email]").val();
				var verifycode = $("input[name=verifycode]").val();
				$.post('{#$QISHI.site_dir#}plus/ajax_verify_email.php', {act:"verify_code",email:email,verifycode:verifycode}, function(data) {
					if(data=="success")
					{
						$("#form1").submit();
					}
					else
					{
						alert(data);
					}
				});
			});
		});
	</script>
</head>
<body>
{#include file="member_personal/header.htm"#}
	<!-- 账号安全页面 -->
	<div class="container">
		<div class="account_security clearfix">
			{#include file="member_personal/personal_info_nav.htm"#}
			<div class="a_s_right">
				<div class="a_s_main">
					 <div class="account_s_title clearfix"><h2>账号安全</h2></div>
					 <div class="account_s_box">
						<div class="last_login">上次登录：{#$member.last_login_time|date_format:"%Y-%m-%d"#}</div>
						<div class="security_box">
							<div class="security_item">
								<div class="security_info_show clearfix">
									<div class="security_info_type staus done">登录密码</div>
									<div class="security_tip password">互联网账号存在被盗风险，建议您定期更改密码以保护账户安全。</div>
									<div class="change link_blue"><a href="?act=edit_password" class="change_btn" id="edit_password">修改</a></div>
								</div>
							</div>
							<div class="security_item">
								<div class="security_info_show clearfix">
									<div class=" {#if $member.email_audit=='0'#}security_info_type staus not_done{#else#}security_info_type staus done{#/if#}">邮箱认证</div>
								</div>
								<!-- 第二步 -->
								<form id="form1" name="form1" action="?act=user_email_seccess" method="post">
								<div class="security_change_box">
									<div class="security_step_bar clearfix">
										<div class="s_step step1 sdone">验证身份</div>
										<div class="s_step step2 done">修改邮箱</div>
										<div class="s_step step3">完成</div>
									</div>
									<div class="security_change_form">
										<div class="security_change_item clearfix">
											<div class="security_change_type" name="email">邮箱：</div>
											<div class="security_change_con">
												<input type="text" class="text input-medium span215" datatype="e" sucmsg="&nbsp;" nullmsg="请输入登录邮箱" errormsg="邮箱格式不正确"/>
											</div>
											<div></div>
										</div>
										<div class="security_change_item clearfix">
											<div class="security_change_type">验证码：</div>
											<div class="security_change_con link_blue">
												<input type="text" class="text input-medium span215" datatype="*" sucmsg="&nbsp;" nullmsg="请输入验证码" errormsg="请输入验证码"/><a href="javascript:void(0)" id="SendEmailCode" class="ver_code">获取验证码</a>
											</div>
											<div></div>
										</div>
										<div class="security_change_item clearfix">
											<div class="security_change_type">&nbsp;</div>
											<div class="security_change_con">
												<input type="button" id="EmailSubmit" value="确定" class="but60lan" />
												<a href="?act=security" class="a_s_cancel">取消</a>
											</div>
										</div>
									</div>
								</div>
								<!-- 第二步结束 -->
								</form>
							</div>
							<div class="security_item">
								<div class="security_info_show clearfix">
									<div class="{#if $member.mobile_audit=='0'#}security_info_type staus not_done{#else#}security_info_type staus done{#/if#}">绑定手机</div>
									<div class="security_tip">验证后，可用于帐号登录和密码找回，并可接收面试通知等</div>
									<div class="change link_blue"><a href="?act=user_mobile" class="change_btn">设置</a></div>
								</div>
							</div>
						</div>
					 </div>
				</div>
			</div>
		</div>
	</div>
	{#include file="./footer.htm"#}
</body>
</html>