pagerights.jsp
来自「开源项目CRM之OpenCustomer」· JSP 代码 · 共 119 行
JSP
119 行
<%-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is the OpenCustomer CRM.
-
- The Initial Developer of the Original Code is
- Thomas Bader (Bader & Jene Software-Ingenieurb黵o).
- Portions created by the Initial Developer are Copyright (C) 2005
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
- Thomas Bader <thomas.bader@bader-jene.de>
-
- ***** END LICENSE BLOCK ***** --%>
<%@ include file="/tiles/page.jsp" %>
<%@ page import="org.opencustomer.web.util.TagUtility" %>
<%@ page import="org.opencustomer.application.web.module.system.role.Constants" %>
<%@ page import="org.opencustomer.application.auth.Right" %>
<%@ page import="org.opencustomer.application.db.vo.system.RightVO" %>
<tiles:insert definition="system.role.edit">
<tiles:put name="page.content">
<html:form action="/system/role/edit/processPageRights" styleClass="default">
<html:errors/>
<div class="slider">
<html:submit property="doPageStandard"><bean:message key="domain.system.role.pageStandard"/></html:submit><%
%><html:submit property="doPageRights" disabled="true" styleClass="active"><bean:message key="domain.system.role.pageRights"/></html:submit>
</div>
<div class="tabbedPage">
<fieldset class="unit">
<table class="rights">
<colgroup>
<col width="3*"/>
<col width="1*"/>
<col width="1*"/>
<col width="2*"/>
</colgroup>
<tr>
<th><bean:message key="entity.right"/></th>
<th><bean:message key="entity.right.type.read"/></th>
<th><bean:message key="entity.right.type.write"/></th>
<th><bean:message key="entity.right.type.other"/></th>
</tr>
<logic:iterate id="area" name="<%=Constants.RIGHTAREA_KEY%>" scope="session">
<tr>
<td colspan="4" class="main"><bean:message name="area" property="namekey" scope="page"/></td>
</tr>
<logic:iterate id="group" name="area" property="rightGroups" scope="page">
<tr>
<td class="sub"><bean:message name="group" property="namekey" scope="page"/></td>
<td>
<logic:iterate id="right" name="group" property="rights" scope="page">
<logic:equal name="right" property="type" scope="page" value="<%=RightVO.Type.READ.toString()%>">
<html:multibox property="rights" value="<%=TagUtility.lookupString(pageContext, "right", "id", "page", true)%>"/>
</logic:equal>
</logic:iterate>
</td>
<td>
<logic:iterate id="right" name="group" property="rights" scope="page">
<logic:equal name="right" property="type" scope="page" value="<%=RightVO.Type.WRITE.toString()%>">
<html:multibox property="rights" value="<%=TagUtility.lookupString(pageContext, "right", "id", "page", true)%>"/>
</logic:equal>
</logic:iterate>
</td>
<td>
<logic:iterate id="right" name="group" property="rights" scope="page">
<logic:equal name="right" property="type" scope="page" value="<%=RightVO.Type.OTHER.toString()%>">
<table>
<tr>
<td style="width: 20px;">
<html:multibox property="rights" value="<%=TagUtility.lookupString(pageContext, "right", "id", "page", true)%>"/>
</td>
<td>
<bean:message name="right" property="namekey" scope="page"/>
</td>
</tr>
</table>
</logic:equal>
</logic:iterate>
</td>
</tr>
</logic:iterate>
</logic:iterate>
</table>
</fieldset>
<fieldset class="action">
<buj:authenticate right="<%=Right.ADMINISTRATION_USERMANAGEMENT_WRITE.getLabel()%>"> <%
Object id = TagUtility.lookupString(pageContext, Constants.ROLE_KEY, "id", "session", true);
if(id == null) { %>
<html:submit property="doDelete" styleClass="left" disabled="true"><bean:message key="image.button.delete.text"/></html:submit><%
} else { %>
<html:submit property="doDelete" styleClass="left"><bean:message key="image.button.delete.text"/></html:submit><%
} %>
</buj:authenticate>
<html:submit property="doCancel"><bean:message key="image.button.cancel.text"/></html:submit>
<buj:authenticate right="<%=Right.ADMINISTRATION_USERMANAGEMENT_WRITE.getLabel()%>">
<html:submit property="doSave"><bean:message key="image.button.save.text"/></html:submit>
</buj:authenticate>
</fieldset>
</div>
</html:form>
</tiles:put>
</tiles:insert>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?