📄 module_action.jsp
字号:
<%@ page contentType="text/html; charset=GBK"%>
<%@ page import="java.util.*"%>
<%@ page import="org.appfuse.model.*"%>
<%@ page import="org.appfuse.webapp.form.*"%>
<%@ page import="org.appfuse.util.*"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<SCRIPT language=JavaScript src="<%=request.getContextPath()%>/include/check.js" type="text/javascript"></SCRIPT>
<html>
<head>
<link rel=stylesheet href="<%=request.getContextPath()%>/include/style.css">
<title>动作管理</title>
<SCRIPT language="javascript">
function removeModuleAction(moduleid, actionid)
{
document.actionForm.action="<%=request.getContextPath()%>/moduleFunctionAction.do?method=removemoduleaction&moduleid=" + moduleid + "&actionid="+actionid;
document.actionForm.submit();
}
function createModuleAction(moduleid, actionid)
{
document.actionForm.action="<%=request.getContextPath()%>/moduleFunctionAction.do?method=createmoduleaction&moduleid=" + moduleid + "&actionid="+actionid;
document.actionForm.submit();
}
</SCRIPT>
</head>
<%
List actions = (List)request.getAttribute("actions");
Module module = (Module)request.getAttribute("module");
%>
<body>
<form name="actionForm" method="POST" >
<table border="1px" cellspacing="0" cellpadding="10" align=center width="80%" bgColor=#E4E8EF>
<tr>
<td width="70%">[模块名称]:<%=module.getModulename()%> [描述]:<%=module.getModuleURL()%>
</td>
<td width="30%" align="center">
<a href="<%=request.getContextPath()%>/moduleAction.do?method=list">返回</a>
</td>
</tr>
</table>
<table border="1px" cellspacing="0" cellpadding="10" align=center width="80%" bgColor=#E4E8EF>
<tr bgcolor="#76aef0">
<th width="20%"><div align="center">动作名称</div></th>
<th width="50%"><div align="center">动作描述</div></th>
<th width="30%"><div align="center">操作</div></th>
</tr>
<%
if(actions != null)
{
for(int i = 0; i< actions.size(); i++)
{
ActionEx action = (ActionEx)actions.get(i);
%>
<tr>
<td><%=action.getActionname()%></td>
<td><%=action.getDescription()%></td>
<td align="center">
<%if(action.isIsExist()){%>
<input type=checkbox onclick="removeModuleAction(<%=module.getModuleid()%>, <%=action.getActionid()%>);" checked>
<%} else {%>
<input type=checkbox onclick="createModuleAction(<%=module.getModuleid()%>, <%=action.getActionid()%>);">
<%}%>
</td>
</tr>
<%
}
}
%>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -