<!-- #include file="../../themes/default/~css.php" -->
<?php if(!isset($_GET['agree'])){?>
<div style="width:500px;">
<?=tpl_doc(1)?>
<div align="center">
    <input value="<?=htmlmlang('同意')?>" type="button" class="button" onclick="$.fn.colorbox({href:'<?=url(RPGMA.'?agree&win')?>'})"> 
    <input value="<?=htmlmlang('不同意')?>" type="button" class="button" onclick="$.fn.colorbox.close()">
</div>
</div>
<?php }else{?>
<div style="width:560px;">
<form action="<?=url(RPGM.'reg/?ajax')?>" method="post" id="form" onsubmit="return yun_submit(this.id);">
<h3 class="title"><?=htmlmlang('用户注册')?></h3>
<div class="in">

<div class="fieldwrapper">
	<label for="" class="styled"><?=htmlmlang('用户名')?></label>
	<div class="thefield">
    <input name="name" type="text" id="name" value="" tabindex="1"/>
    </div>
</div>
<div class="fieldwrapper">
	<label for="" class="styled"><?=htmlmlang('Email')?></label>
	<div class="thefield">
    <input name="email" type="text" id="email"  value="" tabindex="2"/>
    </div>
</div>
<div class="fieldwrapper">
	<label for="" class="styled"><?=htmlmlang('密码')?></label>
	<div class="thefield">
    <input type="password" tabindex="3" id="pass" name="pass"/>
    </div>
</div>
<div class="fieldwrapper">
	<label for="" class="styled"><?=htmlmlang('再次输入密码')?></label>
	<div class="thefield">
    <input type="password" tabindex="4" id="pass2" name="pass2"/>
    </div>
</div>
<div class="fieldwrapper">
	<label for="" class="styled"><?=htmlmlang('性别')?></label>
	<div class="thefield">
    <select name="sex" tabindex="5"><option value="0"><?=htmlmlang('男')?> 
                          </option>
      <option value="1"><?=htmlmlang('女')?> 
                          </option>                          
    </select>
    </div>
</div>
<div class="fieldwrapper">
	<label for="" class="styled" ><?=htmlmlang('验证码')?></label>
	<div class="thefield">
    <img id="captchaimg" src="<?=ROOTPATH?>includes/captcha.php" border="0" /> <a href="javascript:void(0)" onclick="recaptcha();return false;"><?=htmlmlang('看不清')?>?</a><br />
<input type="text"  id="captcha" name="captcha" tabindex="6"/>
    </div>
</div>
<div class="buttonsdiv">
	<input value="<?=htmlmlang('提交')?>" type="submit" class="button" tabindex="7"> 
    <input value="<?=htmlmlang('重置')?>" type="reset" class="button" tabindex="8">
</div>

</div>
</form>
                  </div>
<?php }?>
<script type="text/javascript">
	yun_onfocus("name");
</script>
