<?php /*a:4:{s:80:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\seller\view\shop\tj.html";i:1577883014;s:86:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\seller\view\public\header.html";i:1594566513;s:86:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\seller\view\public\dialog.html";i:1594453374;s:86:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\seller\view\public\footer.html";i:1581749670;}*/ ?>
 <!-- 头部 -->
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title><?php echo htmlentities((isset($meta_title) && ($meta_title !== '')?$meta_title:"")); ?>|商家后台管理</title>
    	<link rel="stylesheet" href="/im/public/common/font-awesome/css/font-awesome.min.css">
		<link rel="stylesheet" href="/im/public/common/font.css">
		<link rel="stylesheet" href="/im/public/seller/css/style.css" />

	<script type="text/javascript" src="/im/public/common/jquery.min.js" ></script>
   <script type="text/javascript" src="/im/public/common/layer/layer.js"></script>

	<!-- 自定义弹窗-->
    <script>
	var dialog_style ="<?php echo api('DIALOG_STYLE'); ?>";
	var index_url="<?php echo url('index/index'); ?>";
	$(".logo").click(function(){
	   location.href=index_url;
	});
</script>
  <!--引入改进型easydialog弹窗 -->	
<?php if(api('DIALOG_STYLE') == '1'): ?>	
	<link rel="stylesheet" href="/im/public/seller/css/global.css">
	<link rel="stylesheet" href="/im/public/seller/css/animate.css">
	<link rel="stylesheet" href="/im/public/seller/css/dialog.css">
	<style>
		.div-testDialog{
			width: 500px;
			height: auto;
			margin: 50px auto;
		}

		.div-testDialog button{
			margin:  10px;
		}
		@media screen and ( max-width: 460px){
			.div-testDialog{
				width: 90%;
			}
		}
   </style>
<script src="/im/public/seller/js/dialog.js"></script>	
<?php endif; ?>
	

	</head>
	<body>
		<div class="top">
			<div class="logo"></div>
			<ul class="main_links">
			<li><a href="" target="_blank"><?php echo htmlentities($shop['title']); ?>的小店</a></li>
		          <li><a href="<?php echo url('index/shop/index',array('id'=>get_shop_id())); ?>" target="_blank">店铺首页</a></li>
				   <li><a href="<?php echo url('user/logout',array('id'=>get_shop_id())); ?>">退出登陆</a></li>
			</ul>	
			
			
		<script>	
		var oDiv3 = document.getElementById('user_icon');
		var oDiv4 = document.getElementById('down_menu');
		var timer2 = null;
		oDiv3.onmouseover = oDiv4.onmouseover = function (){	
			oDiv4.style.display = 'block';
			clearTimeout(timer2);
		}
		oDiv3.onmouseout = oDiv4.onmouseout = function (){
			//寮€瀹氭椂鍣�
			timer2 = setTimeout(function () { 
			oDiv4.style.display = 'none'; },300);
		}
	</script>	

		</div>
	    <div class="main">
			<div class="nav_tree">
				<div class="innerUl">
<div class="innerUl"> 

<span class='tit'><a  href="javascript:vod(0);" >系统管理</a><span class="rgt icon iconfont icon-down7"></span></span>
<ul class="menuUl">

<li class="<?php if($action == 'shop/tj'): ?>active<?php endif; ?>"><a id="70" href="<?php echo url('shop/tj'); ?>">店铺统计</a></li>

<li class="<?php if($action == 'shop/systems'): ?>active<?php endif; ?>"><a id="68" href="<?php echo url('shop/systems'); ?>">店铺设置</a></li>


<li class="<?php if($action == 'category/index'): ?>active<?php endif; ?>">
<a id="147" href="<?php echo url('category/index'); ?>">分类管理</a></li>

