{include file="public/joinin_header" /}
<div class="breadcrumb"><span class="icon-home"></span><span><a href="">首页</a></span> <span class="arrow">></span> <span>商家入驻申请</span> </div>
<div class="main">
    <div class="sidebar">
        <div class="title">
            <h3>商家入驻申请</h3>
        </div>
        <div class="content">
            <?php if(!empty($list) && is_array($list)){ ?>
            <?php foreach($list as $key => $val){ ?>
            <dl show_id="<?php echo $val['type_id'];?>">
                <dt onclick="show_list('<?php echo $val['type_id'];?>');" style="cursor: pointer;"> <i class="hide"></i><?php echo $val['type_name'];?></dt>
                <dd style="display:none;">
                    <ul>
                        <?php if(!empty($val['help_list']) && is_array($val['help_list'])){ ?>
                        <?php foreach($val['help_list'] as $k => $v){ ?>
                        <li> <i></i>
                            <?php if(empty($v['help_url'])){ ?>
                            <a href="{:url('/Home/Showhelp/index',['t_id'=>$v.type_id,'help_id'=>$v.help_id])}" target="_blank"><?php echo $v['help_title'];?></a>
                            <?php }else { ?>
                            <a href="<?php echo $v['help_url'];?>" target="_blank"><?php echo $v['help_title'];?></a>
                            <?php } ?>
                        </li>
                        <?php } ?>
                        <?php } ?>
                    </ul>
                </dd>
            </dl>
            <?php } ?>
            <?php } ?>
            <dl>
                <dt class="<?php echo $sub_step == 'step0' ? 'current' : '';?>"> <i class="hide"></i>签订入驻协议</dt>
            </dl>
            <dl show_id="0">
                <dt onclick="show_list('0');" style="cursor: pointer;"> <i class="show"></i>提交申请</dt>
                <dd>
                    <ul>
                        <li class="<?php echo $step == '1' ? 'current' : '';?>"><i></i>公司资质信息</li>
                        <li class="<?php echo $step == '2' ? 'current' : '';?>"><i></i>财务资质信息</li>
                        <li class="<?php echo $step == '3' ? 'current' : '';?>"><i></i>店铺经营信息</li>
                    </ul>
                </dd>
            </dl>
            <dl>
                <dt class="<?php echo $step == '4' ? 'current' : '';?>"> <i class="hide"></i>合同签订及缴费</dt>
            </dl>
            <dl>
                <dt> <i class="hide"></i>店铺开通</dt>
            </dl>
        </div>
        <div class="title">
            <h3>平台联系方式</h3>
        </div>
        <div class="content">
            <ul>
                <?php
                if(isset($phone_array) && !empty($phone_array)) {
                foreach($phone_array as $key => $val) {
                ?>
                <li><?php echo '电话'.($key+1).':';?><?php echo $val;?></li>
                <?php
                }
                }
                ?>
                <li><?php echo '邮箱:';?><?php echo config('site_email');?></li>
            </ul>
        </div>
    </div>
    <div class="right-layout">
        <div class="joinin-step">
            <ul>
                <li class="step1 <?php echo $step >= 0 ? 'current' : '';?>"><span>签订入驻协议</span></li>
                <li class="<?php echo $step >= 1 ? 'current' : '';?>"><span>公司资质信息</span></li>
                <li class="<?php echo $step >= 2 ? 'current' : '';?>"><span>财务资质信息</span></li>
                <li class="<?php echo $step >= 3 ? 'current' : '';?>"><span>店铺经营信息</span></li>
                <li class="<?php echo $step >= 4 ? 'current' : '';?>"><span>合同签订及缴费</span></li>
                <li class="step6"><span>店铺开通</span></li>
            </ul>
        </div>
        <div class="joinin-concrete">
            <!--区别部分 BEGIN-->


            
            
            
            
            
      

  <div class="joinin-pay">
    <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
      <thead>
        <tr>
          <th colspan="6">公司及联系人信息</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th>公司名称：</th>
          <td colspan="5"><?php echo $joinin_detail['company_name'];?></td>
        </tr>
        <tr>
          <th>公司所在地：</th>
          <td><?php echo $joinin_detail['company_address'];?></td>
          <th>公司详细地址：</th>
          <td colspan="3"><?php echo $joinin_detail['company_address_detail'];?></td>
        </tr>
        <tr>
          <th>公司电话：</th>
          <td><?php echo $joinin_detail['company_phone'];?></td>
          <th>员工总数：</th>
          <td><?php echo $joinin_detail['company_employee_count'];?>&nbsp;人</td>
          <th>注册资金：</th>
          <td><?php echo $joinin_detail['company_registered_capital'];?>&nbsp;万元 </td>
        </tr>
        <tr>
          <th>联系人姓名：</th>
          <td><?php echo $joinin_detail['contacts_name'];?></td>
          <th>联系人电话：</th>
          <td><?php echo $joinin_detail['contacts_phone'];?></td>
          <th>电子邮箱：</th>
          <td><?php echo $joinin_detail['contacts_email'];?></td>
        </tr>
      </tbody>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
      <thead>
        <tr>
          <th colspan="2">营业执照信息（副本）</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th>营业执照号：</th>
          <td><?php echo $joinin_detail['business_licence_number'];?></td>
        </tr>
        <tr>
          <th>营业执照所在地：</th>
          <td><?php echo $joinin_detail['business_licence_address'];?></td>
        </tr>
        <tr>
          <th>营业执照有效期：</th>
          <td><?php echo $joinin_detail['business_licence_start'];?> - <?php echo $joinin_detail['business_licence_end'];?></td>
        </tr>
        <tr>
          <th>法定经营范围：</th>
          <td colspan="20"><?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></td>
        </tr>
      </tbody>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
      <thead>
        <tr>
          <th colspan="2">组织机构代码证</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th>组织机构代码：</th>
          <td><?php echo $joinin_detail['organization_code'];?></td>
        </tr>
        <tr>
          <th>组织机构代码证<br/>
            电子版：</th>
          <td><a nctype="nyroModal"  href="<?php echo $joinin_detail['organization_code_electronic'];?>"> <img src="<?php echo $joinin_detail['organization_code_electronic'];?>" alt="" /> </a></td>
        </tr>
      </tbody>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
      <thead>
        <tr>
          <th colspan="2">一般纳税人证明：</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th>一般纳税人证明：</th>
          <td><a nctype="nyroModal"  href="<?php echo $joinin_detail['general_taxpayer'];?>"> <img src="<?php echo $joinin_detail['general_taxpayer'];?>" alt="" /> </a></td>
        </tr>
      </tbody>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
      <thead>
        <tr>
          <th colspan="2">开户银行信息：</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th>银行开户名：</th>
          <td><?php echo $joinin_detail['bank_account_name'];?></td>
        </tr>
        <tr>
          <th>公司银行账号：</th>
          <td><?php echo $joinin_detail['bank_account_number'];?></td>
        </tr>
        <tr>
          <th>开户银行支行名称：</th>
          <td><?php echo $joinin_detail['bank_name'];?></td>
        </tr>
        <tr>
          <th>支行联行号：</th>
          <td><?php echo $joinin_detail['bank_code'];?></td>
        </tr>
        <tr>
          <th>开户银行所在地：</th>
          <td colspan="20"><?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></td>
        </tr>
      </tbody>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
      <thead>
        <tr>
          <th colspan="2">结算账号信息：</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th>银行开户名：</th>
          <td><?php echo $joinin_detail['settlement_bank_account_name'];?></td>
        </tr>
        <tr>
          <th>公司银行账号：</th>
          <td><?php echo $joinin_detail['settlement_bank_account_number'];?></td>
        </tr>
        <tr>
          <th>开户银行支行名称：</th>
          <td><?php echo $joinin_detail['settlement_bank_name'];?></td>
        </tr>
        <tr>
          <th>支行联行号：</th>
          <td><?php echo $joinin_detail['settlement_bank_code'];?></td>
        </tr>
        <tr>
          <th>开户银行所在地：</th>
          <td><?php echo $joinin_detail['settlement_bank_address'];?></td>
        </tr>
      </tbody>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
      <thead>
        <tr>
          <th colspan="2">税务登记证</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th>税务登记证号：</th>
          <td><?php echo $joinin_detail['tax_registration_certificate'];?></td>
        </tr>
        <tr>
          <th>纳税人识别号：</th>
          <td><?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></td>
        </tr>
      </tbody>
    </table>
    <form id="form_paying_money_certificate" action="{:url('/Home/Sellerjoinin/pay_save')}" method="post" enctype="multipart/form-data">
      <input id="verify_type" name="verify_type" type="hidden" />
      <input name="member_id" type="hidden" value="<?php echo $joinin_detail['member_id'];?>" />
      <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
        <thead>
          <tr>
            <th colspan="2">店铺经营信息</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th>卖家账号：</th>
            <td><?php echo $joinin_detail['seller_name'];?></td>
          </tr>
          <tr>
            <th>店铺名称：</th>
            <td><?php echo $joinin_detail['store_name'];?></td>
          </tr>
          <tr>
            <th>店铺等级：</th>
            <td><?php echo $joinin_detail['sg_name'];?>（开店费用：{$joinin_detail.sg_price|default="0"} 元/年）</td>
          </tr>
          <tr>
            <th>开店时长：</th>
            <td><?php echo $joinin_detail['joinin_year'];?> 年</td>
          </tr>
          <tr>
            <th>店铺分类：</th>
            <td><?php echo $joinin_detail['sc_name'];?>（开店保证金：<?php echo $joinin_detail['sc_bail'];?> 元）</td>
          </tr>
          <tr>
            <th>应付总金额：</th>
            <td><?php echo $joinin_detail['paying_amount'];?> 元</td>
          </tr>
          <tr>
            <th>经营类目：</th>
            <td><table border="0" cellpadding="0" cellspacing="0" id="table_category" class="type">
                <thead>
                  <tr>
                    <th>分类1</th>
                    <th>分类2</th>
                    <th>分类3</th>
                    <th>比例</th>
                  </tr>
                </thead>
                <tbody>
                  <?php if(!empty($joinin_detail['store_class_names'])){ ?>
                  <?php $store_class_names = $joinin_detail['store_class_names'];?>
                  <?php $store_class_commis_rates = $joinin_detail['store_class_commis_rates'];?>
                  <?php if(!empty($store_class_names) && is_array($store_class_names)) {?>
                  <?php for($i=0, $length = count($store_class_names); $i < $length; $i++) {?>
                  <?php list($class1) = @explode(',', $store_class_names[$i]);?>
                  <tr>
                    <td>{$class1|default='0'}</td>
                    <td>{$class2|default='0'}</td>
                    <td>{$class3|default='0'}</td>
                    <td><?php echo $store_class_commis_rates[$i];?>%</td>
                  </tr>
                  <?php } ?>
                  <?php } ?>
                  <?php } ?>
                </tbody>
              </table></td>
          </tr>
          <tr>
            <th>审核意见：</th>
            <td colspan="2"><?php echo $joinin_detail['joinin_message'];?></td>
          </tr>
        </tbody>
      </table>
      <table border="0" cellpadding="0" cellspacing="0" class="store-joinin">
        <tbody>
          <tr>
            <th>上传付款凭证：</th>
            <td><input name="paying_money_certificate" type="file" />
              <span></span></td>
          </tr>
          <tr>
            <th>备注：</th>
            <td><textarea name="paying_money_certificate_explain" rows="10" cols="30"></textarea>
              <span></span></td>
          </tr>
        </tbody>
      </table>
    </form>
    <div class="bottom"><a id="btn_paying_money_certificate" href="javascript:;" class="btn">提交</a></div>
  </div>

<script type="text/javascript">
    $(document).ready(function(){

        $('#form_paying_money_certificate').validate({
            errorPlacement: function(error, element){
                element.nextAll('span').first().after(error);
            },
            rules : {
                paying_money_certificate: {
                    required: true
                },
                paying_money_certificate_explain: {
                    maxlength: 100 
                }
            },
            messages : {
                paying_money_certificate: {
                    required: '请选择上传付款凭证'
                },
                paying_money_certificate_explain: {
                    maxlength: jQuery.validator.format("最多{0}个字")
                }
            }
        });

        $('#btn_paying_money_certificate').on('click', function() {
            $('#form_paying_money_certificate').submit();
        });

    });
</script>




            
            










            <!--区别部分 END-->
        </div>
    </div>
</div>



{include file="public/mall_footer" /}