<?php /*a:4:{s:82:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\admin\view\goods\edit.html";i:1581681956;s:86:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\admin\view\public\sidebar.html";i:1589425023;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:"")); ?>|yershop后台管理</title>
   <link rel="stylesheet" href="/im/public/common/font.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">
			<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="tree" style="">
			<!--a  href="<?php echo url('goods/index'); ?>" class="list"  href="<?php echo htmlentities($vo['url']); ?>">全部商品</a-->
			<?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="title">
<span class="icon iconfont icon-shuxing-" data-id="<?php echo htmlentities($vo['id']); ?>"></span><a  class="one"  href="<?php echo htmlentities($vo['url']); ?>"><?php echo htmlentities($vo['title']); ?></a>
</div>
<div class="child" id="<?php echo htmlentities($vo['id']); ?>" >
<?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="two item"><span  data-id="<?php echo htmlentities($vo1['id']); ?>"class="icon iconfont icon-shuxing-"></span>
<a    href="<?php echo htmlentities($vo1['url']); ?>">
<?php echo htmlentities($vo1['title']); ?></a>
</div>
<div id="<?php echo htmlentities($vo1['id']); ?>" >
<?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;?>
<div class="three item">
<span class="icon iconfont icon-shuxing-"></span><a class="three" id="<?php echo htmlentities($vo1['id']); ?>"href="<?php echo htmlentities($vo2['url']); ?>"><?php echo htmlentities($vo2['title']); ?></a></div>

<?php endforeach; endif; else: echo "" ;endif; ?></div>
<?php endforeach; endif; else: echo "" ;endif; ?>
</div>
<?php endforeach; endif; else: echo "" ;endif; ?>
		      
	    </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'); ?>";
			}

          $(".icon").click(function(){
                 var id=$(this).attr("data-id");
				  $("#"+id).toggle();
				if($(this).hasClass('icon iconfont icon-shuxing-')){
				console.log(1);
				   $(this).attr("class","icon iconfont icon-tree-add")
				}else{
				  $(this).attr("class","icon iconfont icon-shuxing-")
				}
          });		
       </script>		 
	
	<script type="text/javascript" src="/im/public/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 class="tab_option">商品属性</div>
						<div class="tab_option">积分</div>
                        <div class="tab_option">拼团</div>
						<div class="tab_option">限时抢购/预约</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> 
												
													<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 class="form-item">
									    <label>内容<span>(详细内容)</span></label>
										<div class="form-input w100">
												<textarea class="am-validate" id="content" name="content" required><?php echo htmlentities((isset($info['content']) && ($info['content'] !== '')?$info['content']:"")); ?></textarea>	
												<link rel="stylesheet" href="/im/public/common/kindeditor/default/default.css" />
												<script charset="utf-8" src="/im/public/common/kindeditor/kindeditor-min.js"></script>
												<script charset="utf-8" src="/im/public/common/kindeditor/zh_CN.js"></script>
												<script type="text/javascript">
													var editor_content;
													KindEditor.ready(function(K) {
														editor_content = K.create('textarea[name="content"]', {
															allowFileManager : false,
															themesPath: K.basePath,
															width: '90%',
															height: '350',
															resizeType:1,
															pasteType : 2,
															urlType : 'absolute',
															fileManagerJson : '<?php echo url('fileManagerJson'); ?>',
															uploadJson : '<?php echo url("Uploads/ke_upimg"); ?>'
														});
													});

													$(function(){
														$('textarea[name="content"]').closest('form').submit(function(){
															editor_content.sync();
														});
													})
											    </script> 
										</div>
                                   </div>

                                    <div class="form-item">
										 <label>价格<span>(商品价格)</span></label>
										 <div class="form-input">
										      <input type="text" name="price" value="<?php echo htmlentities((isset($info['price']) && ($info['price'] !== '')?$info['price']:'')); ?>">
										 </div>
									 </div>

						            <div class="form-item">
										<label>库存数量<span>(库存)</span></label>
										<div class="form-input">
											 <input type="text" name="num" value="<?php echo htmlentities((isset($info['num']) && ($info['num'] !== '')?$info['num']:'')); ?>">
										</div>
							        </div>
							
							    <div class="form-item">
									<label>品牌<span>(商品品牌)</span></label>
									<div class="form-input">
										 <select name="brand_id" class="input_box types" > 
										   <option value="0">无</option> 
										   <?php if(is_array($brandlist) || $brandlist instanceof \think\Collection || $brandlist instanceof \think\Paginator): $i = 0; $__LIST__ = $brandlist;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>店铺id<span>(商品运费)</span></label>
										 <div class="form-input">
										      <input type="text" name="shop_id" value="<?php echo htmlentities((isset($info['shop_id']) && ($info['shop_id'] !== '')?$info['shop_id']:'')); ?>">
										 </div>
							  </div>
                             <div class="form-item">
										 <label>运费<span>(商品运费)</span></label>
										 <div class="form-input">
										      <input type="text" name="spress" value="<?php echo htmlentities((isset($info['spress']) && ($info['spress'] !== '')?$info['spress']:'')); ?>">
										 </div>
							  </div>

							    <div class="form-item">
									<label>包邮<span>(是否包邮)</span></label>
									<div class="form-input">
									    <select name="baoyou" class="input_box types"  onchange="show(this)">
								          
									    <option value="1">是</option>  
										<option value="0">否</option>
									</select>
							        </div>      
                                </div>
	  
						</div>
 <!-------------------------------- 扩展信息 --------------------------------------------------------------------------->
						<div class="edit_content_tab none">
								  <div id="navtab1" style="width: 100%;">
									<div title="扩展信息" tabid="tabItem3">
										<div id="Div1">
											<div position="center">
												<div style="padding: 5px 8px;" class="div_content">
													<div class="div_title"><span>产品规格</span></div>
													<div class="div_contentlist">
													  <?php if(is_array($specslist) || $specslist instanceof \think\Collection || $specslist instanceof \think\Paginator): $k = 0; $__LIST__ = $specslist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>
													   <ul class="Father_Title"><li><?php echo htmlentities($vo['title']); ?></li></ul>
														<ul class="Father_Item<?php echo htmlentities($k-1); ?>">
															<?php if(is_array($vo['data']) || $vo['data'] instanceof \think\Collection || $vo['data'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['data'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?>
															<li><label><input id="<?php echo htmlentities($vo1['title']); ?>" attr-id="<?php echo htmlentities($vo1['id']); ?>" type="checkbox" class="specs" name="specs[]" value="<?php echo htmlentities($vo1['title']); ?>"><?php echo htmlentities($vo1['title']); ?><span class="li_empty" contenteditable="true"></span></label></li>
															  <?php endforeach; endif; else: echo "" ;endif; ?>
														</ul> <br>
													 <?php endforeach; endif; else: echo "" ;endif; ?>
													   
														<br>
													</div>
													<div class="div_contentlist2">
														<ul>
															<li><div id="createTable"></div></li>
														</ul>
													   
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
								<script>
								var json=<?php echo json_encode($sku); ?>;
								</script>
							    <script type="text/javascript" src="/im/public/admin/js/guige.js"></script>          
						</div>

 <!-------------------------------- 属性信息 --------------------------------------------------------------------------->
						 <div class="edit_content_tab none">
						 	<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $k = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?>
							   <h5><input   class="attrs" type="checkbox" name="attrs[]"  value="<?php echo htmlentities((isset($vo['id']) && ($vo['id'] !== '')?$vo['id']:"")); ?>"/>
					            <?php echo htmlentities($k); ?>-<?php echo htmlentities($vo['title']); ?></h5>
							       <?php if(is_array($vo['list']) || $vo['list'] instanceof \think\Collection || $vo['list'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?>
							        <span class="cid">
							             <input class="attributes" type="radio" name="attributes[<?php echo htmlentities($vo['id']); ?>]"  value="<?php echo htmlentities((isset($vo1['id']) && ($vo1['id'] !== '')?$vo1['id']:"")); ?>"/><?php echo htmlentities($vo1['title']); ?> 
						            </span>
				
							       <?php endforeach; endif; else: echo "" ;endif; ?>
							<?php endforeach; endif; else: echo "" ;endif; ?>
				       </div>
 <div class="edit_content_tab none">
                             
							 <div class="form-item">
										 <label>积分<span>(积分价格)</span></label>
										 <div class="form-input">
										      <input type="text" name="reduction_id" value="<?php echo htmlentities((isset($info['reduction_id']) && ($info['reduction_id'] !== '')?$info['reduction_id']:'')); ?>">
										 </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="pin_price" value="<?php echo htmlentities((isset($info['pin_price']) && ($info['pin_price'] !== '')?$info['pin_price']:'')); ?>">
										 </div>
							  </div>

						    <div class="form-item">
									<label>拼团人数<span>(拼团最大人数)</span></label>
									<div class="form-input">
									    <input type="text" name="pin_max_num" value="<?php echo htmlentities((isset($info['pin_max_num']) && ($info['pin_max_num'] !== '')?$info['pin_max_num']:"")); ?>"/>
									</div>
							 </div>
	 </div>

 <!-----------------------------------------------其他信息 --------------------------------------------------------------------------->

						 <div class="edit_content_tab none">
                             
							 <div class="form-item">
										 <label>满减优惠id<span>(满减优惠id)</span></label>
										 <div class="form-input">
										      <input type="text" name="reduction_id" value="<?php echo htmlentities((isset($info['reduction_id']) && ($info['reduction_id'] !== '')?$info['reduction_id']:'')); ?>">
										 </div>
							  </div>
						    <div class="form-item">
									<label>排序<span>(越小越靠前)</span></label>
									<div class="form-input">
									    <input type="text" name="sort" class="input_box" 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="start_time" id="start_time" class="laydate-icon"
									    value="<?php if(!(empty($info['id']) || (($info['id'] instanceof \think\Collection || $info['id'] instanceof \think\Paginator ) && $info['id']->isEmpty()))): ?><?php echo htmlentities(time_format($info['start_time'])); ?><?php endif; ?>"/>
									    <script type="text/javascript" src="/im/public/common/laydate/laydate.js"></script>		
										<script>
											laydate({
											  elem: '#start_time',
											  format: 'YYYY-MM-DD hh:mm:ss', 
											  min: laydate.now(), //设定最小日期为当前日期//目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
											  event: 'focus' //响应事件。如果没有传入event，则按照默认的click
											});
										</script>
									</div>
							   </div>

						       <div class="form-item">
									<label>结束时间<span>(秒杀或抢购结束时间)</span></label>
									<div class="form-input">
										<input type="text" name="end_time" id="end_time" class="laydate-icon" value="<?php if(!(empty($info['end_time']) || (($info['end_time'] instanceof \think\Collection || $info['end_time'] instanceof \think\Paginator ) && $info['end_time']->isEmpty()))): ?><?php echo htmlentities(time_format($info['end_time'])); ?><?php endif; ?>"/>				
											<script>
											laydate({
											  elem: '#end_time', 
											  format: 'YYYY-MM-DD hh:mm:ss', 
											//设定最小日期为当前日期//目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
											  event: 'focus' //响应事件。如果没有传入event，则按照默认的click
											});
											</script>
									</div>
							  </div>

                             <div class="form-item">
									<label>创建时间<span>(创建时间)</span></label>
									<div class="form-input">
										<input type="text" name="create_time" id="create_time" class="laydate-icon"
									   value="<?php if(!(empty($info['id']) || (($info['id'] instanceof \think\Collection || $info['id'] instanceof \think\Paginator ) && $info['id']->isEmpty()))): ?><?php echo htmlentities(time_format($info['create_time'])); ?><?php endif; ?>"/>
										<script>
										laydate({
										  elem: '#create_time',
										  format: 'YYYY-MM-DD hh:mm:ss', 
										  min: laydate.now(), //设定最小日期为当前日期//目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
										  event: 'focus' //响应事件。如果没有传入event，则按照默认的click
										});
										</script>
									</div>
							  </div>

						     <div class="form-item">
									<label>更新时间<span>(更新时间)</span></label>
									<div class="form-input">
									    <input type="text" name="update_time" id="update_time" class="laydate-icon" value="<?php if(!(empty($info['update_time']) || (($info['update_time'] instanceof \think\Collection || $info['update_time'] instanceof \think\Paginator ) && $info['update_time']->isEmpty()))): ?><?php echo htmlentities(time_format($info['update_time'])); ?><?php endif; ?>"/>
												
									    <script>
										laydate({
										  elem: '#update_time', 
										  format: 'YYYY-MM-DD hh:mm:ss', 
										  min: laydate.now(), //设定最小日期为当前日期//目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
										  event: 'focus' //响应事件。如果没有传入event，则按照默认的click
										});
									    </script>
								    </div>
							</div>

							
                  </div>
 <!-----------------------------------------------相册 --------------------------------------------------------------------------->	
			     <div class="edit_content_tab none">
                              
							  <div class="form-item">
									<label>相册<span>(图片)</span></label>
									<input type="hidden" name="covers"  value="<?php echo htmlentities((isset($info['covers']) && ($info['covers'] !== '')?$info['covers']:"")); ?>"	>
									
											<a id="covers" href="javascript:void(0);" class='btn_upload'>
													<input type="file" name="file" class='file' id="covers" style=""/>选择文件
													</a>
									
									  <div class="upload_preview">
											    <?php if(!(empty($info['covers']) || (($info['covers'] instanceof \think\Collection || $info['covers'] instanceof \think\Paginator ) && $info['covers']->isEmpty()))): $list=explode(",",$info['covers']); if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): if( count($list)==0 ) : echo "" ;else: foreach($list as $key=>$vo): ?>  
												<div class="upload-pre-item"> <img src="<?php echo htmlentities(get_cover_path($vo)); ?>" data-id="<?php echo htmlentities($vo); ?>"/>
												   <span class="close"  onclick="delimage(this,'covers');"></span>
											 	</div>
												 <?php endforeach; endif; else: echo "" ;endif; ?>	
												<?php endif; ?> 
									   </div>
									 <script type="text/javascript">  
								             var field="covers";
						     	             uploads(field);
                                       </script>
							</div>

				    </div>	
						<div class="btn_group"> 
						    <input type="hidden" name="category_id" value="<?php echo htmlentities((isset($info['category_id']) && ($info['category_id'] !== '')?$info['category_id']:"")); ?>">
						    <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='brand_id']").val("<?php echo htmlentities((isset($info['brand_id']) && ($info['brand_id'] !== '')?$info['brand_id']:'')); ?>");
		 $("select[name='has']").val("<?php echo htmlentities((isset($info['has']) && ($info['has'] !== '')?$info['has']:'')); ?>");
		 $("select[name='baoyou']").val("<?php echo htmlentities((isset($info['baoyou']) && ($info['baoyou'] !== '')?$info['baoyou']:'')); ?>");
		 $("select[name='position']").val("<?php echo htmlentities((isset($info['position']) && ($info['position'] !== '')?$info['position']:'0')); ?>");
		 var group = [<?php echo htmlentities((isset($info['attrs']) && ($info['attrs'] !== '')?$info['attrs']:'')); ?>];
			$('.attrs').each(function(){
				if( $.inArray( parseInt(this.value,10),group )>-1 ){
					$(this).prop('checked',true);
				}
		});
		 var attributes = [<?php echo htmlentities((isset($info['attributes']) && ($info['attributes'] !== '')?$info['attributes']:'')); ?>];
		$('.attributes').each(function(){
				if( $.inArray( parseInt(this.value,10),attributes )>-1 ){
					$(this).prop('checked',true);
				}
		});
		$(function(){
			var specs ="<?php echo htmlentities((isset($info['specs']) && ($info['specs'] !== '')?$info['specs']:'')); ?>";
			$('.specs').each(function(){
				if( specs.indexOf(this.value)>=0){
				   $(this).prop('checked',true);
				}
			});
			if(specs){
			 $(".div_contentlist label").change();
		   }
		});
		$(".tab_option").click(function(){
					if(!$(this).hasClass("on")){
						var index = $(".tab_option").index($(this));
						$($(".edit_content_tab").get(index)).removeClass("none").siblings(".edit_content_tab").addClass("none");
						$(this).addClass("on").siblings().removeClass("on");
					}
					
		});
				
	</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>
<!-- 头部 --> 
