<?php /*a:4:{s:76:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im/plugin/test/view/lists\edit.html";i:1598278726;s:79:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im/plugin/test/view/public\header.html";i:1598674522;s:79:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im/plugin/test/view/public\dialog.html";i:1583543918;s:79:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im/plugin/test/view/public\footer.html";i:1598278409;}*/ ?>
 <!-- 头部 -->
	<!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:"")); ?>|<?php echo api('SITE_NAME'); ?>插件后台管理</title>
   <link rel="stylesheet" href="<?php echo htmlentities($common); ?>/iconfont.css">
	<link rel="stylesheet" href="<?php echo htmlentities($css); ?>/style.css" />
	<script type="text/javascript" src="<?php echo htmlentities($js); ?>/jquery.min.js" ></script>
   <script type="text/javascript" src="<?php echo htmlentities($common); ?>/layer/layer.js"></script>
   <script type="text/javascript" src="<?php echo htmlentities($common); ?>/file.js"></script> 	
<script type="text/javascript" src="<?php echo htmlentities($common); ?>/laydate/laydate.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="__CSS__/global.css">
	<link rel="stylesheet" href="__CSS__/animate.css">
	<link rel="stylesheet" href="__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="__JS__/dialog.js"></script>	
<?php endif; ?>

	</head>
	<body>
		<div class="top header" style="background:<?php echo api('COLOR'); ?>">
			<div class="logo"></div>
			<ul class="main_links">
		          
				  <li class='menubar'>
                 <a>
					<div class="toggler">

                      <span class="bar"></span>
                      <span class="bar"></span>
                      <span class="bar"></span>
                    </div>
                  </a>
                </li>
					<?php if(isset($group)): ?>    
                        <!-- 欢迎语 -->
						   <?php if(is_array($group) || $group instanceof \think\Collection || $group instanceof \think\Paginator): $i = 0; $__LIST__ = $group;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                            <li class="<?php if($group_id == $vo['id']): ?>active<?php endif; ?>"><a href="<?php echo htmlentities(get_group_url($vo['id'])); ?>"><?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:"")); ?> </a>
							
							</li>
					<?php endforeach; endif; else: echo "" ;endif; ?>  
							
			  <li><a href="<?php echo site_url(); ?>" target="_blank">前台</a></li>
                <?php endif; ?>
			</ul>	
			<div class="user_info">
			<img src="<?php echo htmlentities($img); ?>/users.png" height='20px'>欢迎您,<a href="<?php echo url('ucenter/edit',array('id'=>is_login())); ?>" id="user_icon"><?php echo get_username(); ?></a>
				<a href="<?php echo url('admin/login/logout'); ?>" id="user_icon"><img src="<?php echo htmlentities($img); ?>/out.png" height='20px'>退出</a>
				
			</div>
			
		<script>	
		
	</script>	

		</div>
	    <div class="main">
			<div class="nav_tree" style="">
				<div class="innerUl"> 
				<div class="wrapper">
<div class="tit">
<span class="icon iconfont icon-xitong1" id="lft"></span> 
<span class="name">系统管理</span></a>
<span class="rgt icon iconfont icon-arrow"></span></div>
<ul class="menuUl" id="child" style="display:;">

         <li class="<?php if(input('_c') == 'lists'): ?>active<?php endif; ?>"><a id="70" href="<?php echo plugin_url('test://lists/index'); ?>">广告管理</a></li>
        <li class="<?php if(input('_c') == 'slide'): ?>active<?php endif; ?>"><a id="70" href="<?php echo plugin_url('test://slide/index'); ?>">幻灯片管理</a></li>

