<?php defined('ByFeiWa') or exit('Access Invalid!');?>

<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <div class="subject">
        <h3><?php echo $lang['feiwa_store_manage'];?></h3>
        <h5><?php echo $lang['feiwa_store_manage_subhead'];?></h5>
      </div>
      <?php echo $output['top_link'];?>
    </div>
  </div>
  <div class="explanation" id="explanation">
    <div class="title" id="checkZoom"><i class="fa fa-lightbulb-o"></i>
      <h4 title="<?php echo $lang['feiwa_prompts_title'];?>"><?php echo $lang['feiwa_prompts'];?></h4>
      <span id="explanationZoom" title="<?php echo $lang['feiwa_prompts_span'];?>"></span> </div>
    <ul>
      <li>点击审核按钮可以对开店申请进行审核，点击查看按钮可以查看开店信息。</li>
    </ul>
  </div>
  <div id="flexigrid"></div>
</div>
<script type="text/javascript">
$(function(){
    $("#flexigrid").flexigrid({
        url: 'index.php?app=store&feiwa=get_joinin_xml',
        colModel : [
            {display: '操作', name : 'operation', width : 60, sortable : false, align: 'center', className: 'handle-s'},
            {display: '会员ID', name : 'member_id', width : 40, sortable : true, align: 'center'},
            {display: '会员账号', name : 'member_name', width : 80, sortable : false, align: 'left'},
            {display: '店铺等级', name : 'sg_id', width : 80, sortable : true, align: 'left'},
            {display: '待付款金额(元)', name : 'paying_amount', width : 120, sortable : false, align: 'left'},            
            {display: '申请状态', name : 'joinin_state', width: 60, sortable : true, align : 'center'},
            {display: '开店时长', name : 'joinin_year', width: 60, sortable : true, align : 'center'},                        
            {display: '联系人姓名', name : 'contacts_name', width : 80, sortable : false, align: 'left'},
            {display: '联系人电话', name : 'contacts_phone', width : 100, sortable : false, align: 'left'},
            {display: '联系人邮箱', name : 'contacts_email', width : 100, sortable : false, align: 'left'},
            {display: '公司名称', name : 'company_name', width : 80, sortable : false, align: 'left'},
            {display: '公司地址', name : 'company_province_id', width : 300, sortable : false, align: 'left'},
            {display: '公司电话', name : 'company_phone', width : 150, sortable : false, align : 'left'},
            {display: '员工总数', name : 'company_employee_count', width : 80, sortable : false, align : 'left'},
            {display: '注册资金', name : 'company_registered_capital', width : 80, sortable : false, align : 'left'}
            ],
        searchitems : [
            {display: '会员ID', name : 'member_id', isdefault: true},
            {display: '会员账号', name : 'member_name'},
            {display: '店铺等级', name : 'sg_id'}
            ],
        sortname: "joinin_state",
        sortorder: "asc",
        title: '开店申请列表'
    });
});

function test(name, bDiv) {
    if (name == 'excel') {
        confirm('Delete ' + $('.trSelected', bDiv).length + ' items?')
    } else if (name == 'Add') {
        alert('Add New Item');
    }
}
</script> 
