?? module_function.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 removeAuth(moduleid, functionid)
{
document.functionForm.action="<%=request.getContextPath()%>/authAction.do?method=removeauth&moduleid=" + moduleid + "&functionid="+functionid;
document.functionForm.submit();
}
function createAuth(moduleid, functionid)
{
document.functionForm.action="<%=request.getContextPath()%>/authAction.do?method=createauth&moduleid=" + moduleid + "&functionid="+functionid;
document.functionForm.submit();
}
</SCRIPT>
</head>
<%
List functions = (List)request.getAttribute("functions");
Module module = (Module)request.getAttribute("module");
%>
<body>
<form name="functionForm" 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(functions != null)
{
for(int i = 0; i< functions.size(); i++)
{
FunctionEx function = (FunctionEx)functions.get(i);
%>
<tr>
<td><%=function.getFunctionname()%></td>
<td><%=function.getDescription()%></td>
<td align="center">
<%if(function.isIsExist()){%>
<input type=checkbox onclick="removeAuth(<%=module.getModuleid()%>, <%=function.getFunctionid()%>);" checked>
<%} else {%>
<input type=checkbox onclick="createAuth(<%=module.getModuleid()%>, <%=function.getFunctionid()%>);">
<%}%>
</td>
</tr>
<%
}
}
%>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -