<!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 content="zh-cn" http-equiv="Content-Language" />
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
		<meta name="renderer" content="webkit"/>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0,  user-scalable=no"/>
		<title>{%$lngpack.sitename%}</title>
		<meta name="keywords" content="{%$lngpack.keyword%}" />
		<meta name="description" content="{%$lngpack.description%}" />
		<link rel="icon" type="image/png" href="{%$icon_16%}" sizes="16x16"/>
		<link rel="icon" type="image/png" href="{%$icon_32%}" sizes="32x32"/>
		<link rel="icon" type="image/png" href="{%$icon_64%}" sizes="64x64"/>
		<link href="{%$rootpath%}css/bootstrap.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/espcmsp8_font.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/swiper.min.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/espcmsp8_all.css" rel="stylesheet" type="text/css" />
		<link href="{%$rootpath%}css/espcms_p8_public.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/jquery.min.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/bootstrap.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/swiper.min.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_base.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_dialog.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_formvalidation.js"></script>
	</head>

	<body>
		{%link file="public/head.html"%}
		<section class="bann_container">
			<div class="container page_bann_title">
				<h2>会员中心</h2>
			</div>
		</section>

		<section class="container espcms_page_book">
			<div class="row">
				<div class="col-xs-12 col-sm-12 col-md-3">
					{%list name=memmenu%}
				</div>
				<div class="col-xs-12 col-sm-12 col-md-9">
					{%if $out=='home'%}
					<div class="panel panel-info espcms_member_page">
						<div class="panel-heading"><h3>社交帐户管理</h3></div>
						<div class="panel-body">
							<ul class="sns_icon_list">
								{%if $qq_creat_link%}<li><a href="{%$qq_creat_link%}" class="qq_sns sns_icon"><p>解除绑定</p></a></li>{%/if%}
								{%if $weibo_creat_link%}<li><a href="{%$weibo_creat_link%}" class="weibo_sns sns_icon"><p>解除绑定</p></a></li>{%/if%}
								{%if $weixin_creat_link%}<li><a href="{%$weixin_creat_link%}" class="weixin_sns sns_icon"><p>解除绑定</p></a></li>{%/if%}
							</ul>
						</div>
					</div>
					{%elseif $out=='password'%}
					<div class="panel panel-info espcms_member_page">
						<div class="panel-heading"><h3>解除社交帐户绑定</h3></div>
						<div class="panel-body">
							<script type="text/javascript">
								$(document).ready(function () {
									$("#editinfo").espcms_formvalidation({focusName: "#password"});
								});
							</script>
							<form name="editinfo" id="editinfo" method="post" class="form-horizontal admin-form" action="{%$mlink.edit_save%}">
								<input type="hidden" name="tokenname" value="{%$tokenkey.token_name%}"/>
								<input type="hidden" name="tokenkey" value="{%$tokenkey.token_key%}"/>
								<input type="hidden" name="inputclass" value="creatsns"/>
								<input type="hidden" name="type" value="{%$type%}"/>
								<div class="form-group">
									<label class="col-sm-2 control-label">用户名</label>
									<div class="col-sm-9 pt6">{%$member.username%}</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">邮箱</label>
									<div class="col-sm-9 pt6">{%$member.email%}</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">除解类型</label>
									<div class="col-sm-9 pt6">
										{%if $type=='qq'%}QQ帐户绑定{%/if%}
										{%if $type=='weibo'%}微博帐户绑定{%/if%}
										{%if $type=='weixin'%}微信帐户绑定{%/if%}
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">新密码</label>
									<div class="col-sm-9">
										<input type="password" name="password" id="password" class="form-control" placeholder="请输入登陆密码" title="请输入登陆密码" data-validation-minlength="6" data-validation-maxlength="30" maxlength="30" data-validation-msg="抱歉，当前登陆密码填写错误，密码为6至30位任意字符，请返回重新填写！"/>
									</div>
								</div>
								<div class="form-group">
									<div class="col-sm-offset-2 col-sm-9">
										<input type="submit" class="btn btn-success btn-block" formmethod="POST" value="确认解除"/>
									</div>
								</div>
							</form>
						</div>
					</div>
					{%/if%}

				</div>
			</div>
		</section>

		{%link file="public/footer.html"%}
	</body>
</html>