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

<%@ page import = "cn.com.dekn.cms.util.*,cn.com.dekn.common.util.*" %>

<%
/***********************************
* TAG参数初始化
***********************************/
//网站群节点ID
String NODE_ID = StrUtil.getNotNullStringValue(request.getParameter("NODE_ID"),"root");

//栏目的状态
String CLASS_STATE = 	ParamUtil.getStrParam(request,"CLASS_STATE","use");

//栏目的“是否显示”设置
String SHOW = 			ParamUtil.getStrParam(request,"SHOW","1");

//栏目的内容类型
String CONTENT_TYPE = 	ParamUtil.getStrParam(request,"CONTENT_TYPE","");

//从第几个栏目开始显示
String START = 			ParamUtil.getStrParam(request,"START","");

//显示多少个栏目
String PAGE_SIZE = 		ParamUtil.getStrParam(request,"PAGE_SIZE","");

//栏目类型
String CLASS_TYPE = 	ParamUtil.getStrParam(request,"CLASS_TYPE","");

/***********************************
* 显示特性参数初始化
***********************************/
//栏目文章显示页
String SELECT_ID = ParamUtil.getStrParam(request,"SELECT_ID","SEARCH_CLASS_ID"); 

//事件：当选择下拉列表时所做的处理，可以是调用JS的一个方法，或者直接是JS
String EVENT_ON_CHANGE = ParamUtil.getStrParam(request,"EVENT_ON_CHANGE",""); 

/***********************************
* CSS样式 参数初始化
***********************************/
//CSS样式
String CSS = StrUtil.getNotNullStringValue(request.getParameter("CSS"),"form_select");


%>



<select name="<%=SELECT_ID%>" class="<%=CSS%>" id="<%=SELECT_ID%>" onchange="<%=EVENT_ON_CHANGE%>">
<option selected value="all">所有栏目</option>
	<cms4j:class class_state="<%=CLASS_STATE%>" show="<%=SHOW%>" content_type="<%=CONTENT_TYPE%>" node_id="<%=NODE_ID%>" start="<%=START%>" page_size="<%=PAGE_SIZE%>" class_type="<%=CLASS_TYPE%>">
	<option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>"><%=class_info.getCLASS_NAME()%></option>
		<cms4j:class class_state="<%=CLASS_STATE%>" show="<%=SHOW%>" content_type="<%=CONTENT_TYPE%>" node_id="<%=NODE_ID%>" class_type="<%=CLASS_TYPE%>">
		<option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;<%=class_info.getCLASS_NAME()%></option>
			<cms4j:class class_state="<%=CLASS_STATE%>" show="<%=SHOW%>" content_type="<%=CONTENT_TYPE%>" node_id="<%=NODE_ID%>" class_type="<%=CLASS_TYPE%>">
			<option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;&nbsp;<%=class_info.getCLASS_NAME()%></option>
				<cms4j:class class_state="<%=CLASS_STATE%>" show="<%=SHOW%>" content_type="<%=CONTENT_TYPE%>" node_id="<%=NODE_ID%>" class_type="<%=CLASS_TYPE%>">
				<option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;&nbsp;<%=class_info.getCLASS_NAME()%></option>
					<cms4j:class class_state="<%=CLASS_STATE%>" show="<%=SHOW%>" content_type="<%=CONTENT_TYPE%>" node_id="<%=NODE_ID%>" class_type="<%=CLASS_TYPE%>">
					<option value="<%=class_info.getARTICLE_CLASS_ID()%>" id="<%=class_info.getARTICLE_CLASS_ID()%>">&nbsp;&nbsp;<%=class_info.getCLASS_NAME()%></option>
					</cms4j:class> 
				</cms4j:class> 
			</cms4j:class> 
		</cms4j:class> 
	</cms4j:class>
</select>