<?php /*a:4:{s:87:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\seller\view\category\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="edit_title"><?php echo htmlentities((isset($meta_title) && ($meta_title !== '')?$meta_title:"")); ?></div>
				<div class="articlelist">
					<div class="edit">
						<div class="edit_left ">
								<a href="<?php echo U('add'); ?>" class="add cur">新增</a>
								<a  data-url="<?php echo U('del'); ?>" class="delete cur">删除</a>
						</div>
						<div class="search_right">
							
						</div>
					</div>
					<div class="article_table">
						<div class="article_table_header article_table_tr">
							<!--加class往后面加，不要加在已有class前面-->
							<div class="article_folder article_table_th" w_percent="18">折叠</div>
								<div class="article_id article_table_th" w_percent="18">id</div>
							<div class="article_name article_table_th" w_percent="50">名称</div>
							<div class="article_sort article_table_th" w_percent="10">排序</div>
							<div class="article_deploy article_table_th" w_percent="10">状态</div>
							<div class="list_opr article_table_th" w_percent="22">操作</div>
						</div>
						 <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
						<div class="first_level_group opened">
							<div class="first_level article_table_tr">
								<div class="article_folder">
										<span class="folder_icon"></span>
								</div>
								<div class="article_id">
									<?php echo htmlentities($vo['id']); ?>
								</div>
								<div class="article_name">
								<span><?php echo htmlentities($vo['title']); ?></span>
									 <a href="<?php echo url('add?pid='.$vo['id']); ?>" class="add_article"></a>
								</div>
								<div class="article_sort">
									<?php echo htmlentities($vo['sort']); ?>
								</div>
								<div class="article_deploy"><?php echo htmlentities($vo['status']); ?></div>
								<div class="list_opr">
									<span class="opr_box">
										 <a href="<?php echo url('edit?id='.$vo['id']); ?>" class="edit_btn cur">编辑</a>
									 <a data-url="<?php echo url('del?id='.$vo['id']); ?>" class="del_btn cur">删除</a>
									</span>
								</div>
							</div> 
							 <?php if(is_array($vo['child']) || $vo['child'] instanceof \think\Collection || $vo['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?>
							<div class="second_level_group opened">
								<div class="second_level article_table_tr">
									<div class="article_folder">
										<span class="folder_icon"></span>
									</div>
									<div class="article_id">
									<?php echo htmlentities($vo1['id']); ?>
								   </div>
									<div class="article_name">
									<span><?php echo htmlentities($vo1['title']); ?></span>
									 	 <a href="<?php echo url('add?pid='.$vo1['id']); ?>" class="add_article"></a>
								   </div>
								   <div class="article_sort">
									<?php echo htmlentities($vo1['sort']); ?>
								   </div>
								   <div class="article_deploy"><?php echo htmlentities($vo1['status']); ?></div>
									<div class="list_opr">
										<span class="opr_box">
										 <a href="<?php echo url('edit?id='.$vo1['id']); ?>" class="edit_btn cur">编辑</a>
									      <a data-url="<?php echo url('del?id='.$vo1['id']); ?>" class="del_btn cur">删除</a>
										</span>
									</div>
								</div>
								<?php if(!(empty($vo1['child']) || (($vo1['child'] instanceof \think\Collection || $vo1['child'] instanceof \think\Paginator ) && $vo1['child']->isEmpty()))): if(is_array($vo1['child']) || $vo1['child'] instanceof \think\Collection || $vo1['child'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo1['child'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo2): $mod = ($i % 2 );++$i;?>
								<div class="third_level article_table_tr">
									<div class="article_folder">
									    <span class="folder_icon"></span>
									</div>
									<div class="article_id">
									 <?php echo htmlentities($vo2['id']); ?>
								   </div>
									<div class="article_name">
									  <span><?php echo htmlentities($vo2['title']); ?></span>
									   	 <a href="<?php echo url('add?pid='.$vo2['id']); ?>" class="add_article"></a>
								    </div>
								    <div class="article_sort">
									    <?php echo htmlentities($vo2['sort']); ?>
								    </div>
								    <div class="article_deploy"><?php echo htmlentities($vo2['status']); ?></div>
									<div class="list_opr">
										<span class="opr_box">
										 <a href="<?php echo url('edit?id='.$vo2['id']); ?>" class="edit_btn cur">编辑</a>
									 <a data-url="<?php echo url('del?id='.$vo2['id']); ?>" class="del_btn cur">删除</a>
										</span>
									</div>
								</div>
								
							<?php endforeach; endif; else: echo "" ;endif; ?>	<?php endif; ?>
								</div><?php endforeach; endif; else: echo "" ;endif; ?>
							</div>
							<?php endforeach; endif; else: echo "" ;endif; ?>
				</div>	</div>	</div>	</div>	</div>
		</div>
		<script>
			$(function(){
				
				bindEvent();
			});
			
		
			
			function bindEvent(){
				$(".p_menue").on('click',function(){
					if($(this).parent(".menue").hasClass("down")){
						$(this).parent(".menue").removeClass("down").addClass("up");
					}else{
						$(this).parent(".menue").removeClass("up").addClass("down");
					}
					
				});
				$(".c_menue_item").on("click",function(){
					if(!$(this).hasClass("checked")){
						$(".nav_tree_list .c_menue_item").removeClass("checked");
						$(this).addClass("checked");
					}
				})
				$(".close_tips").click(function(){
					$(".tips_msg").hide();
				
				});
				
				
				/****树形菜单展开**/
				$(".first_level .folder_icon").click(function(){
					var parent= $(this).parents(".first_level_group").first();
					if(parent.hasClass("closed")){
						parent.removeClass("closed").addClass("opened");
					}else if(parent.hasClass("opened")){
						parent.removeClass("opened").addClass("closed");
						parent.find(".second_level_group").removeClass("opened").addClass("closed");
					}
					
				});
				$(".second_level .folder_icon").click(function(){
					var parent= $(this).parents(".second_level_group").first();
					if(parent.hasClass("closed")){
						parent.removeClass("closed").addClass("opened");
					}else if(parent.hasClass("opened")){
						parent.removeClass("opened").addClass("closed");
					}
					
				});
			}
			
		
			
	
		</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>
    <!-- 尾部 --> 