<li class="<?php if($action == 'goods/index'): ?>active<?php endif; ?>">
<a id="147" href="<?php echo url('goods/index'); ?>">商品管理</a></li>
<li class="<?php if($action == 'coupon/index'): ?>active<?php endif; ?>">
<a id="147" href="<?php echo url('coupon/index'); ?>">优惠券管理</a></li>

</ul><span class='tit'><a  href="javascript:vod(0);" >订单管理</a><span class="rgt icon iconfont icon-down"></span></span>
<ul class="menuUl">
<li class="<?php if($action == 'order/index'): ?>active<?php endif; ?>"><a id="147" href="<?php echo url('order/index'); ?>">订单管理</a></li>

<li class="<?php if($action == 'express/index'): ?>active<?php endif; ?>"><a id="73" href="<?php echo url('express/index'); ?>">快递管理</a></li>
</ul>
<span class='tit'><a  href="javascript:vod(0);" >提现管理</a><span class="rgt icon iconfont icon-down"></span></span>
<ul class="menuUl">
<li class="<?php if($action == 'cash/index'): ?>active<?php endif; ?>"><a id="73" href="<?php echo url('cash/index'); ?>">提现管理</a></li>


<li class="<?php if($action == 'cashLog/index'): ?>active<?php endif; ?>"><a id="73" href="<?php echo url('cashLog/index'); ?>">提现记录</a></li>
<li class="<?php if($action == 'user/index'): ?>active<?php endif; ?>"><a id="147" href="<?php echo url('user/logout'); ?>">退出登录</a></li>
</ul>




 


		         </div>
		         </div>
	    </div>
		
	   <script type="text/javascript">
		    var type="<?php echo api('upload_type'); ?>";
		    if(type==1){
				  var url = "<?php echo url('Attachment/insert'); ?>";
			}else if(type==2){
				  var url = "<?php echo url('Attachment/upfile'); ?>";
			}else{    
			  var url = "<?php echo url('Attachment/update'); ?>";
			}
         $(".tit").click(function(){
                $(this).next().toggle();
				
				if($(this).find(".rgt").hasClass('icon-down')){
				console.log(1);
				   $(this).find(".rgt").attr("class","rgt icon iconfont icon-up5")
				}else{
				  $(this).find(".rgt").attr("class","rgt icon iconfont icon-down7")
				}
          });	
       </script>		 
	
	<script type="text/javascript" src="/im/public/common/upload.js"></script> 
								   <script type="text/javascript" src="/im/public/common/laydate/laydate.js"></script> 
		


<!-- 头部 --> 
			<div class="content">
			<div class="row">
                            <div class="col-lg-3">
                                <div class="card">
                                    <div class="stat-widget-one">
                                        <div class="stat-icon dib"><i class="ti-money color-success border-success"><img src="/im/public/seller/images/s1.png"></i></div>
                                        <div class="stat-content dib">
                                            <div class="stat-text">新订单</div>
                                            <div class="stat-digit"><?php echo htmlentities((isset($info["num"]) && ($info["num"] !== '')?$info["num"]:"0")); ?></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="card">
                                    <div class="stat-widget-one">
                                        <div class="stat-icon dib"><i class="ti-user color-primary border-primary"><img src="/im/public/seller/images/s2.png"></i></div>
                                        <div class="stat-content dib">
                                            <div class="stat-text">总订单数</div>
                                            <div class="stat-digit"><?php echo htmlentities((isset($info["num1"]) && ($info["num1"] !== '')?$info["num1"]:"0")); ?></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="card">
                                    <div class="stat-widget-one">
                                        <div class="stat-icon dib"><i class="ti-layout-grid2 color-pink border-pink"><img src="/im/public/seller/images/s3.png"></i></div>
                                        <div class="stat-content dib">
                                            <div class="stat-text">总销售额</div>
                                            <div class="stat-digit"><?php echo htmlentities((isset($user["total"]) && ($user["total"] !== '')?$user["total"]:"0")); ?></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-3">
                                <div class="card">
                                    <div class="stat-widget-one">
                                        <div class="stat-icon dib"><i class="ti-link color-danger border-danger"><img src="/im/public/seller/images/s4.png"></i></div>
                                        <div class="stat-content dib">
                                            <div class="stat-text">可提现金额</div>
                                            <div class="stat-digit"><?php echo htmlentities((isset($user["money"]) && ($user["money"] !== '')?$user["money"]:"0")); ?></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
			
