<?php /*a:4:{s:85:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\admin\view\systems\index.html";i:1594000530;s:85:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\admin\view\public\header.html";i:1600179770;s:85:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\admin\view\public\dialog.html";i:1583543918;s:85:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\admin\view\public\footer.html";i:1583731204;}*/ ?>
 <!-- 头部 -->
	<!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="/im/public/common/iconfont.css">
	<link rel="stylesheet" href="/im/public/admin/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 type="text/javascript" src="/im/public/common/file.js"></script> 	
<script type="text/javascript" src="/im/public/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="/im/public/admin/css/global.css">
	<link rel="stylesheet" href="/im/public/admin/css/animate.css">
	<link rel="stylesheet" href="/im/public/admin/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/admin/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  id="user_info" class="user_info">
			<img src="/im/public/admin/images/users.png" height='20px'><a href="<?php echo url('user/edit',array('id'=>is_login())); ?>" id="user_icon"><?php echo get_username(); ?></a>
				
			<ul id="dropdown-menu" class="dropdown-menu" >
			       <li>
                    	<a href="<?php echo url('user/edit',array('id'=>is_login())); ?>" id="user_icon">编辑资料</a>
                  </li>
                  <li>
                    	<a href="<?php echo url('user/pwd',array('id'=>is_login())); ?>" id="user_icon"> 修改密码</a>
                  </li>
				  <li >
                   	<a href="<?php echo url('login/logout'); ?>" >退出登陆</a>
                  </li></ul>	
			</div>
			
		<script>	
	
	       var oDiv3 = document.getElementById('user_info');
			var oDiv4 = document.getElementById('dropdown-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'; },3000);
			}

	</script>	

		</div>
	    <div class="main">
			<div class="nav_tree" style="">
				<div class="innerUl"><?php if(is_array($sidebar) || $sidebar instanceof \think\Collection || $sidebar instanceof \think\Paginator): $i = 0; $__LIST__ = $sidebar;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?> 
				<div class="wrapper">
<div class='tit'><a  href="javascript:vod(0);" id="<?php echo htmlentities($vo['id']); ?>" href="<?php echo htmlentities($vo['url']); ?>"><span class="icon iconfont <?php echo htmlentities((isset($vo['font']) && ($vo['font'] !== '')?$vo['font']:'icon-xitong1')); ?>" id="lft"></span> <span class='name'><?php echo htmlentities($vo['title']); ?></span></a><span class="rgt icon iconfont icon-arrow"></span></div>

<ul class="menuUl" id="child" style='display:;'><?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;?><li><a id="<?php echo htmlentities($vo1['id']); ?>" href="<?php echo htmlentities($vo1['url']); ?>"><?php echo htmlentities($vo1['title']); ?></a>

<ul class="menuUl"><?php 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;?><li><a id="<?php echo htmlentities($vo2['id']); ?>"href="<?php echo htmlentities($vo2['url']); ?>"><?php echo htmlentities($vo2['title']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>

</ul></li><?php endforeach; endif; else: echo "" ;endif; ?></ul>
</div>
<?php endforeach; endif; else: echo "" ;endif; ?>
		         </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'); ?>";
			}var upload_url="<?php echo url('attachment/upload'); ?>";
			$(".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="/im/public/common/upload.js"></script> 
<!-- 头部 -->  

  <script type="text/javascript" src="/im/public/common/jquery.colorpicker.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">
				<?php if(is_array($groups) || $groups instanceof \think\Collection || $groups instanceof \think\Paginator): if( count($groups)==0 ) : echo "" ;else: foreach($groups as $key=>$vo): ?>
			      <div class="tab_option <?php if($type == $key): ?>on<?php endif; ?>"><a href="<?php echo U('?group='.$key); ?>"><?php echo htmlentities($vo); ?>配置</a></div>
		     	<?php endforeach; endif; else: echo "" ;endif; ?>
					</div>
					<div class="edit_content">
							 <form class="group-form"  action="<?php echo url(''); ?>" method="post">
						   	     <div class="edit_content_tab">
									 <?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=>$config): $mod = ($i % 2 );++$i;switch($config['type']): case "text": ?>
											    <div class="form-item">
									                 <label><?php echo htmlentities($config['title']); ?><span>(<?php echo htmlentities($config['remark']); ?>)</span></label>
													 <div class="form-input">
									                     <input type="text" name="<?php echo htmlentities($config['name']); ?>" value="<?php echo htmlentities($config['value']); ?>">
													  </div>
								                 </div>
											
											<?php break; case "checkbox": ?>
											    <div class="form-item">
									                 <label><?php echo htmlentities($config['title']); ?><span>(<?php echo htmlentities($config['remark']); ?>)</span></label>
													 <div class="form-input">
									                    <input type="hidden" id="<?php echo htmlentities($config['name']); ?>" name="<?php echo htmlentities($config['name']); ?>" value="0"/>
														<input class="switch <?php echo htmlentities($config['name']); ?>" type="checkbox"  <?php if(!(empty($config['value']) || (($config['value'] instanceof \think\Collection || $config['value'] instanceof \think\Paginator ) && $config['value']->isEmpty()))): ?> checked<?php endif; ?> name="<?php echo htmlentities($config['name']); ?>" >
														 
													  </div>
								                 </div>
												 <script>
													  $(".<?php echo htmlentities($config['name']); ?>").on('click', function () {
														if ($(".<?php echo htmlentities($config['name']); ?>").is(':checked')) {
														console.log("在ON的状态下");
														} else {
														console.log("在OFF的状态下");
														$(".<?php echo htmlentities($config['name']); ?>").attr("checked",false)
														}
													   });
													</script>
											<?php break; case "string": ?>
											    <div class="form-item">
									                 <label><?php echo htmlentities($config['title']); ?><span>(<?php echo htmlentities($config['remark']); ?>)</span></label>
													 <div class="form-input">
									                     <input type="text" name="<?php echo htmlentities($config['name']); ?>" value="<?php echo htmlentities($config['value']); ?>">
													 </div>
								                 </div>
											
											<?php break; case "textarea": ?>
											   <div class="form-item">
									                 <label><?php echo htmlentities($config['title']); ?><span>(<?php echo htmlentities($config['remark']); ?>)</span></label>
													 <div class="form-input">
									                    <textarea name="<?php echo htmlentities($config['name']); ?>"/><?php echo htmlentities($config['value']); ?></textarea>
													 </div>
								                 </div>
											
											<?php break; case "radio": ?>
										         <div class="form-item">
									                 <label><?php echo htmlentities($config['title']); ?><span>(<?php echo htmlentities($config['remark']); ?>)</span></label>
													 <div class="form-input">
									                   <input type="radio" name="<?php echo htmlentities($config['name']); ?>" value="<?php echo htmlentities($config['value']); ?>"/>
													 </div>
								                 </div>
											<?php break; case "select": ?>
											    <div class="form-item">
									                 <label><?php echo htmlentities($config['title']); ?><span>(<?php echo htmlentities($config['remark']); ?>)</span></label>
													 <div class="form-input">
									                    <select name="<?php echo htmlentities($config['name']); ?>">
													        <?php $_result=parse_config_attr($config['extra']);if(is_array($_result) || $_result instanceof \think\Collection || $_result instanceof \think\Paginator): $i = 0; $__LIST__ = $_result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
													        <option value="<?php echo htmlentities($key); ?>" <?php if($config['value'] == $key): ?>selected<?php endif; ?>><?php echo htmlentities($vo); ?></option>
												             <?php endforeach; endif; else: echo "" ;endif; ?>
												        </select>
													 </div>
								                 </div>
											<?php break; case "color": ?>
											     <div class="form-item">
									                 <label><?php echo htmlentities($config['title']); ?><span>(<?php echo htmlentities($config['remark']); ?>)</span></label>
													 	<div class="form-input">
									                        <input type="text" name="<?php echo htmlentities($config['name']); ?>" value="<?php echo htmlentities($config['value']); ?>" id="<?php echo htmlentities($config['name']); ?>" style="color:<?php echo htmlentities($config['value']); ?>"/>
													  </div>
								                  </div>
												  <script type="text/javascript">
													$("#<?php echo htmlentities($config['name']); ?>").colorpicker({
														fillcolor:true,
														success:function(o,color){
															$(o).css("color",color);
														}
													});
												 </script>
											<?php break; case "picture": ?>
										       
												     <div class="form-item">
												<label><?php echo htmlentities($config['title']); ?><span>(<?php echo htmlentities($config['remark']); ?>)</span></label> 
												
													<input type="hidden" name="<?php echo htmlentities($config['name']); ?>"  value="<?php echo htmlentities($config['value']); ?>">								
													<a id="<?php echo htmlentities($config['name']); ?>" href="javascript:void(0);" class='btn_upload'>
													<input type="file" name="file" class='file' id="<?php echo htmlentities($config['name']); ?>" style=""/>上传图片
													</a>
																								
											    <div class="upload_preview">
													  <?php if(!(empty($config['value']) || (($config['value'] instanceof \think\Collection || $config['value'] instanceof \think\Paginator ) && $config['value']->isEmpty()))): ?>  
															  <div class="upload-pre-item"> <img src="<?php echo htmlentities(get_cover_path($config['value'])); ?>"/>
															<span class='close' onclick='del(this,"<?php echo htmlentities($config['name']); ?>");'></span> </div>
														<?php endif; ?>
												</div>
 
												<script type="text/javascript">  
														var field="<?php echo htmlentities($config['name']); ?>";	var value="<?php echo htmlentities($config['value']); ?>";
													upload(field);
												</script>	
                                      </div>
									       <?php break; case "video": ?>
											    <div class="form-item">
												      <label><?php echo htmlentities($config['title']); ?><span>(<?php echo htmlentities($config['remark']); ?>)</span></label>
												     <input type="hidden" name="<?php echo htmlentities($config['name']); ?>"  value="<?php echo htmlentities((isset($config['value']) && ($config['value'] !== '')?$config['value']:'')); ?>">
													 <div id="<?php echo htmlentities($config['name']); ?>" class="container">
														<div id="file_<?php echo htmlentities($config['name']); ?>">你的浏览器不支持flash,Silverlight或者HTML5！</div>
														<input type="hidden" name="<?php echo htmlentities($config['name']); ?>"  value="<?php echo htmlentities((isset($config['value']) && ($config['value'] !== '')?$config['value']:'')); ?>">
														<input type="text" name="file_path"  class="ipt" value="<?php echo htmlentities(get_path($config['value'])); ?>">
														<a id="select_<?php echo htmlentities($config['name']); ?>" href="javascript:void(0);" class='btn_upload'>选择文件</a>
														<a id="post_<?php echo htmlentities($config['name']); ?>" href="javascript:void(0);" class='btn_upload'>开始上传</a>
													 </div>
							
													<video src="<?php echo htmlentities(get_cover_path($config['value'])); ?>" controls="controls">
															  您的浏览器不支持 video 标签。
													</video>	
												    <script type="text/javascript">  
													var field="<?php echo htmlentities($config['name']); ?>";
													uploadVideo(field);
												   </script> 	
											  </div>
							               <?php break; case "file": ?>
											    <div class="form-item">
												     <label><?php echo htmlentities($config['title']); ?><span>(<?php echo htmlentities($vo['remark']); ?>)</span></label> 
												     <input type="hidden" name="<?php echo htmlentities($vo['name']); ?>"  value="<?php echo htmlentities((isset($config['value']) && ($config['value'] !== '')?$config['value']:'')); ?>">
													 <div id="<?php echo htmlentities($vo['name']); ?>" class="container">
														<div id="file_<?php echo htmlentities($vo['name']); ?>">你的浏览器不支持flash,Silverlight或者HTML5！</div>
														<input type="hidden" name="<?php echo htmlentities($vo['name']); ?>"  value="<?php echo htmlentities((isset($config['value']) && ($config['value'] !== '')?$config['value']:'')); ?>">
														<input type="text" name="file_path"  class="ipt" value="<?php echo htmlentities(get_path($config['value'])); ?>">
														<a id="select_<?php echo htmlentities($vo['name']); ?>" href="javascript:void(0);" class='btn_upload'>选择文件</a>
														<a id="post_<?php echo htmlentities($vo['name']); ?>" href="javascript:void(0);" class='btn_upload'>开始上传</a>
													 </div>
							
														
												    <script type="text/javascript">  
													var field="<?php echo htmlentities($vo['name']); ?>";
													upload(field);
												   </script> 	
											  </div>
							                <?php break; ?>
									    <?php endswitch; ?>
									<?php endforeach; endif; else: echo "" ;endif; ?>	
						</div>
						<div class="edit_content_tab none">
							
						</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>$("video").trigger('play');</script>
  
 <!-- 头部 -->
	
<script src="/im/public/admin/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'):$now['id']; ?>";var obj=$("a#"+sid);$(obj).parents("li").eq(0).addClass("active");
</script>
</body>
</html>
<!-- 头部 --> 
