<?php /*a:4:{s:86:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\seller\view\category\edit.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="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="edit_box">
					<div class="edit_tab">
						<div class="tab_option on">基础</div>
						<div class="tab_option">高级</div>
					</div>
					<div class="edit_content">
						 <form class="group-form"  action="<?php echo url(''); ?>" method="post">
						     <div class="edit_content_tab">

							        <div class="form-item">
									  <label>名称<span>(标题)</span></label>
									  <div class="form-input">
									      <input type="text" name="title" value="<?php echo htmlentities((isset($info['title']) && ($info['title'] !== '')?$info['title']:"")); ?>">
									   </div>
								  </div>
                                   
								 

								     <div class="form-item">
									     <label>上级分类<span>(所属分类,最多二级)</span></label>
									      <div class="form-input">
											  <select name="pid" >
											  <option value="0">顶级分类</option>    
											  <?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;?>
												<option value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities((isset($vo['html']) && ($vo['html'] !== '')?$vo['html']:"")); ?><?php echo htmlentities($vo['title']); ?></option>
											  <?php endforeach; endif; else: echo "" ;endif; ?>
											 </select>
										  </div> 
								     </div> 

									   <div class="form-item">
									     <label>系统分类<span>(所属系统分类)</span></label>
									      <div class="form-input">
											  <select name="category_id" >
											  <option value="0">顶级分类</option>    
											  <?php if(is_array($catelist) || $catelist instanceof \think\Collection || $catelist instanceof \think\Paginator): $i = 0; $__LIST__ = $catelist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
												<option value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities((isset($vo['html']) && ($vo['html'] !== '')?$vo['html']:"")); ?><?php echo htmlentities($vo['title']); ?></option>
											  <?php endforeach; endif; else: echo "" ;endif; ?>
											 </select>
										  </div> 
								     </div> 

									
									  <div class="form-item">
									     <label>绑定商品类型<span>(绑定商品类型)</span></label>
									     <div class="form-input">
											 <select name="types_id" >
												<?php if(is_array($typelist) || $typelist instanceof \think\Collection || $typelist instanceof \think\Paginator): $i = 0; $__LIST__ = $typelist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
												 <option value="<?php echo htmlentities($vo['id']); ?>"><?php echo htmlentities($vo['title']); ?></option>
												  <?php endforeach; endif; else: echo "" ;endif; ?> 
												  <option value="0">无</option>
											 </select>
										 </div> 
								     </div>
                                 
									 <div class="form-item">
									       <label>状态<span>(0-禁用，1-正常)</span></label>
										   <div class="form-input">
									       <input type="text"name="status" value="<?php echo htmlentities((isset($info['status']) && ($info['status'] !== '')?$info['status']:"1")); ?>"/>
										   </div>
								     </div>
									 
								
								
							  	
						       </div>
				               <div class="edit_content_tab none">
						            <div class="form-item">
									      <label>排序<span>(越小越靠前)</span></label>
										  <div class="form-input">
									      <input type="text" name="sort" value="<?php echo htmlentities((isset($info['sort']) && ($info['sort'] !== '')?$info['sort']:"")); ?>"/>
										  </div>
								     </div>
									 <div class="form-item">
									    <label>后台新增模板<span>(标题)</span></label>
									    <div class="form-input">
									         <input type="text" name="template_add" value="<?php echo htmlentities((isset($info['template_add']) && ($info['template_add'] !== '')?$info['template_add']:"goods/add")); ?>">
									    </div>
								  </div> 
								  
								  <div class="form-item">
									    <label>后台编辑模板<span>(标题)</span></label>
									    <div class="form-input">
									         <input type="text" name="template_edit" value="<?php echo htmlentities((isset($info['template_edit']) && ($info['template_edit'] !== '')?$info['template_edit']:"goods/edit")); ?>">
									    </div>
								  </div> 
								  
								  <div class="form-item">
									    <label>前台列表模板<span>(标题)</span></label>
									    <div class="form-input">
									         <input type="text" name="template_lists" value="<?php echo htmlentities((isset($info['template_lists']) && ($info['template_lists'] !== '')?$info['template_lists']:"goods/lists")); ?>">
									    </div>
								  </div>   
								  
								  <div class="form-item">
									    <label>前台详情模板<span>(标题)</span></label>
									    <div class="form-input">
									         <input type="text" name="template_detail" value="<?php echo htmlentities((isset($info['template_detail']) && ($info['template_detail'] !== '')?$info['template_detail']:"goods/detail")); ?>">
									    </div>
								  </div>
									 <div class="form-item">
									       <label>列数<span>(列表页显示的文章数量)</span></label> 
										   <div class="form-input">
									       <input type="text" name="list_row"  value="<?php echo htmlentities((isset($info['list_row']) && ($info['list_row'] !== '')?$info['list_row']:"")); ?>"/>
										   </div>
								     </div>
									
							
						</div>
						<div class="btn_group">
						    <input type="hidden" name="id" value="<?php echo htmlentities((isset($info['id']) && ($info['id'] !== '')?$info['id']:"")); ?>">
							<div class="confirm_btn">确认</div>
							<div class="cancel_btn">返回</div>
						</div>
						</form> 
					</div>
				</div>
			</div>
		</div>

     
    <script type="text/javascript">
      $("select[name='pid']").val("<?php echo htmlentities((isset($info['pid']) && ($info['pid'] !== '')?$info['pid']:'0')); ?>");
	  $("select[name='types_id']").val("<?php echo htmlentities((isset($info['types_id']) && ($info['types_id'] !== '')?$info['types_id']:'40')); ?>"); 
	  $("select[name='type']").val("<?php echo htmlentities((isset($info['type']) && ($info['type'] !== '')?$info['type']:'2')); ?>");   
	  $("select[name='display']").val("<?php echo htmlentities((isset($info['display']) && ($info['display'] !== '')?$info['display']:'1')); ?>"); 
	  $("select[name='template_edit']").val("<?php echo htmlentities((isset($info['template_edit']) && ($info['template_edit'] !== '')?$info['template_edit']:'goods/edit')); ?>");
    </script>
 <script src="/im/public/seller/js/edit.js"></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>
    <!-- 尾部 --> 
