{include file="public/seller_top" /} 
<div class="seller_main w1200">
    {include file="public/seller_left" /}
    <div class="seller_right">
        
        
   

<div class="dssc-index">
  <div class="top-container">
    <div class="basic-info">
      <dl class="dssc-seller-info">
        <dt class="seller-name">
          <h3><?php echo session('seller_name'); ?></h3>
          <h5>(用户名：<?php echo session('member_name'); ?>)</h5>
        </dt>
        <dd class="store-logo">
          <p><img src="{:getStoreLogo($store_info.store_logo,'store_logo')}"/></p>
          <a href="{:url('/home/sellersetting/setting')}"><i class="icon-edit"></i>编辑店铺设置</a> </dd>
        <dd class="seller-permission">管理权限：<strong><?php echo session('seller_group_name');?></strong></dd>
        <dd class="seller-last-login">最后登录：<strong><?php echo session('seller_last_login_time');?></strong> </dd>
        <dd class="store-name">{$Think.lang.store_name}{$Think.lang.ds_colon}<a href="{:url('/home/store/index',['store_id'=>$Think.session.store_id])}" ><?php echo $store_info['store_name'];?></a></dd>
        <dd class="store-grade">{$Think.lang.store_store_grade}{$Think.lang.ds_colon}<strong><?php echo $store_info['grade_name']; ?></strong></dd>
        <dd class="store-validity">{$Think.lang.store_validity}{$Think.lang.ds_colon}<strong><?php echo $store_info['store_end_time_text'];?>
          <?php if ($store_info['reopen_tip']) {?>
          <a href="{:url('/Home/Storeinfo/reopen')}">马上续签</a>
          <?php } ?>
          </strong> </dd>
      </dl>
