<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>CMS4J </title>
<link href="../skin/blue/css/oper_area_style.css" rel="stylesheet" type="text/css">
</head>

<script src="../../js/common.js"></script>
<script src="../../js/page_init.js"></script>
<script src="js/article.js"></script>

<script>
//页面初始化
function pageInit(){
	selectInit("PARENT_ID","${param.parent}");	
}
</script>

<body  onLoad="pageInit()">
<form action="../../do?action=addArticleClass&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>" method="post" name="cms4jForm" id="cms4jForm">
  <table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
    <tr height="12"> 
      <td width="3%"><img src="../../images/admin/oper_table_up_left.gif" width="26" height="12"></td>
      <td width="92%" background="../../images/admin/oper_table_up_bg.gif" height="12"></td>
      <td width="5%"><img src="../../images/admin/oper_table_up_right.gif" width="26" height="12"></td>
    </tr>
    <tr> 
      <td colspan="3"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="5" background="../../images/admin/oper_table_left_bg.gif"><img src="../../images/admin/oper_table_left_bg.gif" width="5" height="2"></td>
            <td background="../../images/admin/oper_table_bg.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td class="title_bar">添加新栏目</td>
                </tr>
                <tr height="4"> 
                  <td height="4"></td>
                </tr>
              </table>
              
            <table width="100%" border="0" cellpadding="0" cellspacing="1" class="list_border_bg">
              <tr> 
                <td width="18%" height="22" class="list_left_title">所属栏目: </td>
                <td height="22" colspan="2" class="list_cell_bg"> 
                  <select name="PARENT_ID" class="form_select">
                    <option value="" selected>无(作为一级栏目)</option>
					<cms4j:class class_state="all"  content_type="all" node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">
						<option value="<%=class_info.getARTICLE_CLASS_ID()%>"><%=class_info.getCLASS_NAME()%></option>
						<cms4j:class class_state="all"  content_type="all">
							<option value="<%=class_info.getARTICLE_CLASS_ID()%>">　└<%=class_info.getCLASS_NAME()%></option>
							<cms4j:class class_state="all"  content_type="all">
								<option value="<%=class_info.getARTICLE_CLASS_ID()%>">　　　└<%=class_info.getCLASS_NAME()%></option>
							</cms4j:class>
						</cms4j:class>
					</cms4j:class>
                  </select>
                  <span class="text_remark">不能指定为外部栏目</span> </td>
              </tr>
              <tr>
                <td height="22" align="left" class="list_left_title">栏目名称:</td>
                <td height="22" colspan="2" class="list_cell_bg"><input name="CLASS_NAME" type="text" class="form_input" id="CLASS_NAME" size="52">
                    <span class="test_must"> *</span></td>
              </tr>
              <tr> 
                <td height="22" align="left" class="list_left_title">简　　称:</td>
                <td height="22" colspan="2" class="list_cell_bg"> <input name="CLASS_NAME2" type="text" class="form_input" id="CLASS_NAME2" size="52"></td>
              </tr>
              <tr> 
                <td height="22" align="left" class="list_left_title">栏目编号:<br>                </td>
                <td height="22" colspan="2" class="list_cell_bg"><input name="ID_TYPE" type="radio" value="radiobutton" checked onClick="displayCtrl('','customID');this.form.ARTICLE_CLASS_ID.value=''">
                  自动编号 
                  <input type="radio" name="ID_TYPE" value="radiobutton" onClick="displayCtrl('customID','');">
                  自定义编号 
                  <div style="display:none" id="customID"> 
                    <input name="ARTICLE_CLASS_ID" type="text" class="form_input" id="ARTICLE_CLASS_ID" size="16">
                    <span class="test_must"> *</span><span class="text_remark">自定义编号方便编程时调用。建议使用拼音简码，如“国际新闻”的标识可以为“gjxw” 
                    </span> </div></td>
              </tr>
              <tr> 
                <td height="22" align="left" class="list_left_title">栏目说明:</td>
                <td width="43%" height="22" class="list_cell_bg"><textarea name="CLASS_REMAKR" cols="50" rows="6" class="form_textarea" id="CLASS_REMAKR"></textarea>                </td>
                <td width="39%" class="list_cell_bg"><span class="text_remark">鼠标移至栏目名称上时将显示设定的说明文字<br>
                  （不支持HTML）</span></td>
              </tr>
              <tr>
                <td height="22" align="left" class="list_left_title">是否显示:</td>
                <td height="22" colspan="2" class="list_cell_bg"><input name="IS_SHOW" type="radio" class="form_radio" value="1" checked >
显示
  <input name="IS_SHOW" type="radio" class="form_radio" value="0" >
不显示</td>
              </tr>
              <tr>
                <td height="22" align="left" class="list_left_title">栏目内容类型:</td>
                <td height="22" colspan="2" class="list_cell_bg"><input name="CONTENT_TYPE" type="radio" value="article" checked>
文章
<input type="radio" name="CONTENT_TYPE" value="download" disabled="disabled" readonly="">
下载
<input type="radio" name="CONTENT_TYPE" value="album" disabled="disabled" readonly="">
相册
<input type="radio" name="CONTENT_TYPE" value="multimedia" disabled="disabled" readonly="">
视频
<input type="radio" name="CONTENT_TYPE" value="all_type" disabled="disabled" readonly="">
通用栏目                <span class="text_remark">同时支持所有内容，通常作为一个父栏目使用</span></td>
              </tr>
              <tr> 
                <td height="22" align="left" class="list_left_title">栏目类别:</td>
                <td height="22" colspan="2" class="list_cell_bg"><input name="CLASS_TYPE" type="radio" class="form_radio" value="article" checked  onClick="displayCtrl('inner_class_setting','outside_class_setting');">
                  系统内部栏目 
                  <input name="CLASS_TYPE" type="radio" class="form_radio" value="outside" onClick="displayCtrl('outside_class_setting','inner_class_setting');">
                  外部栏目（链接至外部网站） </td>
              </tr>
              <tr id="inner_class_setting" style="display:"> 
                <td height="22" align="left" class="list_left_title">内部栏目设置:</td>
                <td height="22" colspan="2" class="list_cell_bg"><table width="98%" border="0" cellpadding="0" cellspacing="1" class="list_border_bg">
                  <tr>
                    <td height="22" align="right" class="list_cell_bg">栏目风格页面URL：<br>                    </td>
                    <td height="22" class="list_cell_bg"><input name="CUSTOM_LINK" type="text" id="CUSTOM_LINK" size="40">
                        <br>
                        <span class="text_remark">利用此功能，可以使各栏目可以拥有不同的栏目风格、布局</span></td>
                  </tr>
                  <tr>
                    <td height="22" align="right" class="list_cell_bg">栏目页显示方式：<br>                    </td>
                    <td height="22" class="list_cell_bg"><input name="CLASS_SHOW_TYPE" type="radio" value="jsp" checked   onClick="displayCtrl('','classHTMLSettingTR');">
                      动态.jsp显示(易管理)
                      <input name="CLASS_SHOW_TYPE" type="radio" value="shtml"   onClick="displayCtrl('classHTMLSettingTR','');">
                      高级静态页显示(高性能)</td>
                  </tr>
                  <tr id="classHTMLSettingTR" style="display:none">
                    <td height="22" align="right" class="list_cell_bg"><br>
                    </td>
                    <td height="22" class="list_cell_bg"><table width="98%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="22%" align="right" class="list_cell_bg">栏目访问URL:</td>
                        <td width="78%" class="list_cell_bg"><input name="HTML_CACHE_TEMPLET_URL" type="text" id="HTML_CACHE_TEMPLET_URL" value="免费版暂不支持" size="48">
                          <br>
                          <span class="text_remark">您可以使用变量 $class_id 代表 栏目ID</span></td>
                      </tr>
                      <tr>
                        <td align="right" class="list_cell_bg">静态页存放目录:</td>
                        <td class="list_cell_bg"><input name="HTML_CACHE_BASE_SAVE_DIR" type="text" id="HTML_CACHE_BASE_SAVE_DIR" value="免费版暂不支持" size="48">
                          <br>
                          <span class="text_remark">您可以使用变量 $class_path 代表栏目的分层目录</span></td>
                      </tr>
                      <tr>
                        <td align="right" class="list_cell_bg">静态页命名规则:</td>
                        <td class="list_cell_bg"><input name="HTML_CACHE_SAVE_DIR_RULE" type="text" id="HTML_CACHE_SAVE_DIR_RULE" value="免费版暂不支持" size="48"></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td height="22" align="right" class="list_cell_bg">栏目内文章显示方式：<br>                    </td>
                    <td height="22" class="list_cell_bg"><input name="SHOW_TYPE" type="radio" value="jsp" checked>
                      动态.jsp显示(易管理)
                      <input name="SHOW_TYPE" type="radio" value="shtml"  onClick="radioGuoupInit('PURVIEW_TYPE','0')">
                      高级静态页显示(高性能)</td>
                  </tr>
                  <tr style="display:none">
                    <td height="22" align="right" class="list_cell_bg">栏目内文章显示模板：<br>                    </td>
                    <td height="22" class="list_cell_bg"><select name="TEMPLET_ID" id="TEMPLET_ID">
                        <option value="0">默认模板</option>
                      </select>
                        <br>
                        <span class="text_remark">每一个栏目都可以分别设置不同的显示方式，显示模板</span></td>
                  </tr>
                  <tr style="display:">
                    <td height="22" align="right" class="list_cell_bg">全文检索：<br>                    </td>
                    <td height="22" class="list_cell_bg"><input name="is_index" type="radio"  value="true" checked>
                      支持全文检索，也支持传统数据库查询。
                        <!-- 不再支持自定义栏目索引库
						  <span id="indexDBSelect" style="display:">并将此栏目信息,索引至
                        <select name="INDEX_DB_ID" id="INDEX_DB_ID">
                          <option selected value="">请选择</option>
                          <cms4j:search_index_db>
                            <option value="<%=index_db_info.getDB_ID()%>"><%=index_db_info.getNAME()%></option>
                          </cms4j:search_index_db>
                        </select>
                        索引库
						-->
                      </span>
                      
                      <br>
                      <input name="is_index" type="radio" value="false">
