<%@ page contentType="text/html; charset=GBK" language="java" errorPage="" %>
<%@ 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 delArticleClassConfirm(){
	//如果用户选择了“取消”，则不执行操作
	if (window.confirm("您确定要删除此栏目吗？删除操作，将同时删除[所有子栏目]，以及所有子栏目内的[所有文章]，请慎重!"))
	{
		return true;
	}

	return false;
}
</script>

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

</script>
<body onLoad="pageInit()">
<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 width="24%" class="title_bar">栏目管理
                  <select name="NODE_ID" id="NODE_ID" onChange="location.href='?cluster_node_id=' + this.value">
                    <cms4j:cluster_node node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeID(request)%>">
                      <option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>"><%=cluster_node_info.getNAME()%></option>
                      <cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
                        <option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">　└<%=cluster_node_info.getNAME()%></option>
                        <cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
                          <option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">　　└<%=cluster_node_info.getNAME()%></option>
                          <cms4j:cluster_node parent_id="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">
                            <option value="<%=cluster_node_info.getCLUSTER_NODE_ID()%>">　　　└<%=cluster_node_info.getNAME()%></option>
                          </cms4j:cluster_node>
                        </cms4j:cluster_node>
                      </cms4j:cluster_node>
                    </cms4j:cluster_node>
                </select></td>
				  
                <td width="39%" align="center" class="title_bar"><input type="button" name="Submit3" value="全文检索管理" onClick="location.href='article_class_index_list.jsp?cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>'"></td>
                <td width="37%" align="right" class="title_bar"><input name="Submit2" type="button" class="form_button" value="添加一级栏目" onClick="location.href='article_class_add.jsp?cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>'">
                  <input name="Submit" type="button" class="form_button" value="栏目排序" onClick="location.href='article_class_order.jsp?cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>'"> 
                </td>
              </tr>
              <tr height="4"> 
                <td height="4" colspan="3"></td>
              </tr>
            </table>
			
			
			
            <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table_border_bg">
              <tr class="table_title"> 
                <td width="23%">栏目名称</td>
                <td width="10%">简称</td>
                <td width="8%">别名</td>
                <td width="8%">静态化</td>
                <td width="8%">内容</td>
                <td width="7%">权限类型</td>
                <td width="7%">全文检索</td>
                <td width="5%">状态</td>
                <td width="24%">操作</td>
              </tr>
              <cms4j:class class_state="all"  content_type="all"  node_id="<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>"> 
              <tr class="table_border_cell_bg"> 
                <td title="<%=class_info.getCLASS_REMARK()%>"><img src="../../images/tree_folder3.gif" width="15" height="15"><b><%=class_info.getCLASS_NAME()%></b></td>
                <td align="center"><%=class_info.getCLASS_NAME2()%></td>
                <td align="left"><%=class_info.getARTICLE_CLASS_ID()%></td>
                <td align="center">
				<%
				if(class_info.getCLASS_SHOW_TYPE().equals("shtml")){
				%>
				栏目
				<%
				}else{
				%>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<%
				}
				%>
				|
				<%
				if(class_info.getSHOW_TYPE().equals("shtml")){
				%>
				文章
				<%
				}else{
				%>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<%
				}
				%>				</td>
                <td align="center"><%=class_info.getCONTENT_TYPE2()%></td>
                <td align="center"><%=class_info.getPURVIEW_TYPE2()%></td>
                <td align="center"><%=class_info.getIsIndex2()%></td>
                <td align="center"><%=class_info.getCLASS_STATE_NAME()%></td>
                <td align="right" class="text_button">
				<% if(class_info.getSHOW_TYPE().equals("shtml")) {%>
				<a href="../../do?action=reCacheArticleCommand&type=class&operType=single&operItem=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">生成静态</a>
				<% } %>
				 <a href="article_class_add.jsp?parent=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">添加子栏目</a> <a href="article_class_modify.jsp?id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">设置</a> <a href="../../do?action=setArticleClassState&id=<%=class_info.getARTICLE_CLASS_ID()%>&state=<%=class_info.getCLASS_STATE_OPER_STATE()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>"><%=class_info.getCLASS_STATE_OPER_NAME()%></a> <a href="../../do?action=delArticleClass&id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>"  onClick="return delArticleClassConfirm()">删除</a>&nbsp;</td>
              </tr>
			  		<!--二级栏目的表现-->
				  	<cms4j:class class_state="all"  content_type="all"> 
					  <tr class="table_border_cell_bg"> 
						<td title="<%=class_info.getCLASS_REMARK()%>"><img src="../../images/tree_line1.gif" width="17" height="16"><img src="../../images/tree_folder3.gif" width="15" height="15"><%=class_info.getCLASS_NAME()%></td>
						<td align="center"><%=class_info.getCLASS_NAME2()%></td>
						<td align="left"><%=class_info.getARTICLE_CLASS_ID()%></td>
						<td align="center"><%
				if(class_info.getCLASS_SHOW_TYPE().equals("shtml")){
				%>
						  栏目
						  <%
				}else{
				%>
  &nbsp;&nbsp;&nbsp;&nbsp;
  <%
				}
				%>
						  |
  <%
				if(class_info.getSHOW_TYPE().equals("shtml")){
				%>
						  文章
  <%
				}else{
				%>
  &nbsp;&nbsp;&nbsp;&nbsp;
  <%
				}
				%>                        </td>
						<td align="center"><%=class_info.getCONTENT_TYPE2()%></td>
						<td align="center"><%=class_info.getPURVIEW_TYPE2()%></td>
						<td align="center"><%=class_info.getIsIndex2()%></td>
						<td align="center"><%=class_info.getCLASS_STATE_NAME()%></td>
						<td align="right" class="text_button"><% if(class_info.getSHOW_TYPE().equals("shtml")) {%>
                            <a href="../../do?action=reCacheArticleCommand&type=class&operType=single&operItem=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">生成静态</a>
                            <% } %>
                            <a href="article_class_add.jsp?parent=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">添加子栏目</a> <a href="article_class_modify.jsp?id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">设置</a> <a href="../../do?action=setArticleClassState&id=<%=class_info.getARTICLE_CLASS_ID()%>&state=<%=class_info.getCLASS_STATE_OPER_STATE()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>"><%=class_info.getCLASS_STATE_OPER_NAME()%></a> <a href="../../do?action=delArticleClass&id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>"  onClick="return delArticleClassConfirm()">删除</a>&nbsp;</td>
					  </tr>
				  		<!--三级栏目的表现-->
				  		<cms4j:class class_state="all"  content_type="all"> 
						  <tr class="table_border_cell_bg"> 
							
                <td title="<%=class_info.getCLASS_REMARK()%>"><img src="../../images/tree_line3.gif" width="17" height="16"><img src="../../images/tree_line2.gif" width="17" height="16"><img src="../../images/tree_folder3.gif" width="15" height="15"><%=class_info.getCLASS_NAME()%></td>
							<td align="center"><%=class_info.getCLASS_NAME2()%></td>
							<td align="left"><%=class_info.getARTICLE_CLASS_ID()%></td>
							<td align="center"><%
				if(class_info.getCLASS_SHOW_TYPE().equals("shtml")){
				%>
							  栏目
							  <%
				}else{
				%>
  &nbsp;&nbsp;&nbsp;&nbsp;
  <%
				}
				%>
							  |
  <%
				if(class_info.getSHOW_TYPE().equals("shtml")){
				%>
							  文章
  <%
				}else{
				%>
  &nbsp;&nbsp;&nbsp;&nbsp;
  <%
				}
				%>
                            </td>
							<td align="center"><%=class_info.getCONTENT_TYPE2()%></td>
							<td align="center"><%=class_info.getPURVIEW_TYPE2()%></td>
							<td align="center"><%=class_info.getIsIndex2()%></td>
							<td align="center"><%=class_info.getCLASS_STATE_NAME()%></td>
							<td align="right" class="text_button"><% if(class_info.getSHOW_TYPE().equals("shtml")) {%>
                                <a href="../../do?action=reCacheArticleCommand&type=class&operType=single&operItem=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">生成静态</a>
                                <% } %>
                                <a href="article_class_add.jsp?parent=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">添加子栏目</a> <a href="article_class_modify.jsp?id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>">设置</a> <a href="../../do?action=setArticleClassState&id=<%=class_info.getARTICLE_CLASS_ID()%>&state=<%=class_info.getCLASS_STATE_OPER_STATE()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>"><%=class_info.getCLASS_STATE_OPER_NAME()%></a> <a href="../../do?action=delArticleClass&id=<%=class_info.getARTICLE_CLASS_ID()%>&cluster_node_id=<%=cn.com.dekn.cms.security.login.CMS4JUser.getClusterNodeIDForParam(request)%>"  onClick="return delArticleClassConfirm()">删除</a>&nbsp;</td>
						  </tr>
				  		</cms4j:class> 
				  	</cms4j:class> 
			</cms4j:class> </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>
</body>
</html>
