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

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

<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>
//页面初始化
function pageInit(){
	selectInit("module_domain","${param.domain}");
}
</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="38%" class="title_bar">模块类别维护</td>
                <td width="20%" align="center" class="title_bar"><select name="module_domain" class="form_select"  onChange="dataFilter('domain')">
                  <option value="" selected>前台与后台模块</option>
                  <option value="domain_site">前台模块</option>
                  <option value="domain_admin">后台模块</option>
                </select></td>
                <td width="42%" align="right" class="title_bar">                <input type="button" name="Submit" value="添加新模块类别" onClick="location.href='module_type_add.jsp'"></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="2%">ID</td>
                <td width="14%">模块分类名称</td>
                <td width="23%">描述</td>
                <td width="11%" align="center">是否菜单</td>
                <td width="9%" align="center">范围</td>
                <td width="14%">所属节点</td>
                <td width="8%">状态</td>
                <td width="19%">操作</td>
              </tr>
              
			  <cms4j:module_type state="all" domain="${param.domain}">
			  <tr class="table_border_cell_bg">
               <td align="center"><%=module_type_info.getMODULE_TYPE_ID()%></td>
                <td align="left"><%=module_type_info.getMODULE_TYPE_NAME()%></td>
                <td align="left"><%=module_type_info.getMODULE_TYPE_DESC()%></td>
                <td align="center"><%=module_type_info.getIS_MENU2()%></td>
                <td align="center"><%=module_type_info.getMODULE_DOMAIN_NAME()%></td>
                <td align="center"><%=module_type_info.getNODE_ID2()%></td>
                <td align="center"><%=module_type_info.getSTATE_NAME()%></td>
                <td align="center" class="text_button"> <a href="../../do?action=orderModuleType&id=<%=module_type_info.getMODULE_TYPE_ID()%>&type=up&orderNum=<%=module_type_info.getORDER_NUM()%>">↑升</a> <a href="../../do?action=orderModuleType&id=<%=module_type_info.getMODULE_TYPE_ID()%>&type=down&orderNum=<%=module_type_info.getORDER_NUM()%>">↓降</a> <a href="module_type_modify.jsp?id=<%=module_type_info.getMODULE_TYPE_ID()%>">修改</a> <a href="../../do?action=setModuleTypeState&operItem=<%=module_type_info.getMODULE_TYPE_ID()%>&state=<%=module_type_info.getSTATE_OPER_STATE()%>"><%=module_type_info.getSTATE_OPER_NAME()%></a></td>
              </tr>
			  </cms4j:module_type>
			</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>
