<?php /*a:4:{s:83:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\admin\view\plugin\edit.html";i:1599545450;s:85:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\admin\view\public\header.html";i:1599537308;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 class="user_info">
			<img src="/im/public/admin/images/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('login/logout'); ?>" id="user_icon"><img src="/im/public/admin/images/out.png" height='20px'>退出</a>
				
			</div>
			
		<script>	
		
	</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>
</script>
		<div class="content ">
	<div class="edit_title">插件配置 [ <?php echo htmlentities($info['title']); ?> ]</div>
	<div class="edit_box">
	<div class="edit_content">
	<form action="<?php echo url(''); ?>" class="edit_content_tab" method="post">
		<?php if(!(empty($data['config']) || (($data['config'] instanceof \think\Collection || $data['config'] instanceof \think\Paginator ) && $data['config']->isEmpty()))): if(is_array($data['config']) || $data['config'] instanceof \think\Collection || $data['config'] instanceof \think\Paginator): if( count($data['config'])==0 ) : echo "" ;else: foreach($data['config'] as $value=>$vo): ?>
				<div class="form-item cf">
					<label>
						<?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:'')); if(isset($vo['tip'])): ?>
							<span>(<?php echo htmlentities($vo['tip']); ?>)</span>
						<?php endif; ?>
					</label>
						<?php switch($vo['type']): case "text": ?>
							
							<div class="form-input">
								<input type="text" name="config[<?php echo htmlentities($value); ?>]" class="text input-large" value="<?php echo htmlentities($vo['value']); ?>">
							</div>
	
						<?php break; case "password": ?>
						
							<div class="form-input">
								<input type="password" name="config[<?php echo htmlentities($value); ?>]" class="text input-large" value="<?php echo htmlentities($vo['value']); ?>">
							</div>

						<?php break; case "picture": ?>
										  
											 
												
											<input type="hidden" name="config[<?php echo htmlentities($value); ?>]"  value="<?php echo htmlentities((isset($vo['value']) && ($vo['value'] !== '')?$vo['value']:'')); ?>">
 <a  href="javascript:void(0);" class="btn_upload">
 <input type="file"  class="file" id="<?php echo htmlentities($value); ?>" style=""/>上传图片
 </a>
 
													  <div class="upload_preview imgconfig[<?php echo htmlentities($value); ?>]">
													   <?php if(!(empty($vo['value']) || (($vo['value'] instanceof \think\Collection || $vo['value'] instanceof \think\Paginator ) && $vo['value']->isEmpty()))): ?>
														   <div class="upload-pre-item"> <img src="<?php echo htmlentities(get_cover_path($vo['value'])); ?>"/>
														   </div>
														<?php endif; ?>
													 </div>
											 
											   <script type="text/javascript">  
													var field="<?php echo htmlentities($value); ?>";
													 fileupload(field);
												</script>	
											 
										<?php break; case "hidden": ?>
								<input type="hidden" name="config[<?php echo htmlentities($value); ?>]" value="<?php echo htmlentities($vo['value']); ?>">
							<?php break; case "radio": ?>
							
							<div class="form-input">
								<?php if(is_array($vo['options']) || $vo['options'] instanceof \think\Collection || $vo['options'] instanceof \think\Paginator): if( count($vo['options'])==0 ) : echo "" ;else: foreach($vo['options'] as $opt_k=>$opt): ?>
									<label class="radio">
										<input type="radio" name="config[<?php echo htmlentities($value); ?>]" value="<?php echo htmlentities($opt_k); ?>"
										<?php if($vo['value'] == $opt_k): ?>checked<?php endif; ?>><?php echo htmlentities($opt); ?>
									</label>
								<?php endforeach; endif; else: echo "" ;endif; ?>
							</div>

						<?php break; case "checkbox": ?>
							
							<div class="form-input w100">
								<?php if(is_array($vo['options']) || $vo['options'] instanceof \think\Collection || $vo['options'] instanceof \think\Paginator): if( count($vo['options'])==0 ) : echo "" ;else: foreach($vo['options'] as $opt_k=>$opt): ?>
									<label class="checkbox">
									   
									<input type="checkbox" name="config[<?php echo htmlentities($value); ?>][]" value="<?php echo htmlentities($opt_k); ?>" 
									<?php if(isset($vo['value'])&&in_array($opt_k,$vo['value'])): ?>checked<?php endif; ?>>	
										<?php echo htmlentities($opt); ?>
									</label>
								<?php endforeach; endif; else: echo "" ;endif; ?>
							</div>

						<?php break; case "select": ?>
							
							<div class="form-input">
								<select name="config[<?php echo htmlentities($value); ?>]">
									<?php if(is_array($vo['options']) || $vo['options'] instanceof \think\Collection || $vo['options'] instanceof \think\Paginator): if( count($vo['options'])==0 ) : echo "" ;else: foreach($vo['options'] as $opt_k=>$opt): ?>" {eq name="vo.value" value="$opt_k"> selected{/eq}><?php echo htmlentities($opt); ?></option>
									<?php endforeach; endif; else: echo "" ;endif; ?>
								</select>
							</div>

						<?php break; case "textarea": ?>
							
							<div class="form-input">
								<label class="textarea input-large">
									<textarea name="config[<?php echo htmlentities($value); ?>]"><?php echo htmlentities($vo['value']); ?></textarea>
								</label>
							</div>

						<?php break; case "group": ?>
								<div class="tab-nav nav edit_tab">
									<?php if(is_array($vo['options']) || $vo['options'] instanceof \think\Collection || $vo['options'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['options'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?>
										<li class="tab_option <?php if($i == '1'): ?>on<?php endif; ?>" ><a href="javascript:void(0);"><?php echo htmlentities($li['title']); ?></a></li>
									<?php endforeach; endif; else: echo "" ;endif; ?>
								</div>
								<div class="tab-content">
								<?php if(is_array($vo['options']) || $vo['options'] instanceof \think\Collection || $vo['options'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['options'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tab): $mod = ($i % 2 );++$i;?>
									<div id="tab<?php echo htmlentities($i); ?>" class="edit_content_tab <?php if($i > '1'): ?>none<?php endif; ?>">
										<?php if(is_array($tab['options']) || $tab['options'] instanceof \think\Collection || $tab['options'] instanceof \think\Paginator): if( count($tab['options'])==0 ) : echo "" ;else: foreach($tab['options'] as $o_tab_key=>$child): ?>
										
										<div class="form-item "> 
										   <label>	<?php echo htmlentities((isset($child['title']) && ($child['title'] !== '')?$child['title']:'')); if(isset($child['tip'])): ?>
												<span class="check-tips"><?php echo htmlentities($child['tip']); ?></span>
											<?php endif; ?></label>
										<div class="form-input">
											<?php switch($child['type']): case "text": ?>
													<input type="text" name="config[<?php echo htmlentities($o_tab_key); ?>]" class="text input-large" value="<?php echo htmlentities($child['value']); ?>">
												<?php break; case "password": ?>
													<input type="password" name="config[<?php echo htmlentities($o_tab_key); ?>]" class="text input-large" value="<?php echo htmlentities($child['value']); ?>">
												<?php break; case "hidden": ?>
													<input type="hidden" name="config[<?php echo htmlentities($o_tab_key); ?>]" value="<?php echo htmlentities($child['value']); ?>">
												<?php break; case "radio": if(is_array($child['options']) || $child['options'] instanceof \think\Collection || $child['options'] instanceof \think\Paginator): if( count($child['options'])==0 ) : echo "" ;else: foreach($child['options'] as $opt_k=>$opt): ?>
														<label class="radio">
															<input type="radio" name="config[<?php echo htmlentities($o_tab_key); ?>]" value="<?php echo htmlentities($opt_k); ?>" 
															<?php if($child['value'] == $opt_k): ?> checked<?php endif; ?>><?php echo htmlentities($opt); ?>
														</label>
													<?php endforeach; endif; else: echo "" ;endif; break; case "checkbox": if(is_array($child['options']) || $child['options'] instanceof \think\Collection || $child['options'] instanceof \think\Paginator): if( count($child['options'])==0 ) : echo "" ;else: foreach($child['options'] as $opt_k=>$opt): ?>
														<label class="checkbox">
															<?php  is_null($child["value"]) && $child["value"] = array(); ?>
															<input type="checkbox" name="config[<?php echo htmlentities($o_tab_key); ?>][]" value="<?php echo htmlentities($opt_k); ?>" 
															<?php if(in_array(($opt_k), is_array($child['value'])?$child['value']:explode(',',$child['value']))): ?>checked<?php endif; ?>><?php echo htmlentities($opt); ?>
														</label>
													<?php endforeach; endif; else: echo "" ;endif; break; case "select": ?>
													<select name="config[<?php echo htmlentities($o_tab_key); ?>]">
														<?php if(is_array($child['options']) || $child['options'] instanceof \think\Collection || $child['options'] instanceof \think\Paginator): if( count($child['options'])==0 ) : echo "" ;else: foreach($child['options'] as $opt_k=>$opt): ?>
															<option value="<?php echo htmlentities($opt_k); ?>" <?php if($child['value'] == $opt_k): ?>
															selected<?php endif; ?>><?php echo htmlentities($opt); ?></option>
														<?php endforeach; endif; else: echo "" ;endif; ?>
													</select>
												<?php break; case "textarea": ?>
													<label class="textarea input-large">
														<textarea name="config[<?php echo htmlentities($o_tab_key); ?>]"><?php echo htmlentities($child['value']); ?></textarea>
													</label>
												<?php break; ?>
												
												<?php endswitch; ?>
											</div></div>
										<?php endforeach; endif; else: echo "" ;endif; ?>
									</div>
								<?php endforeach; endif; else: echo "" ;endif; ?>
								</div>
	                        </div>
						<?php break; ?>
						<?php endswitch; ?>

					</div>
			<?php endforeach; endif; else: echo "" ;endif; ?>
		
		<?php endif; ?>
		
		
		
		                  <div class="btn_group">
						   <input type="hidden" name="id" value="<?php echo input('id'); ?>">
							<div class="confirm_btn">确认</div>
							<div class="cancel_btn">返回</div>
						    </div>
						</form> 
					</div>
				</div>
			</div>
		</div>
					
<script>
	$(".tab_option").click(function(){
					if(!$(this).hasClass("on")){
						var index = $(".tab_option").index($(this))+1;console.log(index);
						$("#tab"+index).removeClass("none").siblings(".edit_content_tab").addClass("none");
						$(this).addClass("on").siblings().removeClass("on");
					}
					
			});

</script>

	</div><!-- 尾部 -->
	
<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>
    <!-- 尾部 --> 