<?php if (!session('is_own_shop')) { ?>
      <div class="detail-rate">
        <h5> <strong>{$Think.lang.store_dynamic_evaluation}{$Think.lang.ds_colon}</strong> 与行业相比 </h5>
        <ul>
          <?php  foreach ($store_info['store_credit'] as $value) {?>
          <li> <?php echo $value['text'];?><span class="credit"><?php echo $value['credit'];?> 分</span> <span class="<?php if(isset($value['percent_class'])){ echo $value['percent_class'];} ?>"><i></i><?php if(isset($value['percent_text'])){ echo $value['percent_text'];} ?><em><?php if(isset($value['percent_text'])){ echo $value['percent'];}?></em></span> </li>
          <?php } ?>
        </ul>
      </div>
<?php } ?>
    </div>
  </div>
  <div class="seller-cont">
    <div class="container type-a">
      <div class="hd">
        <h3>{$Think.lang.store_owner_info}</h3>
        <h5>{$Think.lang.store_notice_info}</h5>
      </div>
      <div class="content">
        <dl class="focus">
          <dt>店铺商品发布情况：</dt>
          <dd title="已发布/{$Think.lang.store_publish_goods}"><em id="nc_goodscount">0</em>&nbsp;/&nbsp;
            <?php if ($store_info['grade_goodslimit'] != 0){ echo $store_info['grade_goodslimit'];} else { echo '不限';} ?>
          </dd>
          <dt>{$Think.lang.store_publish_album}{$Think.lang.ds_colon}</dt>
          <dd><em id="nc_imagecount">0</em>&nbsp;/&nbsp;<?php echo $store_info['grade_albumlimit'] > 0 ? $store_info['grade_albumlimit'] : '不限'; ?></dd>
        </dl>
        <ul>
          <li><a href="{:url('/Home/Sellergoodsonline/index')}">{$Think.lang.store_goods_selling} <strong id="nc_online"></strong></a></li>
          <?php if (config('goods_verify')) {?>
          <li><a href="{:url('/Home/Sellergoodsoffline/index',['type'=>'wait_verify','verify'=>'10'])}" title="{$Think.lang.store_inform30}">发布待平台审核 <strong id="nc_waitverify"></strong></a></li>
          <li><a href="{:url('/Home/Sellergoodsoffline/index',['type'=>'wait_verify','verify'=>'0'])}" title="{$Think.lang.store_inform30}">平台审核失败 <strong id="nc_verifyfail"></strong></a></li>
          <?php }?>
          <li><a href="{:url('/Home/Sellergoodsoffline/index')}"> {$Think.lang.store_goods_storage}<strong id="nc_offline"></strong></a></li>
          <li><a href="{:url('/Home/Sellergoodsoffline/index',['type'=>'lock_up'])}"> {$Think.lang.store_goods_show0}<strong id="nc_lockup"></strong></a></li>
          <li><a href="{:url('/Home/Sellerconsult/index',['type'=>'to_reply'])}">{$Think.lang.store_to_consult} <strong id="nc_consult"></strong></a></li>
        </ul>
      </div>
    </div>
    <div class="container type-b">
      <div class="hd">
        <h3>商家帮助</h3>
        <h5></h5>
      </div>
      <div class="content">
        <ul>
          <?php
			if(is_array($help_list) && !empty($help_list)) {
				foreach($help_list as $val) {
			?>
          <li><a target="_blank" href="{:url('Home/Showhelp/index',['t_id'=>$val.type_id])}" title="<?php echo $val['type_name']; ?>">
            <?php echo $val['type_name'];?></a></li>
          <?php
				}
			}
			 ?>
        </ul>
        <dl>
          <dt>{$Think.lang.store_site_info}</dt>
          <?php
			if(is_array($phone_array) && !empty($phone_array)) {
				foreach($phone_array as $key => $val) {
			?>
          <dd>{$Think.lang.store_site_phone}<?php echo ($key+1);?>{$Think.lang.ds_colon}<?php echo $val;?></dd>
          <?php
				}
			}
			 ?>
          <dd>{$Think.lang.store_site_email}{$Think.lang.ds_colon}<?php echo config('site_email');?></dd>
        </dl>
      </div>
    </div>
    <div class="container type-a">
      <div class="hd">
        <h3>{$Think.lang.store_business}</h3>
        <h5>{$Think.lang.store_business_info}</h5>
      </div>
      <div class="content">
        <dl class="focus">
          <dt>{$Think.lang.store_order_info}{$Think.lang.ds_colon}</dt>
          <dd><a href="{:url('/Home/Sellerorder/index')}"> {$Think.lang.store_order_progressing}<strong id="nc_progressing"></strong></a></dd>
          <dt>{$Think.lang.store_complain_info}{$Think.lang.ds_colon}</dt>
          <dd><a href="{:url('/Home/Sellercomplain/index',['select_complain_state'=>'1'])}">{$Think.lang.store_complain} <strong id="nc_complain"></strong></a></dd>
        </dl>
        <ul>
          <li><a href="{:url('/Home/Sellerorder/index',['state_type'=>'state_new'])}">{$Think.lang.store_order_pay} <strong id="nc_payment"></strong></a></li>
          <li><a href="{:url('/Home/Sellerorder/index',['state_type'=>'state_pay'])}">{$Think.lang.store_shipped} <strong id="nc_delivery"></strong></a></li>
          <li><a href="{:url('/Home/Sellerrefund/index',['lock'=>'2'])}"> <?php echo '售前退款';?> <strong id="nc_refund_lock"></strong></a></li>
          <li><a href="{:url('/Home/Sellerrefund/index',['lock'=>'1'])}"> <?php echo '售后退款';?> <strong id="nc_refund"></strong></a></li>
          <li><a href="{:url('/Home/Sellerreturn/index',['lock'=>'2'])}"> <?php echo '售前退货';?> <strong id="nc_return_lock"></strong></a></li>
          <li><a href="{:url('/Home/Sellerreturn/index',['lock'=>'1'])}"> <?php echo '售后退货';?> <strong id="nc_return"></strong></a></li>
          <li><a href="{:url('/Home/Sellerbill/index',['bill_state'=>'1'])}"> <?php echo '待确认账单';?> <strong id="nc_bill_confirm"></strong></a></li>
        </ul>
      </div>
    </div>
    <div class="container type-c">
      <div class="hd">
        <h3>销售情况统计</h3>
        <h5>按周期统计商家店铺的订单量和订单金额</h5>
      </div>
      <div class="content">
        <table class="dssc-default-table">
          <thead>
            <tr>
              <th class="w50">项目</th>
              <th>订单量</th>
              <th class="w100">订单金额</th>
            </tr>
          </thead>
          <tbody>
            <tr class="bd-line">
              <td>昨日销量</td>
              <td><?php echo empty($daily_sales['ordernum']) ? '--' : $daily_sales['ordernum'];?></td>
              <td><?php echo empty($daily_sales['orderamount']) ? '--' : lang('currency').$daily_sales['orderamount'];?></td>
            </tr>
            <tr class="bd-line">
              <td>月销量</td>
              <td><?php echo empty($monthly_sales['ordernum']) ? '--' : $monthly_sales['ordernum'];?></td>
              <td><?php echo empty($monthly_sales['orderamount']) ? '--' : lang('currency').$monthly_sales['orderamount'];?></td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
    <div class="container type-c h500">
      <div class="hd">
        <h3>单品销售排名</h3>
        <h5>掌握30日内最热销的商品及时补充货源</h5>
      </div>
      <div class="content">
        <table class="dssc-default-table">
          <thead>
            <tr>
              <th>排名</th>
              <th class="tl" colspan="2">商品信息</th>
              <th>销量</th>
            </tr>
          </thead>
          <tbody>
            <?php if($goods_list) { ?>
            <?php  $i = 0;foreach ($goods_list as $val) {?>
            <?php $i++;?>
            <tr class="bd-line">
              <td class="w50"><strong><?php echo $i;?></strong></td>
              <td class="w60"><div class="pic-thumb"><a href="{:url('/Home/Goods/index',['goods_id'=>$val.goods_id])}" target="_blank"><img alt="<?php echo $val['goods_name'];?>" src="<?php echo thumb($val, '60');?>"></a></div></td>
              <td><dl class="goods-name">
                  <dt><a href="{:url('/Home/Goods/index',['goods_id'=>$val.goods_id])}" target="_blank"><?php echo $val['goods_name'];?></a></dt>
                </dl></td>
              <td class="w60"><?php echo $val['goodsnum'];?></td>
            </tr>
            <?php }?>
            <?php }?>
          </tbody>
        </table>
      </div>
    </div>
    <div class="container type-d h500">
      <div class="hd">
        <h3>{$Think.lang.store_market_info}</h3>
        <h5>合理参加促销活动可以有效提升商品销量</h5>
      </div>
      <div class="content">
        <?php if (config('groupbuy_allow') == 1){ ?>
        <dl class="tghd">
          <dt class="p-name"> <a href="{:url('/Home/Sellergroupbuy/index')}">{$Think.lang.store_groupbuy}</a></dt>
          <dd class="p-ico"></dd>
          <dd class="p-hint">
            <?php if (session('is_own_shop') || !empty($groupquota_info)) {?>
            <i class="icon-ok-sign"></i>已开通
            <?php } else {?>
            <i class="icon-minus-sign"></i>未开通
            <?php }?>
          </dd>
          <dd class="p-info">{$Think.lang.store_groupbuy_info}</dd>
          <?php if (!empty($groupquota_info)) {?>
          <dd class="p-point">(续费至：<?php echo date('Y-m-d', $groupquota_info['end_time']);?>)</dd>
          <?php }?>
        </dl>
        <?php } ?>
        <?php if (intval(config('promotion_allow')) == 1){ ?>
        <dl class="xszk">
          <dt class="p-name"><a href="{:url('/Home/Sellerpromotionxianshi/index')}">{$Think.lang.store_xianshi}</a></dt>
          <dd class="p-ico"></dd>
          <dd class="p-hint"><span>
            <?php if (session('is_own_shop') || !empty($xianshiquota_info)) {?>
            <i class="icon-ok-sign"></i>已开通
            <?php } else {?>
            <i class="icon-minus-sign"></i>未开通
            <?php }?>
            </span></dd>
          <dd class="p-info">{$Think.lang.store_xianshi_info}</dd>
          <?php if (!empty($xianshiquota_info)) {?>
          <dd class="p-point">(续费至：<?php echo date('Y-m-d', $xianshiquota_info['end_time']);?>)</dd>
          <?php }?>
        </dl>
        <dl class="mjs">
          <dt class="p-name"><a href="{:url('/Home/Sellerpromotionmansong/index')}">{$Think.lang.store_mansong}</a></dt>
          <dd class="p-ico"></dd>
          <dd class="p-hint"><span>
            <?php if (session('is_own_shop') || !empty($mansongquota_info)) {?>
            <i class="icon-ok-sign"></i>已开通
            <?php } else {?>
            <i class="icon-minus-sign"></i>未开通
            <?php }?>
            </span></dd>
          <dd class="p-info">{$Think.lang.store_mansong_info}</dd>
          <?php if (!empty($mansongquota_info)) {?>
          <dd class="p-point">(续费至：<?php echo date('Y-m-d', $mansongquota_info['end_time']);?>)</dd>
          <?php }?>
        </dl>
        <dl class="zhxs">
          <dt class="p-name"><a href="{:url('/Home/Sellerpromotionbundling/index')}">{$Think.lang.store_bundling}</a></dt>
          <dd class="p-ico"></dd>
          <dd class="p-hint"><span>
            <?php if (session('is_own_shop') || !empty($binglingquota_info)) {?>
            <i class="icon-ok-sign"></i>已开通
            <?php } else {?>
            <i class="icon-minus-sign"></i>未开通
            <?php }?>
            </span></dd>
          <dd class="p-info">{$Think.lang.store_bundling_info}</dd>
          <?php if (!empty($binglingquota_info)) {?>
          <dd class="p-point">(续费至：<?php echo date('Y-m-d', $binglingquota_info['bl_quota_endtime']);?>)</dd>
          <?php }?>
        </dl>
        <dl class="tjzw">
          <dt class="p-name"><a href="{:url('/Home/Sellerpromotionbooth/index')}">推荐展位</a></dt>
          <dd class="p-ico"></dd>
          <dd class="p-hint"><span>
            <?php if (session('is_own_shop') || !empty($boothquota_info)) {?>
            <i class="icon-ok-sign"></i>已开通
            <?php } else {?>
            <i class="icon-minus-sign"></i>未开通
            <?php }?>
            </span></dd>
          <dd class="p-info">{$Think.lang.store_activity_info}</dd>
          <?php if (!empty($boothquota_info)) {?>
          <dd class="p-point">(续费至：<?php echo date('Y-m-d', $boothquota_info['booth_quota_endtime']);?>)</dd>
          <?php }?>
        </dl>
        <?php } ?>
        <?php if (config('voucher_allow') == 1){?>
        <dl class="djq">
          <dt class="p-name"><a href="{:url('/Home/Sellervoucher/templatelist')}">{$Think.lang.store_voucher}</a></span></dt>
          <dd class="p-ico"></dd>
          <dd class="p-hint"><span>
            <?php if (session('is_own_shop') || !empty($voucherquota_info)) {?>
            <i class="icon-ok-sign"></i>已开通
            <?php } else {?>
            <i class="icon-minus-sign"></i>未开通
            <?php }?>
            </span></dd>
          <dd class="p-info">{$Think.lang.store_voucher_info}</dd>
          <?php if (!empty($voucherquota_info)) {?>
          <dd class="p-point">(续费至：<?php echo date('Y-m-d', $voucherquota_info['quota_endtime']);?>)</dd>
          <?php }?>
        </dl>
        <?php }?>
      </div>
    </div>
  </div>
</div>
<script>
$(function(){
	var timestamp=Math.round(new Date().getTime()/1000/60);//异步URL一分钟变化一次
    $.getJSON(SITE_URL+'/home/Seller/statistics.html?rand='+timestamp, null, function(data){
        if (data == null) return false;
        for(var a in data) {
            if(data[a] != 'undefined' && data[a] != 0) {
                var tmp = '';
                if (a != 'goodscount' && a != 'imagecount') {
                    $('#nc_'+a).parents('a').addClass('num');
                }
                $('#nc_'+a).html(data[a]);
            }
        }
    });
});
</script>

        
        
        
        
        
    </div>
</div>
{include file="public/mall_footer" /}