<?php /*a:4:{s:84:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\seller\view\goods\index.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="">
			
				<div class="tips_msg none"><span class="tips">保存成功</span><span class="close_tips"></span></div>
					<div class="edit_title"><?php echo htmlentities((isset($meta_title) && ($meta_title !== '')?$meta_title:"")); ?></div>

	     <div class="search">
					<form class="search-form"  action="<?php echo url(); ?>" method="post">
					  <div class="group">
					       名称：<input type="text" name="title" class="search_ipt" value="<?php echo input('title'); ?>"/>
					  
					  </div>
						  <div class="group">
					     排序：<input type="text" name="sort"  class="search_ipt" value="<?php echo input('sort'); ?>"/>
					  </div>
					     <div class="group">
					     创建时间：<input type="text"  name="start_time" id="start_time" class="laydate-icon input_box search_ipt" value="<?php echo input('start_time'); ?>"/> 
					  </div>
					  <script>
					laydate({
					elem: '#start_time',
					format: 'YYYY-MM-DD hh:mm:ss', 
					min: laydate.now(), //设定最小日期为当前日期//目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
					event: 'focus' //响应事件。如果没有传入event，则按照默认的click
					});
					</script>
                     <div class="group">
					     结束时间：<input type="text"  name="end_time" id="end_time" class="laydate-icon input_box search_ipt end" value="<?php echo input('end_time'); ?>"/><input type="button" class="search_btn"value="搜索" onclick="$('.search-form').submit()">
					  </div>
					  <script>
					laydate({
					  elem: '#end_time',
					  format: 'YYYY-MM-DD hh:mm:ss', 
					  min: laydate.now(), //设定最小日期为当前日期//目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
					  event: 'focus' //响应事件。如果没有传入event，则按照默认的click
					});
                  </script>
					
					</form>
					</div>
				<div class="goods-rgt">
					<div class="edit">
						<div class="edit_top">
							<a href="<?php echo url('add?pid='.$pid); ?>" class="add cur">新增</a>
							<a data-url="<?php echo url('del'); ?>" class="delete cur">删除</a>
							<a data-url="<?php echo url('recommend?p=1'); ?>" class="recommend cur">推荐</a>
							<a data-url="<?php echo url('news?p=2'); ?>" class="new cur">新品</a>
						</div>
						<div class="search_right">
							<input type="text" />
							<div class="search_btn"></div>
						</div>
					</div>
					<table class="goods">
					    <tr>
							<th><input class="checkbox check-all" type="checkbox">   </th>	
							<th>id</th> 
							<th>图片</th>                                
							<th>标题</th>
							<th>sku</th>
							<th>价格</th>
							<th>总库存</th>
							<th>状态</th>
							
							<th class="">操作</th>
				       </tr>
				       <?php if(is_array($res['list']) || $res['list'] instanceof \think\Collection || $res['list'] instanceof \think\Paginator): $i = 0; $__LIST__ = $res['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                            <tr>
								<td> <input class="ids row-selected" type="checkbox" name="id[]" value="<?php echo htmlentities($vo['id']); ?>"> </td>
								<td><?php echo htmlentities($vo['id']); ?></td>
								<td><img src="<?php echo htmlentities(get_cover_path($vo['cover_id'])); ?>" class="thumb"> </td>
								<td class="tit"><a href="<?php echo U('goods/edit?id='.$vo['id']); ?>"><?php echo htmlentities($vo['title']); ?></a> </td>
								<td><a href="<?php echo U('sku/index?goods_id='.$vo['id']); ?>">[查看]</a></td>
								<td class="price"><?php echo htmlentities($vo['price']); ?></td>
								<td><?php echo htmlentities($vo['num']); ?></td>
								<td>  <?php if($vo['status'] == '1'): ?>
											         显示中		
											   <?php else: ?>
														<a data-url="<?php echo url('del?id='.$vo['id']); ?>" class="green_btn cur">已下架</a>
												<?php endif; ?></td>
								
								<td class="list_opr">
								    <span class="opr_box">
									    <a href="<?php echo url('edit?id='.$vo['id']); ?>" class="edit_btn cur">编辑</a>
										       <?php if($vo['status'] == '1'): ?>
											          <a href="<?php echo url('change?status=0&id='.$vo['id']); ?>" class="blue cur">下架</a>		
											   <?php else: ?>
														<a href="<?php echo url('change?status=1&id='.$vo['id']); ?>" class="green cur">上架</a>
												<?php endif; ?>
									    <a data-url="<?php echo url('del?id='.$vo['id']); ?>" class="del_btn cur">删除</a>
									    <a href="<?php echo site_url(); ?>/index.php/index/goods/detail/id/<?php echo htmlentities($vo['id']); ?>" class="preview" target="_blank">预览</a>
									</span>          
								</td>
                           </tr>
					    <?php endforeach; endif; else: echo "" ;endif; ?>
					</table>
					<!--分页-->
					<ul class="pagination">
						  <?php echo htmlentities($res['page']); ?>
					</ul>
				</div>
				
			</div>
		</div>
	<script>

var sid="<?php echo input('pid'); ?>";var obj=$(".innerUls #"+sid);$(obj).addClass("active");
</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>
<!-- 头部 --> 

