<!--{include file="<!--{$oetplpath}-->public/widget_header.tpl"}-->
<script src="<!--{$skinpath}-->public/js/regmerchant.js"></script>
<script src="<!--{$urlpath}-->tpl/static/js/jquery.upload.js"></script>
<script src="<!--{$urlpath}-->tpl/static/js/oeupload.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='loginmerchant'}-->">点击这里登录&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="merchantpost" />
	<div class="oe_passport_widget">
	  <h2>
	    <em>帐户信息</em>用于商家登录店铺管理平台
	  </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>

	  <h2>
	    <em>商家资料</em>用于商家入驻资质审核，请填写准确的信息
	  </h2>

	  <dl>
	    <dt><em>*</em>商家类型：</dt>
		<dd>
		  <select name="shoptype" id="shoptype">
		    <option value="0">=请选择=</option>
		    <option value="2">企业</option>
		    <option value="1">个人</option>
		  </select>
		  <span id="tips_shoptype">（个人上传身份证证件，企业上传营业执照证件）</span>	  
	    </dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
	    <dt><em>*</em>店铺分类：</dt>
		<dd>
		  <!--{hook mod='shopcat' type='select' name='catid' text='=请选择='}-->
		  <span id="tips_catid">（店铺开通后，可以通过分类找到您的店铺）</span>	  
	    </dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
	    <dt><em>*</em>店铺名称：</dt>
		<dd>
		  <input class="input_200" type="text" name="shopname" id="shopname" maxlength="30" />
		  <span id="tips_shopname">（在网站店铺的名称，30个字以内，一旦提交不能修改）</span>
	    </dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
	    <dt><em>*</em>店铺LOGO：</dt>
		<dd>
		  <span id="tips_logo">（店铺LOGO要与店铺名称相关，否则不予审核。LOGO缩略大小比例为：<!--{$config.shoplogowidth}-->*<!--{$config.shoplogoheight}-->px）</span>
		  <h3><img src="<!--{$urlpath}-->tpl/static/images/waitimg_s.jpg" id="logoimg_preview" /></h3>
		  <div class="oe_img_upload">
		    <label class="_uploadbtn">点击上传<input type="file" name="logoimg" id="logoimg" value="" /></label>
			<label class="_uploading" id="logoimg_loading">
			  <img src="<!--{$urlpath}-->tpl/static/images/loading.gif" />&nbsp;
			</label>
			<input type="hidden" id="logoimg_thumb" name="logo" value="" />
			<input type="hidden" id="logoimg_url" name="logoimg_url" value="" />
		  </div>
		  <script type="text/javascript">
		  $(function(){
			  $("#logoimg").live("change", function(){
				oemarryUploadImg("logoimg", "<!--{$oefile}-->?c=passport&a=uploadimg&module=shoplogo&thumbfiles=1&forbidwater=1", "oeCheckShopLogo");
			  });
		  });
		  </script>
	    </dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
		<dt><em>*</em>所在地区：</dt>
		<dd>
			<!--{area type='select' name='area' depth='1' child='1' text='=请选择=' callback='oeCheckArea'}-->
			<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>
			<span id="tips_area"></span>
	    </dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
		<dt><em>*</em>详细地址：</dt>
		<dd>
		  <input class="input_200" type="text" name="address" id="address" />
		  <span id="tips_address"></span>
		</dd>
		<div class="clear"></div>
	  </dl>


	  <dl>
		<dt><em>*</em>联系电话：</dt>
		<dd>
		  <input class="input_200" type="text" name="phone" id="phone" />
		  <span id="tips_phone"></span>
		</dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
		<dt><em></em>联系QQ：</dt>
		<dd>
		  <input class="input_200" type="text" name="qq" id="qq" />
		  <span id="tips_qq"></span>
		</dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
		<dt><em></em>营业时间：</dt>
		<dd>
		  <input class="input_200" type="text" name="worktime" id="worktime" />
		  <span id="tips_worktime"></span>
		</dd>
		<div class="clear"></div>
	  </dl>


	  <dl>
		<dt><em>*</em>证件号码：</dt>
		<dd>
		  <input class="input_200" type="text" name="idnumber" id="idnumber" />
		  <span id="tips_idnumber">（个人请填写身份证号，企业请填写营业执照号）</span>
		</dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
		<dt><em>*</em>证件图片：</dt>
		<dd>
		  <span id="tips_paper">（证件图片必须清晰，否则不予审核！）</span>
		  <h3><img src="<!--{$urlpath}-->tpl/static/images/waitimg_s.jpg" id="paperimg_preview" /></h3>
		  <div class="oe_img_upload">
		    <label class="_uploadbtn">点击上传<input type="file" name="paperimg" id="paperimg" value="" /></label>
			<label class="_uploading" id="paperimg_loading">
			  <img src="<!--{$urlpath}-->tpl/static/images/loading.gif" />&nbsp;
			</label>
			<input type="hidden" id="paperimg_thumb" name="paperimg_thumb" value="" />
			<input type="hidden" id="paperimg_url" name="paper" value="" />
		  </div>
		  <script type="text/javascript">
		  $(function(){
			  $("#paperimg").live("change", function(){
				oemarryUploadImg("paperimg", "<!--{$oefile}-->?c=passport&a=uploadimg&module=upload&forbidwater=1", "oeCheckShopPaper");
			  });
		  });
		  </script>
		</dd>
		<div class="clear"></div>
	  </dl>

	  <dl>
		<dt><em>*</em>店铺简介：</dt>
		<dd>
		  <textarea name="intro" id="intro"></textarea>
		  <span id="tips_intro"></span>
	    </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_2" 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>