无需支持全文检索，本站将使用传统数据库查询方式检索资料 <br>
                      <span class="text_remark">全文检索可以实现Baidu、Google式高效的查询，将最符合结果的信息显现给用户</span></td></tr>
                    <tr style="display:none"> 
                      <td width="30%" height="22" align="right" class="list_cell_bg">浏览此栏目文章的条件：<br>                      </td>
                      <td width="70%" height="22" class="list_cell_bg"> <select name="RESTRICT_ID" class="form_select" id="RESTRICT_ID">
                          <cms4j:select tableName="SYS_RESTRICTS" colsName="RESTRICT_ID,REST_NAME"> 
                          <option id="@RESTRICT_ID" value="@RESTRICT_ID">@REST_NAME</option>
                          </cms4j:select> </select> </td>
                    </tr>
                    <tr style="display:none"> 
                      <td height="22" align="right" class="list_cell_bg">在此栏目发表评论的条件：</td>
                      <td height="22" class="list_cell_bg"><select name="REVIEW_RESTRICT_ID" class="form_select" id="select4">
                          <cms4j:select tableName="SYS_RESTRICTS" colsName="RESTRICT_ID,REST_NAME"> 
                          <option id="@RESTRICT_ID" value="@RESTRICT_ID">@REST_NAME</option>
                          </cms4j:select> </select></td>
                    </tr>
                    <tr style="display:none"> 
                      <td height="22" align="right" class="list_cell_bg">浏览此栏目文章的操作：</td>
                      <td height="22" class="list_cell_bg"> <select name="ACTION_ID" class="form_select" id="ACTION_ID">
                          <cms4j:select tableName="SYS_ACTIONS" colsName="ACTION_ID,ACT_NAME"> 
                          <option id="@ACTION_ID" value="@ACTION_ID">@ACT_NAME</option>
                          </cms4j:select> </select> </td>
                    </tr>
                    <tr>
                      <td height="22" align="right" class="list_cell_bg">访问权限：</td>
                      <td height="22" class="list_cell_bg"><input name="PURVIEW_TYPE" type="radio" value="0" checked>
                        公开栏目，所有人可访问
                          <input type="radio" name="PURVIEW_TYPE" value="1" onClick="radioGuoupInit('SHOW_TYPE','jsp')">
                        受控栏目，指定群体访问</td>
                    </tr>
                  </table></td>
              </tr>
              <tr id="outside_class_setting" style="display:none"> 
                <td height="22" align="left" class="list_left_title">外部栏目地址:</td>
                <td height="22" colspan="2" class="list_cell_bg"><input name="OUTSIDE_URL" type="text" class="form_input" id="OUTSIDE_URL" size="52">
                  <span class="test_must">* <span class="text_remark">可以是另一个网站的URL</span></span></td>
              </tr>
              <tr> 
                <td height="22" colspan="3" align="right" class="table_oper_tr"><input type="submit" name="Submit" value="添 加"> 
                  <input type="button" name="Submit2" value="取 消" onClick="location.href='article_class_list.jsp'"> </td>
              </tr>
            </table></td>
            <td width="5" background="../../images/admin/oper_table_right_bg.gif"><img src="../../images/admin/oper_table_right_bg.gif" width="5" height="2"></td>
          </tr>
        </table></td>
    </tr>
    <tr height="13"> 
      <td><img src="../../images/admin/oper_table_down_left.gif" width="26" height="13"></td>
      <td width="100%" height="13" background="../../images/admin/oper_table_down_bg.gif"></td>
      <td align="right"><img src="../../images/admin/oper_table_down_right.gif" width="26" height="13"></td>
    </tr>
  </table>
  <table width="717" border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td align="center">&nbsp;</td>
  </tr>
</table>
</form>
</body>
</html>
