{include file="public/header" /}
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>



<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>店铺管理</h3>
                <h5></h5>
            </div>
            {include file="public/admin_items" /}
        </div>
    </div>
  <div class="homepage-focus" nctype="editStoreContent">
      <ul class="tab-menu">
          <li class="current">店铺信息</li>
          <li>注册信息</li>
      </ul>
      <form id="store_form" method="post">
          <input type="hidden" name="form_submit" value="ok" />
          <input type="hidden" name="store_id" value="<?php echo $store_array['store_id'];?>" />
          <table class="ds-default-table">
              <tbody>
                  <tr class="noborder">
                      <td colspan="2" class="required"><label>{$Think.lang.store_user_name}:</label></td>
                  </tr>
                  <tr class="noborder">
                      <td class="vatop rowform"><?php echo $store_array['member_name'];?></td>
                      <td class="vatop tips"></td>
                  </tr>
                  <tr>
                      <td colspan="2" class="required"><label class="validation" for="store_name">店铺名称:</label></td>
                  </tr>
                  <tr class="noborder">
                      <td class="vatop rowform"><input type="text" value="<?php echo $store_array['store_name'];?>" id="store_name" name="store_name" class="txt"></td>
                      <td class="vatop tips"></td>
                  </tr>
                  <tr>
                      <td colspan="2" class="required"><label for="store_name">开店时间:</label></td>
                  </tr>
                  <tr class="noborder">
                      <td class="vatop rowform"><?php echo ($t = $store_array['store_add_time'])?@date('Y-m-d',$t):'';?></td>
                      <td class="vatop tips"></td>
                  </tr>
                  <tr>
                      <td colspan="2" class="required"><label>{$Think.lang.belongs_class}:</label></td>
                  </tr>
                  <tr class="noborder">
                      <td class="vatop rowform"><select name="sc_id">
                              <option value="0">{$Think.lang.ds_please_choose}...</option>
                              <?php if(is_array($class_list)){ ?>
                              <?php foreach($class_list as $k => $v){ ?>
                              <option <?php if($store_array['sc_id'] == $v['sc_id']){ ?>selected="selected"<?php } ?> value="<?php echo $v['sc_id']; ?>"><?php echo $v['sc_name']; ?></option>
                              <?php } ?>
                              <?php } ?>
                          </select></td>
                      <td class="vatop tips"></td>
                  </tr>
              </tbody>
              <tbody>
                  <tr>
                      <td colspan="2" class="required"><label>
                              <label for="grade_id"> {$Think.lang.belongs_level}: </label>
                          </label></td>
                  </tr>
                  <tr class="noborder">
                      <td class="vatop rowform"><select id="grade_id" name="grade_id">
                              <?php if(is_array($grade_list)){ ?>
                              <?php foreach($grade_list as $k => $v){ ?>
                              <option <?php if($store_array['grade_id'] == $v['sg_id']){ ?>selected="selected"<?php } ?> value="<?php echo $v['sg_id']; ?>"><?php echo $v['sg_name']; ?></option>
                              <?php } ?>
                              <?php } ?>
                          </select></td>
                      <td class="vatop tips"></td>
                  </tr>
                  <tr>
                      <td colspan="2" class="required">{$Think.lang.period_to}:</td>
                  </tr>
                  <tr class="noborder">
                      <td class="vatop rowform"><input type="text" value="<?php echo $store_array['store_end_time'];?>" id="end_time" name="end_time" class="txt date"></td>
                      <td class="vatop tips">{$Think.lang.formart}</td>
                  </tr>
                  <!--店铺保障开-by 33h ao.com-->
              <td class="vatop tips"></td>
              </tr>
              <tr>
                  <td colspan="2" class="required"><label for="store_tq">店铺保障服务开关:</label></td>
              </tr>
              <tr>
                  <td width="70%">
                      <div class="onoff" style="float:left;margin-right:10px;">
                          <label for="store_baozh1" class="cb-enable <?php if($store_array['store_baozh'] == '1'){ ?>selected<?php } ?>" ><span>保障</span></label>
                          <label for="store_baozh0" class="cb-disable <?php if($store_array['store_baozh'] == '0'){ ?>selected<?php } ?>" ><span>图标</span></label>
                          <input id="store_baozh1" name="store_baozh" <?php if($store_array['store_baozh'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
                                 <input id="store_baozh0" name="store_baozh" <?php if($store_array['store_baozh'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio">
                      </div>
                      <div class="onoff" style="float:left;margin-right:10px;">
                          <label for="store_baozhopen1" class="cb-enable <?php if($store_array['store_baozhopen'] == '1'){ ?>selected<?php } ?>" ><span>保证金</span></label>
                          <label for="store_baozhopen0" class="cb-disable <?php if($store_array['store_baozhopen'] == '0'){ ?>selected<?php } ?>" ><span>图标</span></label>
                          <input id="store_baozhopen1" name="store_baozhopen" <?php if($store_array['store_baozhopen'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio" />
                          <input id="store_baozhopen0" name="store_baozhopen" <?php if($store_array['store_baozhopen'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio" />
                          <!--保证金-->
                          &nbsp;<input type="text" value="<?php echo $store_array['store_baozhrmb'];?>" id="store_tq" name="store_baozhrmb" class="txt"  style="width: 50px;color:red;font-weight:900;">元
                      </div>
                  </td>
              </tr>

              <tr>
                  <td colspan="2" class="required"><label for="store_tq">保障内容开关:</label></td>
              </tr>		
              <tr>
                  <td width="70%">
                      <div class="onoff" style="float:left;margin-right:10px;">
                          <label for="store_zhping1" class="cb-enable <?php if($store_array['store_zhping'] == '1'){ ?>selected<?php } ?>" ><span>正品</span></label>
                          <label for="store_zhping0" class="cb-disable <?php if($store_array['store_zhping'] == '0'){ ?>selected<?php } ?>" ><span>保障</span></label>
                          <input id="store_zhping1" name="store_zhping" <?php if($store_array['store_zhping'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
                                 <input id="store_zhping0" name="store_zhping" <?php if($store_array['store_zhping'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio">
                      </div>
                      <div class="onoff" style="float:left;margin-right:10px;">
                          <label for="store_shiti1" class="cb-enable <?php if($store_array['store_shiti'] == '1'){ ?>selected<?php } ?>" ><span>实体</span></label>
                          <label for="store_shiti0" class="cb-disable <?php if($store_array['store_shiti'] == '0'){ ?>selected<?php } ?>" ><span>店铺</span></label>
                          <input id="store_shiti1" name="store_shiti" <?php if($store_array['store_shiti'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
                                 <input id="store_shiti0" name="store_shiti" <?php if($store_array['store_shiti'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio">
                      </div>
                      <div class="onoff" style="float:left;margin-right:10px;">
                          <label for="store_qtian1" class="cb-enable <?php if($store_array['store_qtian'] == '1'){ ?>selected<?php } ?>" ><span>七天</span></label>
                          <label for="store_qtian0" class="cb-disable <?php if($store_array['store_qtian'] == '0'){ ?>selected<?php } ?>" ><span>退换</span></label>
                          <input id="store_qtian1" name="store_qtian" <?php if($store_array['store_qtian'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
                                 <input id="store_qtian0" name="store_qtian" <?php if($store_array['store_qtian'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio">
                      </div>
                  </td>
              </tr>
              <tr>
                  <td>
                      <div class="onoff" style="float:left;margin-right:10px;">
                          <label for="store_tuihuo1" class="cb-enable <?php if($store_array['store_tuihuo'] == '1'){ ?>selected<?php } ?>" ><span>退换</span></label>
                          <label for="store_tuihuo0" class="cb-disable <?php if($store_array['store_tuihuo'] == '0'){ ?>selected<?php } ?>" ><span>承诺</span></label>
                          <input id="store_tuihuo1" name="store_tuihuo" <?php if($store_array['store_tuihuo'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
                                 <input id="store_tuihuo0" name="store_tuihuo" <?php if($store_array['store_tuihuo'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio">
                      </div>
                      <div class="onoff" style="float:left;margin-right:10px;">
                          <label for="store_shiyong1" class="cb-enable <?php if($store_array['store_shiyong'] == '1'){ ?>selected<?php } ?>" ><span>试用</span></label>
                          <label for="store_shiyong0" class="cb-disable <?php if($store_array['store_shiyong'] == '0'){ ?>selected<?php } ?>" ><span>中心</span></label>
                          <input id="store_shiyong1" name="store_shiyong" <?php if($store_array['store_shiyong'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
                                 <input id="store_shiyong0" name="store_shiyong" <?php if($store_array['store_shiyong'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio">
                      </div>
                      <div class="onoff" style="float:left;margin-right:10px;">
                          <label for="store_erxiaoshi1" class="cb-enable <?php if($store_array['store_erxiaoshi'] == '1'){ ?>selected<?php } ?>" ><span>2H</span></label>
                          <label for="store_erxiaoshi0" class="cb-disable <?php if($store_array['store_erxiaoshi'] == '0'){ ?>selected<?php } ?>" ><span>发货</span></label>
                          <input id="store_erxiaoshi1" name="store_erxiaoshi" <?php if($store_array['store_erxiaoshi'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
                                 <input id="store_erxiaoshi0" name="store_erxiaoshi" <?php if($store_array['store_erxiaoshi'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio">
                      </div>
                  </td>
              </tr>
              <tr>
                  <td>
                      <div class="onoff" style="float:left;margin-right:10px;">
                          <label for="store_huodaofk1" class="cb-enable <?php if($store_array['store_huodaofk'] == '1'){ ?>selected<?php } ?>" ><span>货到</span></label>
                          <label for="store_huodaofk0" class="cb-disable <?php if($store_array['store_huodaofk'] == '0'){ ?>selected<?php } ?>" ><span>付款</span></label>
                          <input id="store_huodaofk1" name="store_huodaofk" <?php if($store_array['store_huodaofk'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
                                 <input id="store_huodaofk0" name="store_huodaofk" <?php if($store_array['store_huodaofk'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio">
                      </div>
                      <div class="onoff" style="float:left;margin-right:10px;">
                          <label for="store_xiaoxie1" class="cb-enable <?php if($store_array['store_xiaoxie'] == '1'){ ?>selected<?php } ?>" ><span>消费者</span></label>
                          <label for="store_xiaoxie0" class="cb-disable <?php if($store_array['store_xiaoxie'] == '0'){ ?>selected<?php } ?>" ><span>保障</span></label>
                          <input id="store_xiaoxie1" name="store_xiaoxie" <?php if($store_array['store_xiaoxie'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
                                 <input id="store_xiaoxie0" name="store_xiaoxie" <?php if($store_array['store_xiaoxie'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio">
                      </div>
                  </td>
              </tr>
              <tr>
                  <td colspan="2" class="required"><label>
                          <label for="state">{$Think.lang.state}:</label>
                      </label></td>
              </tr>
              <tr class="noborder">
                  <td class="vatop rowform onoff"><label for="store_state1" class="cb-enable <?php if($store_array['store_state'] == '1'){ ?>selected<?php } ?>" ><span>{$Think.lang.open}</span></label>
                      <label for="store_state0" class="cb-disable <?php if($store_array['store_state'] == '0'){ ?>selected<?php } ?>" ><span>{$Think.lang.close}</span></label>
                      <input id="store_state1" name="store_state" <?php if($store_array['store_state'] == '1'){ ?>checked="checked"<?php } ?> onclick="$('#tr_store_close_info').hide();" value="1" type="radio">
                             <input id="store_state0" name="store_state" <?php if($store_array['store_state'] == '0'){ ?>checked="checked"<?php } ?> onclick="$('#tr_store_close_info').show();" value="0" type="radio"></td>
                  <td class="vatop tips"></td>
              </tr>
              </tbody>
              <tbody id="tr_store_close_info">
                  <tr >
                      <td colspan="2" class="required"><label for="store_close_info">{$Think.lang.store_close_info}:</label></td>
                  </tr>
                  <tr class="noborder">
                      <td class="vatop rowform"><textarea name="store_close_info" rows="6" class="tarea" id="store_close_info"><?php echo $store_array['store_close_info'];?></textarea></td>
                      <td class="vatop tips"></td>
                  </tr>
              </tbody>
              <tfoot>
                  <tr class="tfoot">
                      <td colspan="15"><a href="JavaScript:void(0);" class="btn" id="submitBtn"><span>{$Think.lang.ds_submit}</span></a></td>
                  </tr>
              </tfoot>
          </table>
    </form>
      <form id="joinin_form" enctype="multipart/form-data" method="post" action="{:url('/Admin/Store/edit_save_joinin')}" style="display:none;">
          <input type="hidden" name="form_submit" value="ok" />
          <input type="hidden" name="member_id" value="<?php echo $joinin_detail['member_id'];?>" />
          <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
              <thead>
                  <tr>
                      <th colspan="20">公司及联系人信息</th>
                  </tr>
              </thead>
              <tbody>
                  <tr>
                      <th class="w150">公司名称：</th>
                      <td colspan="20"><input type="text" class="txt" name="company_name" value="<?php echo $joinin_detail['company_name'];?>"></td>
                  </tr>
                  <tr>
                      <th>公司所在地：</th>
                      <td colspan="20">
                          <input type="hidden" name="company_address" id="company_address" value="<?php echo $joinin_detail['company_address'];?>">
                      </td>
                  </tr>
                  <tr>
                      <th>公司详细地址：</th>
                      <td colspan="20"><input type="text" class="txt w300" name="company_address_detail" value="<?php echo $joinin_detail['company_address_detail'];?>"></td>
                  </tr>
                  <tr>
                      <th>公司电话：</th>
                      <td><input type="text" class="txt" name="company_phone" value="<?php echo $joinin_detail['company_phone'];?>"></td>
                      <th>员工总数：</th>
                      <td><input type="text" class="txt w72" name="company_employee_count" value="<?php echo $joinin_detail['company_employee_count'];?>">&nbsp;人</td>
                      <th>注册资金：</th>
                      <td><input type="text" class="txt w72" name="company_registered_capital" value="<?php echo $joinin_detail['company_registered_capital'];?>">&nbsp;万元 </td>
                  </tr>
                  <tr>
                      <th>联系人姓名：</th>
                      <td><input type="text" class="txt" name="contacts_name" value="<?php echo $joinin_detail['contacts_name'];?>"></td>
                      <th>联系人电话：</th>
                      <td><input type="text" class="txt" name="contacts_phone" value="<?php echo $joinin_detail['contacts_phone'];?>"></td>
                      <th>电子邮箱：</th>
                      <td><input type="text" class="txt" name="contacts_email" value="<?php echo $joinin_detail['contacts_email'];?>"></td>
                  </tr>
              </tbody>
          </table>
          <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
              <thead>
                  <tr>
                      <th colspan="20">营业执照信息（副本）</th>
                  </tr>
              </thead>
              <tbody>
                  <tr>
                      <th class="w150">营业执照号：</th>
                      <td><input type="text" class="txt" name="business_licence_number" value="<?php echo $joinin_detail['business_licence_number'];?>"></td></tr><tr>

                      <th>营业执照所在地：</th>
                      <td><input type="hidden" name="business_licence_address" id="business_licence_address" value="<?php echo $joinin_detail['business_licence_address'];?>"></td></tr><tr>

                      <th>营业执照有效期：</th>
                      <td><input type="text" class="txt" name="business_licence_start" id="business_licence_start" value="<?php echo $joinin_detail['business_licence_start'];?>"> - <input type="text" class="txt" name="business_licence_end" id="business_licence_end" value="<?php echo $joinin_detail['business_licence_end'];?>"></td>
                  </tr>
                  <tr>
                      <th>法定经营范围：</th>
                      <td colspan="20"><input type="text" class="txt w300" name="business_sphere" value="<?php echo $joinin_detail['business_sphere'];?>"></td>
                  </tr>
                  <tr>
                      <th>营业执照<br />
                          电子版：</th>
                      <td colspan="20">
                          <a nctype="nyroModal"  href="<?php echo $joinin_detail['business_licence_number_electronic'];?>"> <img src="<?php echo $joinin_detail['business_licence_number_electronic'];?>" alt="" /> </a>
                          <input class="w200" type="file" name="business_licence_number_electronic">
                      </td>
                  </tr>
              </tbody>
          </table>
          <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
              <thead>
                  <tr>
                      <th colspan="20">组织机构代码证</th>
                  </tr>
              </thead>
              <tbody>
                  <tr>
                      <th>组织机构代码：</th>
                      <td colspan="20"><input type="text" class="txt w300" name="organization_code" value="<?php echo $joinin_detail['organization_code'];?>"></td>
                  </tr>
                  <tr>
                      <th>组织机构代码证<br/>          电子版：</th>
                      <td colspan="20">
                          <a nctype="nyroModal"  href="<?php echo $joinin_detail['organization_code_electronic'];?>"> <img src="<?php echo $joinin_detail['organization_code_electronic'];?>" alt="" /> </a>
                          <input type="file" name="organization_code_electronic">
                      </td>
                  </tr>
              </tbody>
          </table>
          <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
              <thead>
                  <tr>
                      <th colspan="20">一般纳税人证明：</th>
                  </tr>
              </thead>
              <tbody>
                  <tr>
                      <th>一般纳税人证明：</th>
                      <td colspan="20">
                          <a nctype="nyroModal" href="<?php echo $joinin_detail['general_taxpayer'];?>"> <img src="<?php echo $joinin_detail['general_taxpayer'];?>" alt="" /> </a>
                          <input type="file" name="general_taxpayer">
                      </td>
                  </tr>
              </tbody>
          </table>
          <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
              <thead>
                  <tr>
                      <th colspan="20">开户银行信息：</th>
                  </tr>
              </thead>
              <tbody>
                  <tr>
                      <th class="w150">银行开户名：</th>
                      <td><input type="text" class="txt w300" name="bank_account_name" value="<?php echo $joinin_detail['bank_account_name'];?>"></td>
                  </tr><tr>
                      <th>公司银行账号：</th>
                      <td><input type="text" class="txt w300" name="bank_account_number" value="<?php echo $joinin_detail['bank_account_number'];?>"></td></tr>
                  <tr>
                      <th>开户银行支行名称：</th>
                      <td><input type="text" class="txt w300" name="bank_name" value="<?php echo $joinin_detail['bank_name'];?>"></td>
                  </tr>
                  <tr>
                      <th>支行联行号：</th>
                      <td><input type="text" class="txt w300" name="bank_code" value="<?php echo $joinin_detail['bank_code'];?>"></td>
                  </tr><tr>
                      <th>开户银行所在地：</th>
                      <td colspan="20"><input type="hidden" name="bank_address" id="bank_address" value="<?php echo $joinin_detail['bank_address'];?>"></td>
                  </tr>
                  <tr>
                      <th>开户银行许可证<br/>电子版：</th>
                      <td colspan="20">
                          <a nctype="nyroModal"  href="<?php echo $joinin_detail['bank_licence_electronic'];?>"> <img src="<?php echo $joinin_detail['bank_licence_electronic'];?>" alt="" /> </a>
                          <input type="file" name="bank_licence_electronic">
                      </td>
                  </tr>
              </tbody>

          </table>
          <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
              <thead>
                  <tr>
                      <th colspan="20">结算账号信息：</th>
                  </tr>
              </thead>
              <tbody>
                  <tr>
                      <th class="w150">银行开户名：</th>
                      <td><input type="text" class="txt w300" name="settlement_bank_account_name" value="<?php echo $joinin_detail['settlement_bank_account_name'];?>"></td>
                  </tr>
                  <tr>
                      <th>公司银行账号：</th>
                      <td><input type="text" class="txt w300" name="settlement_bank_account_number" value="<?php echo $joinin_detail['settlement_bank_account_number'];?>"></td>
                  </tr>
                  <tr>
                      <th>开户银行支行名称：</th>
                      <td><input type="text" class="txt w300" name="settlement_bank_name" value="<?php echo $joinin_detail['settlement_bank_name'];?>"></td>
                  </tr>
                  <tr>
                      <th>支行联行号：</th>
                      <td><input type="text" class="txt w300" name="settlement_bank_code" value="<?php echo $joinin_detail['settlement_bank_code'];?>"></td>
                  </tr>
                  <tr>
                      <th>开户银行所在地：</th>
                      <td><input type="hidden" name="settlement_bank_address" id="settlement_bank_address" value="<?php echo $joinin_detail['settlement_bank_address'];?>"></td>
                  </tr>
              </tbody>

          </table>
          <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
              <thead>
                  <tr>
                      <th colspan="20">税务登记证</th>
                  </tr>
              </thead>
              <tbody>
                  <tr>
                      <th class="w150">税务登记证号：</th>
                      <td><input type="text" class="txt w300" name="tax_registration_certificate" value="<?php echo $joinin_detail['tax_registration_certificate'];?>"></td>
                  </tr>
                  <tr>
                      <th>纳税人识别号：</th>
                      <td><input type="text" class="txt w300" name="taxpayer_id" value="<?php echo $joinin_detail['taxpayer_id'];?>"></td>
                  </tr>
                  <tr>
                      <th>税务登记证号<br />
                          电子版：</th>
                      <td>
                          <a nctype="nyroModal"  href="<?php echo $joinin_detail['tax_registration_certificate_electronic'];?>"> <img src="<?php echo $joinin_detail['tax_registration_certificate_electronic'];?>" alt="" /> </a>
                          <input type="file" name="tax_registration_certificate_electronic">
                      </td>
                  </tr>
              </tbody>
          </table>
          <div><a id="btn_fail" class="btn" href="JavaScript:void(0);"><span>{$Think.lang.ds_submit}</span></a></div>
      </form>
</div>
</div>
<script type="text/javascript" src="{$Think.config.url_domain_root}static/plugins/js/jquery.nyroModal/custom.min.js" charset="utf-8"></script>
<link href="{$Think.config.url_domain_root}static/plugins/js/jquery.nyroModal/styles/nyroModal.css" rel="stylesheet" type="text/css" id="cssfile2" />
<script type="text/javascript">
$(function(){
//    $("#company_address").nc_region();
//    $("#business_licence_address").nc_region();
//    $("#bank_address").nc_region();
//    $("#settlement_bank_address").nc_region();
    $('#end_time').datepicker();
    $('#business_licence_start').datepicker({dateFormat: 'yy-mm-dd'});
    $('#business_licence_end').datepicker({dateFormat: 'yy-mm-dd'});
    $('a[nctype="nyroModal"]').nyroModal();
    $('input[name=store_state][value=<?php echo $store_array['store_state'];?>]').trigger('click');

    //按钮先执行验证再提交表单
    $("#submitBtn").click(function(){
        $("#store_form").submit();
    });

    $("#btn_fail").click(function(){
        $("#joinin_form").submit();
    });


    $('div[nctype="editStoreContent"] > ul').find('li').click(function(){
        $(this).addClass('current').siblings().removeClass('current');
        var _index = $(this).index();
        var _form = $('div[nctype="editStoreContent"]').find('form');
        _form.hide();
        _form.eq(_index).show();
    });
});
</script>