<!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_formvalidation.js"></script>
		<script type="text/javascript" src="{%$rootdir%}espcms_includes/js/espcms_dialog.js"></script>
		<script type="text/javascript">
			$(document).ready(function () {
				$("#memberreg").espcms_formvalidation({
					focusName: "#username",
					verifyURL: "{%$mlink.verify%}",
					verifyField: "username,email,mobile"
				});

				$("#member_login").espcms_formvalidation({focusName: "#login_user"});
			});
		</script>
	</head>

	<body>
		{%link file="public/head.html"%}
		<section class="bann_container">
			<div class="container page_bann_title">
				{%if $type=='weixin'%}<h2>微信帐户绑定登陆</h2>{%/if%}
				{%if $type=='qq'%}<h2>QQ帐户绑定登陆</h2>{%/if%}
				{%if $type=='weibo'%}<h2>新浪微薄帐户绑定登陆</h2>{%/if%}
				{%if $type=='alipay'%}<h2>支付宝帐户绑定登陆</h2>{%/if%}
			</div>
		</section>

		<section class="container espcms_page_book">
			<div class="row">
				<div>
					<ul class="nav nav-tabs nav-pills" role="tablist">
						{%if $type=='weixin'%}
						<li role="presentation" class="active"><a href="#reg" aria-controls="reg" role="tab" data-toggle="tab">注册新帐户并绑定微信</a></li>
						{%/if%}
						{%if $type=='qq'%}
						<li role="presentation" class="active"><a href="#reg" aria-controls="reg" role="tab" data-toggle="tab">注册新帐户并绑定QQ</a></li>
						{%/if%}
						{%if $type=='weibo'%}
						<li role="presentation" class="active"><a href="#reg" aria-controls="reg" role="tab" data-toggle="tab">注册新帐户并绑定新浪微博</a></li>
						{%/if%}
						{%if $type=='alipay'%}
						<li role="presentation" class="active"><a href="#reg" aria-controls="reg" role="tab" data-toggle="tab">注册新帐户并绑定支付宝</a></li>
						{%/if%}
						<li role="presentation"><a href="#login" aria-controls="login" role="tab" data-toggle="tab">绑定原注册帐户</a></li>
					</ul>
					<div class="tab-content">
						<div role="tabpanel" class="tab-pane fade in active" id="reg">
							<form name="memberreg" id="memberreg" method="post" class="form-horizontal admin-form" action="{%$mlink.regsave%}"/>
							<input type="hidden" name="tokenname" value="{%$reg_tokenkey.token_name%}"/>
							<input type="hidden" name="tokenkey" value="{%$reg_tokenkey.token_key%}"/>
							<input type="hidden" name="openid" value="{%$info.openid%}"/>
							<input type="hidden" name="alias" value="{%$info.alias%}"/>
							<input type="hidden" name="sex" value="{%$info.sex%}"/>
							<input type="hidden" name="country" value="{%$info.country%}"/>
							<input type="hidden" name="province" value="{%$info.province%}"/>
							<input type="hidden" name="city" value="{%$info.city%}"/>
							<input type="hidden" name="pic_url" value="{%$info.pic_url%}"/>
							<input type="hidden" name="pic" value="{%$info.pic%}"/>
							<input type="hidden" name="source" value="{%$type%}"/>
							<input type="hidden" name="type" value="onekey"/>
							<div class="form-group">
								<label class="col-sm-2 control-label">用户名</label>
								<div class="col-sm-9">
									<input type="text" name="username" id="username" class="form-control" data-validation="^[a-zA-z]{1}[\w]{2,50}$" placeholder="请输入1-16个英文或数字组成的字符,首字必须为英文字符" title="请输入1-16个英文或数字组成的字符,首字必须为英文字符" data-validation-msg="抱歉：用户名输入错误，请重新输入！" validation-warning="抱歉：用户名已存在" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">E-mail</label>
								<div class="col-sm-9">
									<input type="text" name="email" id="email" class="form-control" data-validation="^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$" placeholder="请输入E-mail" title="请输入E-mail" data-validation-msg="抱歉：E-mail输入错误，请重新输入！" validation-warning="抱歉：E-mail已存在" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">手机号</label>
								<div class="col-sm-9">
									<input type="text" name="mobile" id="mobile" class="form-control" data-validation="^1[\d]{10}$"  placeholder="请输入11位手机号" title="请输入11位手机号" data-validation-msg="抱歉：手机号输入错误，请重新输入！" validation-warning="抱歉：手机号已存在"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">登陆密码</label>
								<div class="col-sm-9">
									<input type="password" name="password"  class="form-control" id="password" maxlength="30" placeholder="请输入登陆密码" title="请输入登陆密码" password-rank="2" password-rank-msg="密码太简单，请换一个试试" data-validation-minlength="6" data-validation-maxlength="30" data-validation-msg="抱歉：密码输入错误，请返回重新输入" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">登陆密码</label>
								<div class="col-sm-9">
									<input type="password" name="validation_password"  class="form-control"  id="validation_password" maxlength="30" placeholder="请输入登陆确认密码" title="请输入登陆确认密码" password-validation-field="password" data-password-validation-msg="两次密码不一样，请重新输入！" data-validation-minlength="6" data-validation-maxlength="30" data-validation-msg="抱歉：确认密码输入错误，请返回重新输入！" />
								</div>
							</div>

							<div class="form-group">
								<label class="col-sm-2 control-label"></label>
								<div class="col-sm-9">
									<input type="checkbox" name="agree" id="agree" value="1" /> <a target="_blank" href="{%find:type class=1 out=link%}">阅读并同意网站相关服务条款</a>
								</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 role="tabpanel" class="tab-pane fade" id="login">
							<form name="member_login" id="member_login" method="post"class="form-horizontal admin-form"  action="{%$mlink.bingding_login%}"/>
							<input type="hidden" name="tokenname" value="{%$login_tokenkey.token_name%}"/>
							<input type="hidden" name="tokenkey" value="{%$login_tokenkey.token_key%}"/>
							<input type="hidden" name="openid" value="{%$info.openid%}"/>
							<input type="hidden" name="alias" value="{%$info.alias%}"/>
							<input type="hidden" name="sex" value="{%$info.sex%}"/>
							<input type="hidden" name="country" value="{%$info.country%}"/>
							<input type="hidden" name="province" value="{%$info.province%}"/>
							<input type="hidden" name="city" value="{%$info.city%}"/>
							<input type="hidden" name="pic_url" value="{%$info.pic_url%}"/>
							<input type="hidden" name="source" value="{%$type%}"/>
							<input type="hidden" name="type" value="onekey"/>
							<div class="form-group">
								<label class="col-sm-2 control-label">用户名</label>
								<div class="col-sm-9">
									<input type="text" name="login_user" id="login_user" class="form-control" maxlength="50" placeholder="请输入您在注册时填写的用户名、邮箱或手机" title="请输入您在注册时填写的用户名、邮箱或手机" data-validation="^[\u4e00-\u9fa5\w\@\.]{2,50}$" maxlength="50"  data-validation-msg="抱歉：用户名未输入，请返回重新输入"/>
								</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>
				</div>
			</div>
		</section>

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