<?php 
/**
 * ============================================================================
 * 版权所有 2020-2022 福建荣升信息技术有限公司，并保留所有权利。
 * 网站地址: http://www.fjrsweb.cn；
 * ----------------------------------------------------------------------------
 * 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和
 * 使用；不允许对程序代码以任何形式任何目的的再发布。
 * ============================================================================
*/

if(!defined('ADMIN')){
	exit('Access Denied');
}

include(ADMINTPL.'/header.tpl.php');
?>
<form action="index.php?mod=<?=MOD?>&act=<?=ACT?>" method="post" name="form1">
<table id="addeditable" border=1 cellpadding=0 cellspacing=0 bordercolor="#dddddd">
  <tr>
    <td width="115px" align="right">父栏目：</td>
    <td>&nbsp;<select name="pid" style="font-size:12px"><option value="0">--顶层栏目--</option><?php getCategorySelect($pid);?></select></td>
  </tr>
  <tr>
    <td align="right">栏目名称：</td>
    <td>&nbsp;<input name="title" type="text" id="title" value="<?=$row['title']?>"/></td>
  </tr>
  <tr>
    <td align="right">英文名称：</td>
    <td>&nbsp;<input name="etitle" type="text" id="title" value="<?=$row['etitle']?>"/></td>
  </tr>
  <tr>
    <td align="right">模块：</td>
    <td>&nbsp;<select name='model_id' class="f_cid">
     
    <? 
	$types=$duoduo->select_all("model","*","1=1 order by sort desc ,id desc");
	foreach ($types as $row2){?>
    <option value="<?=$row2['id']?>"  <? if($row2['id']==$row['model_id']) echo "selected"?>><?=$row2['title']?></option>  
	
	
	<? }?>
    </select>
    
   
   
    </td>
  </tr>
  <tr>
    <td align="right">栏目广告图：</td>
    <td>&nbsp;<input name="img_ad" type="text" id="img_ad" value="<?=$row['img_ad']?>" style="width:300px" /> <input class="sub" type="button" value="上传图片" onclick="javascript:openpic('<?=u('fun','upload',array('uploadtext'=>'img_ad','sid'=>session_id()))?>','upload','450','350')" /> 可直接添加网络地址(每个栏目广告图)</td>
  </tr>
  
  
  
  
  
  
  
  <tr>
    <td align="right">是否显示：</td>
    <?
   if (!isset($row['isshow']))
	      $row['isshow']=1;
	?>
    <td>&nbsp; <?=html_radio(array(1=>'显示',0=>'隐藏'),$row['isshow'],'isshow')?></td>
  </tr>
  
  <tr>
    <td align="right">缩略图：</td>
    <td>&nbsp;<input name="img" type="text" id="img" value="<?=$row['img']?>" style="width:300px" /> <input class="sub" type="button" value="上传图片" onclick="javascript:openpic('<?=u('fun','upload',array('uploadtext'=>'img','sid'=>session_id()))?>','upload','450','350')" /> 可直接添加网络</td>
  </tr>
  
  <tr>
    <td align="right">是否推荐：</td>
    <?
   if (!isset($row['istj']))
	      $row['istj']=1;
	?>
    <td>&nbsp; <?=html_radio(array(1=>'不推荐',2=>'推荐'),$row['istj'],'istj')?>(是否把此栏目产品内容显示在首页，如选择推荐请把缩略图和单页内容编辑完整)</td>
  </tr>
  
  
  
  
  
  
  
  
  
  
  
  <tr>
    <td align="right">url：</td>
    <td>&nbsp;<input name="url" type="text" id="sort" value="<?=$row['url']?>" style="width:500ox"/>(如果有写URL以URL链接为主)</td>
  </tr>
  
  <tr>
    <td align="right">PC端单页内容：</td>
    <td><div style="float:left">&nbsp;<textarea name="content" id="content" cols="40" rows="5" style="width:700px; height:200px;"><?=$row['content']?></textarea></div>
    </td>
  </tr>
  
  
  <tr>
    <td align="right">手机端单页内容：</td>
    <td><div style="float:left">&nbsp;<textarea name="wap_content" id="pics" cols="40" rows="5" style="width:700px; height:200px;"><?=$row['wap_content']?></textarea>(此处如果有填写，手机端单页展示就以此处内容展示，如果为空，则以PC端内空容展示)</div>
    </td>
  </tr>
  
   <script>
$(function(){
	KindEditor.options.filterMode = false;
	editor = KindEditor.create('#pics');

});

</script>


  
  
  
  <tr>
    <td align="right">排序：</td>
    <td>&nbsp;<input name="sort" type="text" id="sort" value="<?=$row['sort']?>"/></td>
  </tr>
  <tr>
    <td align="right">&nbsp;</td>
    <td>&nbsp;<input type="hidden" name="id" value="<?=$row['id']?>" /><input type="hidden" name="tag" value="<?=$mod_tag?>" /><input type="submit" class="sub" name="sub" value=" 保 存 " /></td>
  </tr>
</table>
</form>
<?php include(ADMINTPL.'/footer.tpl.php');?>