<? if (!defined('ROOT')) exit('Can\'t Access !'); ?>

<!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 content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title><?=$this->title?></title>
<meta name="keywords" content="<?=$this->keywords?>" />
<meta name="description" content="<?=$this->description?>" />
<link rel="stylesheet" href="<?=$this->tempdir?>images/header.css" type="text/css" />
<link rel="stylesheet" href="<?=$this->tempdir?>images/member.css" type="text/css" />
<script type="text/javascript" src="<?=$this->tempdir?>images/member.js" ></script>
<script type="text/javascript" src="<?=$this->tempdir?>images/addjoin.js" ></script>
<script type="text/javascript" src="<?=$this->appdir?>jquery.js" ></script>
<script type="text/javascript" src="<?=$this->appdir?>public.js" ></script>
</head>
<body>
<? include template('member_header','wjgw/member'); ?>
<div id="container" class="win1000">
  <div class="wraper-border"></div>
  <div id="wraper" class="clearfix"> 
<? include template('member_left','wjgw/member'); ?>
    <div id="right-con-user" class="right">
      <div class="title clearfix">
        <h2 class="balance-h2">申请商户</h2>
      </div>
      <div class="renzheng" style="margin-top:0; padding-top:0;">
        <form id="subform" name="subform" method="post" enctype="multipart/form-data" action="" onsubmit="return addjoin()">
          <div class="uppwd">
            <dl class="clearfix">
              <dt><span class="red">*</span>&nbsp;用户名</dt>
              <dd><input type="text" size="20" value="" class="inp inw" id="username" name="username" onblur="checkusername()"/>
              <span id="usernametip"></span></dd>
            </dl>
            
            <dl class="clearfix">
              <dt><span class="red">*</span>&nbsp;登录密码</dt>
              <dd><input type="password" size="30" name="password" id="pwd" class="inp inw" onblur="checkpassword()"/>
                 <span id="passwordtip"></span></dd>
            </dl>
            
            
            <dl class="clearfix">
              <dt><span class="red">*</span>&nbsp;确认密码</dt>
              <dd><input type="password" size="30" name="cpassword" id="cpassword" class="inp inw" onblur="checkcpassword()"/>
                  <span id="cpasswordtip"></span></dd>
            </dl>
            
            
            <dl class="clearfix">
              <dt><span class="red">*</span>&nbsp;常用邮箱</dt>
              <dd><input type="text" size="20" value="" class="inp inw" id="email" name="email" onblur="checkemail()"/>
                  <span id="emailtip"></span></dd>
            </dl>    
            
            <dl class="clearfix">
              <dt><span class="red">*</span>&nbsp;商户名称</dt>
              <dd><input type="text" size="20" value="" class="inp inw" id="company" name="company" onblur="checkcompany()"/>
                  <span id="companytip"></span></dd>
            </dl>
                   
            <dl class="clearfix">
              <dt><span class="red">*</span>&nbsp;所在区域</dt>
              <dd>
           <script type="text/javascript" src="<?=$this->appdir?>area.js"></script>
              
<select id="s_province" name="s_province"></select>&nbsp;&nbsp;
    <select id="s_city" name="s_city" ></select>&nbsp;&nbsp;
    <select id="s_county" name="s_county" onchange="checks_county()"></select>
<script type="text/javascript">
var s=["s_province","s_city","s_county"];
var opt0 = ["省份","地级市","市、县级市"];
_init_area();    
</script>
      <span id="s_countytip"></span></dd>
            </dl> 
            
            <dl class="clearfix">
              <dt><span class="red">*</span>&nbsp;详细地址</dt>
              <dd>
                <input type="text"  class="inw inp" id="address" name="address" value="" onblur="checkaddress()">
                <span id="addresstip"> </span></dd>
            </dl>                
            
            <dl class="clearfix">
              <dt><span class="red">*</span>&nbsp;商户联系人</dt>
              <dd><input type="text" size="20" value="" class="inp inw" id="truename" name="truename" onblur="checktruename()"/>
                  <span id="truenametip"></span></dd>
            </dl>
            
            
            
            <dl class="clearfix">
              <dt><span class="red">*</span>&nbsp;手机号码</dt>
              <dd><input type="text" size="20" value="" class="inp inw" id="userphone" name="userphone" onblur="checkuserphone()"/>
                  <span id="userphonetip"></span></dd>
            </dl>
            

                       
           
            <dl class="clearfix">
              <dt>&nbsp;</dt>
              <dd>
                <label class="butt" id="butt"> <?=config::form('submit','确认申请','submit','','class=\'btns\'');?> </label>
              </dd>
            </dl>
          </div>
        </form>
        
     </div>
    </div>
  </div>
  <div class="wraper-border"></div>
</div>
<? include template('member_footer','wjgw/member'); ?>
<script language="javascript">
$("document").ready(function(){$("#<?=$this->action?>").addClass('open');});
</script>
</body></html>