<!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=utf-8" />
<title>会员中心 - [.$ourphp_web.website.] </title>
<link rel="stylesheet" href="[.$templatepath.]css/style.css" type="text/css" />
<script type="text/javascript" src="[.$webpath.]function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="[.$webpath.]function/plugs/layer3.1.0/layer.js"></script>
<link rel="stylesheet" href="[.$webpath.]function/plugs/YIQI-UI/YIQI-UI.min.css" type="text/css" />
</head>
<body>
<div id="YIQI-UI">
    [.include file="cn_top.html".]
    <div class="clear"></div>
	
	<div class="gb">
		<div class="ourphp_center">
			<div class="clear"></div>
			<div class="ourphp_login">
              
                    <div class="f-l ourphp_left">
                        [.if empty($ad.login).]
                            <img src="[.$templatepath.]images/logobei.png" />
                        [.else.]
                            [.$ad.login.]
                        [./if.]
                    </div>
                    <div class="f-r ourphp_right">
					
                [.*会员注册表单开始*.]
				<script type="text/javascript">
					function reginfo()
					{
						layer.open({
						  type: 1, 
						  title :'《用户协议与隐私条款》',
						  area: ['700px', '600px'],
						  content: '<div style="padding:10px;">[.$usercontrol.protocol.]</div>'
						});
					}
					function regselect(){

						var reg = $('#zh').val();
						$.post("[.$webpath.]client/wap/sendcode.php?reg&zh="+reg,{},function(data){
							if(data.error == 0){
								layer.msg(data.msg);
								return false;
							}else{
								if(reg == '格式:13888888888' || reg == '格式:77701950@qq.com'){
									$("#regselect").html('*');
								}else{
									$("#regselect").html(data.msg);
								}
							}
						},'json');

					}

					var wait = 120;
					function anniu(){
						if (wait == 0) { 
							$('#btn').attr("disabled", false);
							$('#btn').val('获取验证码');
							$("#btn").removeClass("disabled").addClass("btn-success");
							wait = 120; 
						} else { 
							$('#btn').attr("disabled", true); 
							$('#btn').val('重新发送(' + wait + ')');
							$("#btn").removeClass("btn-success").addClass("disabled");
							wait--; 
							setTimeout(function() { 
								anniu();
							}, 1000) 
						};
					}

					function reg_code(){

						var reg = $('#zh').val();
						if(reg == '格式:13888888888' || reg == '格式:77701950@qq.com' || reg == ''){
							layer.msg('* 号不能为空!');
							return false;
						}

						$.post("[.$webpath.]client/wap/sendcode.php?code&zh="+reg,{},function(data){
							if(data.error == 0){
								layer.msg(data.msg);
								return false;
							}
							anniu();
						},'json');

					}
					
					function ok()
					{
						if ($('input[name="Fruit"]').get(0).checked) {
						   return true;
						}else{
							layer.tips('请先勾选同意', 'input[name="Fruit"]', {
							  tips: 1
							});
							return false;
						}
					}
                </script>
                <style type="text/css">
                .fromleft {display: none;}
                #YIQI-UI .e tr td {padding: 0;}
                #YIQI-UI .border {
                    border: solid 0px #ddd;
                }
                #YIQI-UI .pl-10 {
                    padding-left: 0px;
                }
                #YIQI-UI .ml-15 {
                    margin-left: 0px;
                }
				.radio {
					font-family: inherit;
					font-size: inherit;
					font-style: inherit;
					font-weight: inherit;
					-webkit-appearance: checkbox; 
				}
                </style>
                [.if $usercontrol.regoff == 1.]
                <form id="form1" name="form1" method="post" action="[.$webpath.]client/user/ourphp_play.class.php?ourphp_cms=reg&lang=cn" class="registerform" onsubmit="javascript:return ok()">
                <table width="100%" border="0" cellpadding="0" class="table">
					  <tr>
						<td width="80"></td>
						<td><h5 class="f-l">注册会员</h5><h6 class="f-l ml-30 mt-15"><a href="?cn-login.html">登录</a></h6></td>
					  </tr>
                       <tr>
                        <td><div align="right">账号</div></td>
                        <td><table class="e">[.$regtable.]</table></td>
                      </tr>
                      <tr>
                        <td><div align="right">输入密码</div></td>
                        <td><input type="password" name="OP_Userpass" class="input" datatype="*6-16" nullmsg="请设置密码！" errormsg="密码范围在6~16位之间！"  placeholder="输入登录密码" /><font class="ml-10 f-f00">*</font></td>
                      </tr>
                      <tr>
                        <td><div align="right">确认密码</div></td>
                        <td><input type="password" name="OP_Userpass2" class="input" datatype="*" recheck="OP_Userpass" nullmsg="请再输入一次密码！" errormsg="您两次输入的密码不一致！"  placeholder="输入登录密码" /><font class="ml-10 f-f00">*</font></td>
                      </tr>
					  [.if $usercontrol.code == 0.]
                      <tr>
                        <td><div align="right">验证码</div></td>
                        <td><input type="text" name="code" class="input3" datatype="*" onfocus="document.getElementById('checkcode').src+='?'"  placeholder="输入验证码" /><font class="ml-10 mr-10 f-f00">*</font><img title="点击刷新" id="checkcode" src="[.$webpath.]function/ourphp_code.php" align="absbottom" onclick="this.src='[.$webpath.]function/ourphp_code.php?'+Math.random();" width="80" height="25"></img></td>
                      </tr>
					  [./if.]
                      <tr>
                        <td>&nbsp;</td>
                        <td>
							<input type="hidden" name="ip" value="[.$ip.ip.]" />
							<input type="hidden" name="source" value="[.$ip.listid.]" />
							<input type="hidden" name="introducer" value="[.$regconfig['introducer'].]" />
							<input type="submit" name="Submit" value="注册" class="btn btn-danger radius-5"/>
						</td>
                      </tr>
					  <tr>
							<td></td>
							<td class="f-12"><label><input name="Fruit" type="checkbox" class="radio" /> 已同意</label><a onclick="reginfo();">《用户协议与隐私条款》</a></td>
					  </tr>
                </table>
                </form>
                <link rel="stylesheet" href="../../function/plugs/Validform/style.css" type="text/css" />
                <script type="text/javascript" src="../../function/plugs/Validform/Validform_v5.3.2.js"></script>
                <script type="text/javascript" src="[.$templatepath.]js/fromsend.js"></script>
                [.else.]
                    <h3>暂时无法提供注册，请联系管理员！</h3>
                [./if.]
                [.*会员注册表单结束*.]
                
                </div>
					
                </div>
    	</div>
		
	</div>
    [.include file="cn_foot.html".]
</div>
</body>
</html>
