<script type='text/javascript' src='temp/js/ae21b4d45fd0b198e7d203719b38caa5.js'></script>
<script type="text/javascript">
Event.observe(window, "load", function() {Validator.run('mc_apply_form');});
function checkStoreName (obj) {
  Ajax.addVal('store_name', obj.value);
  var res = Ajax.call("index.php?app=storeapply&act=check_store_name", null, 'post', false);

  if (res.done) {
    return true;
  } else {
    return res.msg;
  }
}
</script>
<div id="mc_favorite" class="mc_box">
  <h3><span>我要开店</span></h3>
  <div class="mc_boxcontent">
  <form action="index.php?app=storeapply" method="post" name="mc_apply_form">
    <table class="mc_formtable" cellspacing="4">
      <tr>
        <td class="label">店主姓名:</td>
        <td><input class="sinput" type="text" size="30" name="owner_name" required="required" dataType="string" /><span class="note">请输入您的真实姓名</span></td>
      </tr>
      <tr>
        <td class="label">身份证号码:</td>
        <td><input class="sinput" type="text" size="40" name="owner_idcard" required="required" dataType="id_card" /></td>
      </tr>
      <tr>
        <td class="label">联系电话:</td>
        <td><input class="sinput" type="text" size="20" name="owner_phone" required="required" dataType="tel_num" /><span class="note">电话号码格式为：区号-电话号码（如 010-12345678）</span></td>
      </tr>
      <tr>
        <td class="label">详细地址:</td>
        <td><input class="sinput" type="text" size="50" name="owner_address" required="required" dataType="string" /></td>
      </tr>
      <tr>
        <td class="label">邮政编码:</td>
        <td><input class="sinput" type="text" size="20" name="owner_zipcode" required="required" dataType="post_code" /></td>
      </tr>
      <tr>
        <td class="label">店铺名称:</td>
        <td><input class="sinput" type="text" size="30" name="store_name" required="required" dataType="string" fun="checkStoreName"/></td>
      </tr>
      <tr>
        <td class="label">所在地:</td>
        <td><input class="sinput" type="text" size="20" name="store_location" required="required" dataType="string" /></td>
      </tr>
      <tr>
        <td class="label">申请理由:</td>
        <td><textarea name="apply_reason" cols="60" rows="5" required="required" dataType="string"></textarea></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><input type="submit" name="base_info_submit" value="提交" class="sbtn" />
          <input type="reset" name="value_reset" value="重置表单" class="sbtn" /></td>
      </tr>
    </table>
  </form>
  </div>
  <div class="colbtm"></div>
</div>