<div class="charts_wrap" style="width:98%;margin:auto 1%;clear:both;">
						<div class="charts"></div>
					</div>
		</div>

   	
<script type="text/javascript" src="/im/public/seller/js/jquery.min.js" ></script>
		<script type="text/javascript" src="/im/public/seller/js/highcharts/highcharts.js"></script>
        <script type="text/javascript" src="/im/public/seller/js/highcharts/exporting.js"></script>
        <script type="text/javascript" src="/im/public/seller/js/highcharts/highcharts-zh_CN.js"></script>
        <script type="text/javascript" src="/im/public/seller/js/highcharts/grid-light.js"></script>
	     <script>
        	
		
				drawCharts();
			
			
		
		

        function drawCharts(){
				$('.charts').highcharts({
				        chart: {
				            type: 'areaspline',
				        },
				        title: {
				            text: '最近七天数据统计表'
				        },
				        legend: {
				            layout: 'vertical',
				            align: 'left',
				            verticalAlign: 'top',
				            x: 150,
				            y: 100,
				            floating: true,
				            borderWidth: 1,
				            backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
				        },
				        xAxis: {
				            categories: [
				                '<?php echo htmlentities($date[0]); ?>',
				                 '<?php echo htmlentities($date[1]); ?>',
				                '<?php echo htmlentities($date[2]); ?>',
				                '<?php echo htmlentities($date[3]); ?>',
				               '<?php echo htmlentities($date[4]); ?>',
				                 '<?php echo htmlentities($date[5]); ?>',
				                 '<?php echo htmlentities($date[6]); ?>',
				            ]
				        },
				        yAxis: {
				            title: {
				                text: '数量 个'
				            }
				        },
				        tooltip: {
				            shared: true,
				            valueSuffix: ' '
				        },
				        credits: {
				            enabled: false
				        },
				        plotOptions: {
				            areaspline: {
				                fillOpacity: 0.5
				            }
				        },
				        series: [
					        {
					            name: '新增访客数',
					            data: [<?php if(is_array($list["visitor_list"]) || $list["visitor_list"] instanceof \think\Collection || $list["visitor_list"] instanceof \think\Paginator): $k = 0; $__LIST__ = $list["visitor_list"];if( count($__LIST__)==0 ) : echo "221,232,435,56,76,879,768,65" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><?php echo htmlentities($vo['num']); if($k < 7 AND $k > 1): ?>,<?php endif; ?><?php endforeach; endif; else: echo "221,232,435,56,76,879,768,65" ;endif; ?>],
					        }, 
					        {
					            name: '新增订单数',
					            data: [<?php if(is_array($list['member_list']) || $list['member_list'] instanceof \think\Collection || $list['member_list'] instanceof \think\Paginator): $k = 0; $__LIST__ = $list['member_list'];if( count($__LIST__)==0 ) : echo "321,132,45,456,176,879,768,65" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><?php echo htmlentities($vo['num']); if($k < 7): ?>,<?php endif; ?><?php endforeach; endif; else: echo "321,132,45,456,176,879,768,65" ;endif; ?>],
					        }
				        ]
				});
			}	
        </script>
<!-- 尾部 -->
	
<script src="/im/public/seller/js/common.js"></script>
<script>
var html='<footer style=""><p> Powered by <a href="http://www.yershop.com/" target="_blank">yershop V3.0</a> </p></footer>';

$(".content").append(html);

</script>
</body>
</html>
    <!-- 尾部 --> 
