{:tpl member_head}
<div id="reg">
 <h3>欢迎加入{:C('name')}
   <div><span></span></div></h3>
 <div class="left">
 <form action="{:Url::getUrl('member', 'reg')}" method="post" name="reg">
  <input type="hidden" name="forward" value="{:$referer}" />
  <!--{:Tag::tokenForm()}-->
  <p>
   <label>我的邮箱：</label>
   <input type="text" name="info[email]" require="true" datatype="email|ajax" url="{:Url::getUrl('member', 'check_email')}" msg="邮件格式不正确|" msgid="email_info" size="30" />
   <span id="email_info">请输入你的常用邮箱</span>
  </p>
  <p>
   <label>用户名：</label>
   <input type="text" size="30" name="info[username]" require="true" datatype="limit|username|ajax" url="{:Url::getUrl('member', 'check_username')}" min="{:C('regminname', 0, 'member')}" max="{:C('regmaxname', 0, 'member')}" msg="使用{:C('regminname', 0, 'member')}-{:C('regmaxname', 0, 'member')}位字符，支持中英文、数字和下划线|用户名包含非法字符|" msgid="username_info" />
   <span id="username_info">使用{:C('regminname', 0, 'member')}-{:C('regmaxname', 0, 'member')}位字符，支持中英文、数字和下划线</span>
  </p>
  <p>
   <label>密码：</label>
   <input type="password" size="30" name="info[password]" require="true" datatype="limit|password|ajax" min="6" max="12" msg="密码不得少于6个字符或超过12个字符！|密码包含非法字符" msgid="password_info" url="{:Url::getUrl('member', 'check_password')}" />
   <span id="password_info">密码由6-12位字符、数字组成</span>
  </p>
  <p>
   <label>确认密码：</label>
   <input type="password" size="30" name="info[password]" require="true" datatype="repeat" to="info[password]" msg="两次输入的密码不一致" msgid="pwdconfirm_info" />
   <span id="pwdconfirm_info">请再输入一遍您上面填写的密码</span>
  </p>
  <p>
   <label>性别：</label>
   <input type="radio" class="radio" name="info[gender]" checked="checked" value="0"/>男&nbsp;&nbsp;<input type="radio" class="radio" name="info[gender]" value="1"/>女
  </p>
  <p>
   <label>验证码：</label>
   <input size="5" id="captcha" name="captcha" style="ime-mode:disabled;width:40px;" require="true" datatype="limit|ajax" min="4" max="4" url="?c=common&a=check_captcha" msg="请正确填写验证码|" msgid="captcha_info">
   <img src="?c=common&a=captcha" id="captchaimg" style="cursor:pointer; margin-left:5px; vertical-align:middle;" onClick="this.src='?c=common&a=captcha&'+Math.random()" align="absmiddle" title="看不清？点击更换验证码" />
   <span id="captcha_info"></span>
  </p>
  <p>
   <label>&nbsp;</label>
   <input type="checkbox" name="regagreement" checked="checked" value="1" datatype="group" min="1" max="1" require="true" msg="请选择同意网站协议" msgid="reginfo" class="checkbox" />&nbsp;我已经阅读并同意<a href="javascript:;" id="show_privacy">注册协议</a><span id="reginfo"></span>
  </p>
  <p class="submit">
   <input type="submit" name="submit" value="注 册" />
  </p>
  </form>
 </div>
 <div class="right">
  <p class="title">已有账号？</p>
  <p>立即登录{:C('name')}！</p>
  <p class="login"><a href="{:Url::getUrl('member', 'login')}">注册</a></p>
 </div>
</div>
<script type="text/javascript" src="../../statics/js/validator.js"></script>
<script language="javascript" type="text/javascript">
$(function(){
	$('form').checkForm(1);
	$('#show_privacy').click(function(){
		$.jxbox('../../index.php?c=onepage&a=ajax&name=privacy',{title:'{:$config["name"]}会员注册协议',width:600,type:'ajax',modal:1});
	});
})
</script>
{:tpl member_foot}