<!--{include file="<!--{$oetplpath}-->public/widget_header.tpl"}-->
<script src="<!--{$skinpath}-->public/js/reguser.js"></script>
<div class="oe_public_top">
  <div class="oe_public_topcon">
    <!--{include file="<!--{$oetplpath}-->public/widget_logo.tpl"}-->
    <div class="_top_title">
      <i></i>
      <span>会员注册</span>
    </div>
    <div class="_top_tips">
      已经注册了会员帐号？<a href="<!--{routeurl module='passport' action='loginuser'}-->">点击这里登录&gt;&gt;</a>
    </div>
    <div class="clear"></div>
  </div>
</div>
<!--//oe_public_top End-->

<div class="oe_public_main">

  <div class="oe_passport_lt"> 
    
	<form id="myform" action="<!--{$urlpath}-->index.php" method="post" />
	<input type="hidden" name="c" id="c" value="passport" />
	<input type="hidden" name="a" id="a" value="userpost" />
	<div class="oe_passport_widget">
	  <h2>
	    <em>帐户信息</em>填写以下会员资料才可以提交注册
		<span><a href="<!--{routeurl module='passport' action='regmerchant'}-->">我是商家，我要入驻&gt;&gt;</a></span>
	  </h2>
	  <dl>
	    <dt><em></em>注册方式：</dt>
		<dd>
		  <span>
		    <input type="radio" name="regtype" id="regtype" value="2" checked onclick="selectRegType('2');" />手机&nbsp;
		    <input type="radio" name="regtype" id="regtype" value="1" onclick="selectRegType('1');" />邮箱
		  </span>
	    </dd>
		<div class="clear"></div>
	  </dl>
	  <dl id="puts_mobile">
	    <dt><em>*</em>手机号码：</dt>
		<dd>
		  <input class="input_200" type="text" name="mobile" id="mobile" maxlength="11" />
		  <span id="tips_mobile">（请填写正确的手机号码）</span>	  
	    </dd>
		<div class="clear"></div>
	  </dl>
	  <!--{if $config.regmobilecode == '1'}-->
	  <dl id="puts_mobilecode">
	    <dt><em>*</em>手机验证码：</dt>
		<dd>
		  <input class="input_100" type="text" name="mobilecode" id="mobilecode" maxlength="6" />
		  <input type="button" name="btn_send_mobilecode" id="btn_send_mobilecode" value="获取验证码" />
		  <span id="tips_mobilecode"></span>	  
	    </dd>
		<div class="clear"></div>
	  </dl>
	  <!--{/if}-->


	  <dl id="puts_email" style="display:none;">
	    <dt><em>*</em>邮箱地址：</dt>
		<dd>
		  <input class="input_200" type="text" name="email" id="email" />
		  <span id="tips_email">（请填写正确的邮箱）</span>	  
	    </dd>
		<div class="clear"></div>
	  </dl>
	  <!--{if $config.regemailcode == '1'}-->
	  <dl id="puts_emailcode" style="display:none;">
	    <dt><em>*</em>邮箱验证码：</dt>
		<dd>
		  <input class="input_100" type="text" name="emailcode" id="emailcode" maxlength="6" />
		  <input type="button" name="btn_send_emailcode" id="btn_send_emailcode" value="获取验证码" />
		  <span id="tips_emailcode"></span>	  
	    </dd>
		<div class="clear"></div>
	  </dl>
	  <!--{/if}-->


	  <dl>
		<dt><em>*</em>设置密码：</dt>
		<dd>
		  <input class="input_200" type="password" name="password" id="password" />
	      <span id="tips_password">（设置6~16个字符的密码）</span>
	    </dd>
		<div class="clear"></div>
	  </dl>
	  <dl>
		<dt><em>*</em>用户名：</dt>
		<dd>
		  <input class="input_200" type="text" name="username" id="username" />
	      <span id="tips_username">（3~16个字符，由字符、数字、汉字组成）</span>
	    </dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
		<dt><em></em>头像：</dt>
		<dd>
		  <h3><img src="<!--{$urlpath}-->tpl/static/images/waitimg_s.jpg" id="img_preview" /></h3>
		  <div class="oe_img_upload">
		    <label class="_uploadbtn">上传头像<input type="file" name="img" id="img" value="" /></label>
			<label class="_uploading" id="img_loading">
			  <img src="<!--{$urlpath}-->tpl/static/images/loading.gif" />&nbsp;
			</label>
			<input type="hidden" id="img_thumb" name="headimg" value="" />
			<input type="hidden" id="img_url" name="img_url" value="" />
		  </div>
		  <script type="text/javascript">
		  $(function(){
			  $("#img").live("change", function(){
				oemarryUploadImg("img", "<!--{$oefile}-->?c=passport&a=uploadimg&module=avatar&thumbfiles=1&forbidwater=1");
			  });
		  });
		  </script>
	    </dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
		<dt><em></em>性别：</dt>
		<dd>
		  <span>
		  <input type="radio" name="gender" id="gender" value="2" />女士
		  <input type="radio" name="gender" id="gender" value="1" />先生
		  </span>
	    </dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
		<dt><em></em>所在地区：</dt>
		<dd>
		<!--{area type='select' name='area' depth='1' child='1' text='=请选择='}-->
		<i id="json_area2">
		  <select name="area2" id="area2"><option value="">=请选择=</option></select>
		</i>
		<i id="json_area3">
		  <select name="area3" id="area3"><option value="">=请选择=</option></select>
		</i>
		<i id="json_area4">
		
		</i>
	    </dd>
		<div class="clear"></div>
	  </dl>

	  <dl style="display:none;">
		<dt><em></em>个人简介：</dt>
		<dd>
		  <textarea name="intro" id="intro"></textarea>
	    </dd>
		<div class="clear"></div>
	  </dl>
	  
	  <!--{if $config.regcode == '1'}-->
	  <dl>
		<dt><em>*</em>验证码：</dt>
		<dd>
		  <input class="input_100" type="text" name="checkcode" id="checkcode" maxlength="5" />
		  <img style="cursor:pointer;" title="点击换一个" id="img_checkcode" src="<!--{$urlpath}-->source/include/imagecode.php?act=verifycode" />
	      <span id="tips_checkcode"></span>
	    </dd>
		<div class="clear"></div>
	  </dl>
	  <!--{/if}-->
	  
	  <dl>
	    <dt>&nbsp;</dt>
		<dd>
		  <i class="_btn_post_1" id="btn_post">提交注册</i>
		</dd>
		<div class="clear"></div>
	  </dl>
	  <div class="clear"></div>
	</div>
	</form>
	<!--//oe_passport_widget End-->
  </div>
  <!--//oe_passport_lt End-->
  <!--{include file="<!--{$oetplpath}-->public/widget_help.tpl"}-->

</div>  

<!--{include file="<!--{$oetplpath}-->public/widget_footer.tpl"}-->
</body>
</html>
