{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) && is_array($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="explain"><i></i>{$joinin_message|default=''}</div>
<?php if (is_array($joinin_detail) && !empty($joinin_detail)) { ?>
<table border="0" cellpadding="0" cellspacing="0" class="all">
  <tbody>
    <tr>
      <th>付款清单列表</th>
      <td></td>
    </tr>
    <tr>
      <td colspan="2"><table  border="0" cellpadding="0" cellspacing="0" class="type">
          <tbody>
            <tr>
              <td class="w80">收费标准：</td>
              <td class="w250 tl">{$joinin_detail.sg_price|default='0'}元/年 ( <?php echo $joinin_detail['sg_name'];?> )</td>
              <td class="w80">开店时长：</td>
              <td class="tl"><?php echo $joinin_detail['joinin_year'];?> 年</td>
            </tr>
            <tr>
              <td class="w80">店铺分类：</td>
              <td class="tl"><?php echo $joinin_detail['sc_name'];?></td>
              <td class="w80">开店保证金：</td>
              <td class="tl"><?php echo $joinin_detail['sc_bail'];?> 元</td>
            </tr>
            <tr>
              <td>应付金额：</td>
              <td class="tl" colspan="3"><?php echo $joinin_detail['paying_amount'];?> 元</td>
            </tr>
          </tbody>
        </table></td>
    </tr>
    <tr>
      <th>经营类目列表</th>
      <td></td>
    </tr>
    <tr>
      <td colspan="2"><table border="0" cellpadding="0" cellspacing="0" id="table_category" class="type">
          <thead>
            <tr>
              <th class="w120 tc">一级类目</th>
              <th class="w120 tc">二级类目 </th>
              <th class="tc">三级类目</th>
              <th class="tc">分佣比例</th>
            </tr>
          </thead>
          <tbody>
            {notempty name="$joinin_detail.store_class_names"}
            <?php $store_class_names = @unserialize($joinin_detail['store_class_names']);?>
            <?php foreach ($store_class_names as $k => $name) {?>
            <?php $name = explode(',', $name);?>
            <tr>
              <td>{$name.0|default='0'}</td>
              <td>{$name.1|default='0'}</td>
              <td>{$name.2|default='0'}</td>
              <td><?php echo $joinin_detail['store_class_commis_rates'][$k]; ?> %</td>
            </tr>
            <?php } ?>
            {/notempty}
          </tbody>
        </table></td>
    </tr>
  </tbody>
  <tfoot>
    <tr>
      <td colspan="20">&nbsp;</td>
    </tr>
  </tfoot>
</table>
<?php } ?>
<div class="bottom">
  <?php if(isset($btn_next)) { ?>
  <a id="" href="<?php echo $btn_next;?>" class="btn">下一步</a>
  <?php } ?>
</div>













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



{include file="public/mall_footer" /}