</ul>
</div>
 
 
		         </div>
	    </div>
		
	     <script type="text/javascript">
		 	$(".menubar").click(function(){
				 $('.nav_tree').toggleClass('w80');

				 if ( $('.nav_tree').hasClass('w80')) {
		              $(".innerUl #child").hide();		
					  $(".innerUl .name,.innerUl .rgt").hide();
	            }else{
		           $(".innerUl #child").show();
				   $(".innerUl .name,.innerUl .rgt").show();
	            }
			
				
          });
		  $(".innerUl #lft").mouseover(function(){
                 $(".innerUl .name,.innerUl .rgt").show();
				 $('.nav_tree').removeClass('w80');
                if ( $('.nav_tree').hasClass('w80')) {
		              $(".innerUl #child").hide();		
					  $(".innerUl .name,.innerUl .rgt").hide();
	            }else{
		           $(".innerUl #child").show();
				   $(".innerUl .name,.innerUl .rgt").show();
	            }
				 
          });
		    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-arrow')){
				console.log(1);
				   $(this).find(".rgt").attr("class","rgt icon iconfont icon-right2")
				}else{
				  $(this).find(".rgt").attr("class","rgt icon iconfont icon-arrow")
				}
          });					   		
       </script>		 
	
	<script type="text/javascript" src="<?php echo htmlentities($common); ?>/upload.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="form-horizontal" action="<?php echo form_url(); ?>" method="post" enctype="multipart/form-data">
							 <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">
									     <input type="text"  name="url" value="<?php echo htmlentities((isset($info['url']) && ($info['url'] !== '')?$info['url']:"")); ?>">
									  </div>
								  </div>

								    <div class="form-item">
									<label>位置<span>(广告位置)</span></label>
									<div class="form-input">
									   <input type="text" name="place" value="<?php echo htmlentities((isset($info['place']) && ($info['place'] !== '')?$info['place']:"1")); ?>"/>
									</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($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($vo['title']); ?></option>
												  <?php endforeach; endif; else: echo "" ;endif; ?>
												 </select>
									  </div>
								  
							       </div>
								    <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> 
												
													<input type="hidden" name="cover_id" value="<?php echo htmlentities((isset($info['cover_id']) && ($info['cover_id'] !== '')?$info['cover_id']:'')); ?>">								
													<a id="cover_id" href="javascript:void(0);" class='btn_upload'>
													<input type="file" name="file" class='file' id="cover_id" style=""/>选择文件
													</a>
																								
											    <div class="upload_preview">
													  <?php if(!(empty($info['cover_id']) || (($info['cover_id'] instanceof \think\Collection || $info['cover_id'] instanceof \think\Paginator ) && $info['cover_id']->isEmpty()))): ?>
															  <div class="upload-pre-item"> <img src="<?php echo htmlentities(get_cover_path($info['cover_id'])); ?>"/>
															<span class='close' onclick='del(this,"cover_id");'></span> </div>
														<?php endif; ?>
												</div>
 
												<script type="text/javascript">  
													var field="cover_id";
													upload(field);
												</script>	
                                      </div>
						        
				             	  

						   </div>  
						    <div class="edit_content_tab none">
						       
							   <div class="form-item">
							       <div class="form-input">
									  <label>状态<span>(0-禁用，1-正常)</span></label>
									  <input type="text" name="status" value="<?php echo htmlentities((isset($info['status']) && ($info['status'] !== '')?$info['status']:"1")); ?>"/>
								   </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='category_id']").val("<?php echo htmlentities((isset($info['category_id']) && ($info['category_id'] !== '')?$info['category_id']:'0')); ?>"); 
	</script>
	 <script src="<?php echo htmlentities($js); ?>/edit.js"></script>

<!-- 尾部 -->
	
<script src="<?php echo htmlentities($js); ?>/common.js"></script>  

<script>
var html='<footer style=""><p> Powered by <a href="http://www.bycms.cn/" target="_blank">bymall V1.0</a> </p></footer>';

$(".content").append(html);
var sid="<?php echo input('module_id')?input('module_id'):''; ?>";var obj=$("a#"+sid);$(obj).parents("li").eq(0).addClass("active");
</script>
</body>
</html>
    <!-- 尾部 --> 
