<!--{php168}-->
<!--{if !P8_AJAX_REQUEST}-->
<!--{template $this_module header admin}-->
<!--{/if}-->
<script type="text/javascript" src="{$RESOURCE}/js/jq_ui.core.js"></script>
<script type="text/javascript" src="{$RESOURCE}/js/jq_tabs.js"></script>
<script type="text/javascript" src="{$RESOURCE}/js/recursive_selector.js"></script>
<script type="text/javascript" src="{$RESOURCE}/js/upload.js"></script>
<link rel="stylesheet" href="{$SKIN}/{$SYSTEM}/category_selector.css" type="text/css" />
<form action="$this_url" method="post" id="form"{if P8_AJAX_REQUEST} target="poster"{/if}>
<div class="mainbox mainborder">
<div class="section">
<table border="0" cellspacing="0" cellpadding="0" class="formtable">
<tr>
<td class="title">{$P8LANG['update_cms_category']}</td>
</tr>
<tr>
<td id="tabs">
<ul>
<li><a href="#tabs-1"> <span>{$P8LANG['cms_config']}</span> </a></li>
<li><a href="#tabs-2"> <span>{$P8LANG['cms_config_style']}</span> </a></li>
<li><a href="#tabs-3"> <span>{$P8LANG['cms_config_authority']}</span> </a></li>
<li><a href="#tabs-4"> <span>{$P8LANG['cms_config_other']}</span> </a></li>
</ul>
<div id="tabs-1">
<table class="columntable formtable hover_table">
<tr>
<td class="tdL">{$P8LANG['cms_category_name']}</td>
<td class="tdR">
<!--{if $ACTION == 'update'}-->
<input type="text" class="txt" id="name" name="name" value="{if isset($data['name'])}$data[name]{/if}" />
<!--{else}-->
<textarea id="name" name="name" cols="30" rows="5"></textarea>
<span class="help">栏目添加说明:单个栏目添加: 一行输入一个栏目名称即可;批量栏目一次添加:每个栏目名称换一行即可;</span>
<!--{/if}-->
</td>
</tr>
<tr>
<td class="tdL">{$P8LANG['cms_category_type']}</td>
<td class="tdR">
<input name="type" id="type_1" type="radio" value="1"{if !empty($data['type']) && $data['type'] == 1} checked{/if} onclick="showoutlink(1)"/>
<label for="type_1">{$P8LANG['cms_category_type_1']}</label>
<input name="type" id="type_2" type="radio" value="2"{if !empty($data['type']) && $data['type'] == 2} checked{/if} onclick="showoutlink(2)"/>
<label for="type_2">{$P8LANG['cms_category_type_2']}</label>
<input name="type" id="type_4" type="radio" value="4"{if !empty($data['type']) && $data['type'] == 4} checked{/if} onclick="showoutlink(2)"/>
<label for="type_4">{$P8LANG['cms_category_type_4']}</label>
<input name="type" id="type_3" type="radio" value="3"{if !empty($data['type']) && $data['type'] == 3} checked{/if} onclick="showoutlink(3)"/>
<label for="type_3">{$P8LANG['cms_category_type_3']}</label>
<span class="help">栏目类型说明:下面还有子栏目的就选“大分类” ;下面没有更小子栏目的就选“栏目”;如果一个栏目就是一篇内容就选“单网页”;如果点击栏目跳转到另外网址就选“外链”;</span>
</td>
</tr>
<tr>
<td class="tdL">{$P8LANG['cms_parent_category']}</td>
<td class="tdR">
<span id="parents"></span>
<input type="button" value="选择栏目.." onclick="dialog.show()" />
<input type="hidden" name="parent" value="{if isset($data['parent'])}$data[parent]{/if}" />
<input type="hidden" id="parent" />
</td>
</tr>
<tr id="category_outlink">
<td class="tdL">{$P8LANG['cms_category_outlink']}</td>
<td class="tdR">
<input type="text" class="txt" name="url" id="outlink" value="{if !empty($data['url'])}$data[url]{/if}" size="50"/>
打开窗口:
<input type="radio" name="config[target]" value="_self" {if !empty($config['target']) && $config['target']=='_self'} checked{/if}/> 本窗口
<input type="radio" name="config[target]" value="_blank" {if empty($config['target']) || $config['target']=='_blank'} checked{/if}/> 新开窗口
</td>
</tr>
<tbody id="category_model">
<tr>
<td class="tdL">{$P8LANG['cms_category_model']}</td>
<td class="tdR">
<select name="model" id="model" onchange="change_model(this.value)">
<!--{foreach $models $mod $v}-->
<option value="$mod"{if !empty($data['model']) && $data['model'] == $mod}selected{/if}>$v[alias]
</option>
<!--{/foreach}-->
</select>
<span class="help">栏目所属模型说明:一般选择“文章”模型,他可以发布文章图片视频和外链;一个栏目一篇内容选择“单网页”;专门展示大图片切换效果的选“图片”模型;专门的视频效果页面选择“视频”模型;</span>
</td>
</tr>
<tr id="all_model">
<td class="tdL">列表页是否显示所有内容</td>
<td class="tdR"><input type="radio" name="list_all_model" value="0" {if empty($data['list_all_model'])}checked{/if}/> 否 <input type="radio" name="list_all_model" value="1" {if !empty($data['list_all_model'])}checked{/if}/> 是<span class="help">实现大分类可分页,要配合模板使用</span>
</td>
</tr>
<tr>
<td class="tdL">每页内容数量</td>
<td class="tdR"><input type="text" class="txt" name="page_size" value="{if !empty($data['page_size'])}{$data['page_size']}{else}30{/if}" size="4" /> 条
</td>
</tr>
<tr>
<td class="tdL">排序</td>
<td class="tdR"><input type="text" class="txt" name="display_order" value="{if !empty($data['display_order'])}{$data['display_order']}{else}0{/if}" size="4" />
</td>
</tr>
<tr>
<td class="tdL">是否显示</td>
<td class="tdR">
<input name="config[enable_show]" type="radio" value="0"{if empty($config['enable_show'])} checked{/if}/>
<label for="enable_show_1">显示</label>
<input name="config[enable_show]" type="radio" value="1"{if !empty($config['enable_show'])} checked{/if}/>
<label for="enable_show_2">不显示</label>
</td>
</tr>
<!--{if $ACTION == 'update'}-->
<tr>
<td class="tdL">{$P8LANG['cms_category_content_orderby']}</td>
<td class="tdR">
<select name="config[orderby]">
<!--{foreach $order_fields $name $v}-->
<option value="$name"{if !empty($config['orderby']) && $config['orderby'] == $name} selected{/if}>$v</option>
<!--{/foreach}-->
</select>
<input type="radio" name="config[orderby_desc]" value="0"{if empty($config['orderby_desc'])} checked{/if} />降序
<input type="radio" name="config[orderby_desc]" value="1"{if !empty($config['orderby_desc'])} checked{/if} />升序
</td>
</tr>
<!--{/if}-->
<!--
<tr>
<td class="tdL">栏目管理员</td>
<td class="tdR">
<input type="text" name="config[administrator]" value="{if !empty($config['administrator'])}$config[administrator]{/if}" size="80" />
</td>
</tr>
<tr>
<td class="tdL">{$P8LANG['cms_category_Commentable']}</td>
<td class="tdR"><input name="allowcomment" type="radio" value="1" checked="checked"/>
{$P8LANG['cms_category_Comments_open']}
<input name="allowcomment" type="radio" value="0" />
{$P8LANG['cms_category_Comments_close']} </td>
</tr>
-->
<tr>
<td class="tdL">{$P8LANG['cms_category_list_title_length']}</td>
<td class="tdR">
PC版:<input type="text" class="txt" name="config[list_title_length]" value="{if !empty($config['list_title_length'])}$config[list_title_length]{else}120{/if}" size="5" />
移动版:<input type="text" class="txt" name="config[list_ti