📄 resource_list.jsp
字号:
<%@ 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>
<script src="js/resource.js"></script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>CMS4J </title>
<link href="../skin/blue/css/oper_area.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE4 {font-size: 13px}
-->
</style>
</head>
<script>
//页面初始化
function pageInit(){
selectInit("module_list","${param.module}");
selectInit("type_list","${param.type}");
selectInit("scope_list","${param.scope}");
selectInit("oper_type_list","${param.oper}");
selectInit("module_domain","${param.domain}");
}
</script>
<body onLoad="pageInit()">
<form action="" method="post" name="cms4j">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="title-bar"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="26" class="title-bar-title-icon"> </td>
<td width="745" class="title-bar-text">资源维护</td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="oper-bar">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="28%" align="left" class="title_bar"><select name="module_list" class="form_select" id="module_list" onChange="module_filter()">
<option selected>所有模块</option>
<cms4j:module>
<option value="<%=module_info.getMODULE_ID()%>">└<%=module_info.getMODULE_NAME()%></option>
<cms4j:module parent_module_id="<%=module_info.getMODULE_ID()%>">
<option value="<%=module_info.getMODULE_ID()%>"> └<%=module_info.getMODULE_NAME()%></option>
<cms4j:module parent_module_id="<%=module_info.getMODULE_ID()%>">
<option value="<%=module_info.getMODULE_ID()%>"> └<%=module_info.getMODULE_NAME()%></option>
<cms4j:module parent_module_id="<%=module_info.getMODULE_ID()%>">
<option value="<%=module_info.getMODULE_ID()%>"> └<%=module_info.getMODULE_NAME()%></option>
</cms4j:module>
</cms4j:module>
</cms4j:module>
</cms4j:module>
</select></td>
<td width="49%" align="center" class="title_bar"><select name="type_list" class="form_select" id="type_list" onChange="type_filter()">
<option value="" selected>所有类别</option>
<option value="type_menu">菜单</option>
<option value="type_common">普通</option>
</sclect>
</select>
<select name="scope_list" class="form_select" id="scope_list" onChange="scope_filter()">
<option value="" selected>所有来源</option>
<option value="scope_inside">CMS4J</option>
<option value="scope_outside">外部链接</option>
</select>
<select name="oper_type_list" class="form_select" id="oper_type_list" onChange="oper_filter()">
<option value="" selected>操作类型</option>
<option value="oper_type_execute">执行命令</option>
<option value="oper_type_list">列表页</option>
<option value="oper_type_oper">操作页</option>
</select>
<select name="module_domain" class="form_select" onChange="dataFilter('domain')">
<option value="">所有域</option>
<option value="domain_site">前台</option>
<option value="domain_admin">后台</option>
</select></td>
<td width="23%" align="left" class="title_bar"><input name="Submit" type="button" class="form-buttun" onClick="location.href='resource_add.jsp'" value="添加新资源"></td>
</tr>
<tr height="4">
<td height="4" colspan="3"></td>
</tr>
</table></td>
</tr>
</table>
<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="1700" border="0" cellpadding="0" cellspacing="0" class="table-frame">
<tr class="table_title">
<td width="10%" class="table-titlebar">操作</td>
<td width="5%" align="center" class="table-titlebar">ID</td>
<td width="14%" class="table-titlebar">资源名称</td>
<td width="8%" align="center" class="table-titlebar">所属模块</td>
<td width="4%" align="center" class="table-titlebar">域</td>
<td width="4%" align="center" class="table-titlebar">类型</td>
<td width="5%" class="table-titlebar">来源</td>
<td width="5%" class="table-titlebar">状态</td>
<td width="15%" class="table-titlebar">ACTION</td>
<td width="30%" class="table-titlebar">资源实现类</td>
</tr>
<cms4j:resource state="all" module="${param.module}" type="${param.type}" scope="${param.scope}" oper="${param.oper}" domain="${param.domain}">
<tr class="table_border_cell_bg">
<td align="center" class="table-cell"><a href="../../do?action=orderRes&id=<%=res_info.getRES_ID()%>&type=up&orderNum=<%=res_info.getORDER_NUM()%>">↑升</a> <a href="../../do?action=orderRes&id=<%=res_info.getRES_ID()%>&type=down&orderNum=<%=res_info.getORDER_NUM()%>">↓降</a> <a href="resource_modify.jsp?id=<%=res_info.getRES_ID()%>">改</a> <a href="../../do?action=delRes&delItem=<%=res_info.getRES_ID()%>">删</a> <a href="../../do?action=setResState&operItem=<%=res_info.getRES_ID()%>&state=<%=res_info.getSTATE_OPER_STATE()%>"><%=res_info.getSTATE_OPER_NAME()%></a></td>
<td align="center" class="table-cell"><%=res_info.getRES_ID()%></td>
<td align="left" class="table-cell"><%=res_info.getNAME()%> [<%=res_info.getRES_OPER_TYPE_NAME()%>]</td>
<td align="center" class="table-cell"><%=res_info.getMODULE_ID_NAME()%></td>
<td align="center" class="table-cell"><%=res_info.getMODULE_DOMAIN_NAME()%></td>
<td align="center" class="table-cell"><%=res_info.getRES_TYPE_NAME()%></td>
<td align="center" class="table-cell"><%=res_info.getRES_SOURCE_TYPE_NAME()%></td>
<td align="center" class="table-cell"><%=res_info.getSTATE_NAME()%></td>
<td align="left" class="table-cell"><%=res_info.getRES_ACTION_2()%></td>
<td align="left" class="table-cell"><%=res_info.getCOMMAND()%></td>
</tr>
</cms4j:resource>
</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>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -