📄 policies.jspf
字号:
<%@ page import="com.sslexplorer.security.Constants" %>
<%@ page import="com.sslexplorer.policyframework.PolicyConstants" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="/sslexplorer/taglibs/explorer" prefix="explorer" %>
<%@ taglib uri="/sslexplorer/taglibs/table" prefix="table" %>
<%@ taglib uri="/sslexplorer/taglibs/input" prefix="input" %>
<div id="page_policies">
<tiles:useAttribute name="actionLink" scope="request" classname="java.lang.String"/>
<tiles:useAttribute name="updateAction" scope="request" classname="java.lang.String"/>
<div id="table">
<explorer:form method="post" action="<%= updateAction %>">
<html:hidden name="policiesForm" property="_charset_"/>
<html:hidden name="policiesForm" property="actionTarget"/>
<html:hidden name="policiesForm" property="selectedResource"/>
<html:hidden name="policiesForm" property="pager.startRow"/>
<html:hidden name="policiesForm" property="pager.sortName"/>
<html:hidden name="policiesForm" property="pager.sortReverse"/>
<html:hidden name="policiesForm" property="pager.pageSize"/>
<table class="resource_table">
<thead>
<tr>
<td class="name">
<table:columnHeader page="" pagerName="policiesForm" pagerProperty="pager" columnIndex="0" styleClass="columnHeader"><bean:message key="policies.name" bundle="policyframework"/></table:columnHeader>
</td>
<td class="actions">
<bean:message key="policies.actions" bundle="policyframework"/>
</td>
</tr>
</thead>
<tbody>
<% boolean highlight = false; %>
<logic:iterate id="policyItem" indexId="i" name="policiesForm" property="pager.pageItems" type="com.sslexplorer.policyframework.ResourceItem">
<tr class="<%= highlight ? "highlight" : "lowlight" %>">
<td class="name">
<input:toolTip value="<%= policyItem.getResource().getResourceDescription() %>" href="<%= "javascript: editResource('" + policyItem.getResource().getResourceId()+"');" %>">
<bean:write name="policyItem" property="resource.resourceName"/>
</input:toolTip>
</td>
<td class="actions">
<security:permission resourceType="<%= PolicyConstants.POLICY_RESOURCE_TYPE_ID %>" permissionList="<%= String.valueOf(PolicyConstants.PERM_EDIT_ID) %>">
<tiles:insert flush="false" attribute="actionLink">
<tiles:put name="actionName" value="edit"/>
<tiles:put name="bundle" value="policyframework"/>
<tiles:put name="nameKey" value="policies.edit.name"/>
<tiles:put name="descriptionKey" value="policies.edit.description"/>
<tiles:put name="actionPath" value="<%= "javascript: editResource('" + policyItem.getResource().getResourceId()+"');" %>"/>
</tiles:insert>
</security:permission>
<logic:notEqual name="policyItem" property="resource.resourceId" value="<%= String.valueOf(PolicyConstants.EVERYONE_POLICY_ID) %>">
<security:permission resourceType="<%= PolicyConstants.POLICY_RESOURCE_TYPE_ID %>" permissionList="<%= String.valueOf(PolicyConstants.PERM_DELETE_ID) %>">
<tiles:insert flush="false" attribute="actionLink">
<tiles:put name="actionName" value="remove"/>
<tiles:put name="bundle" value="policyframework"/>
<tiles:put name="nameKey" value="policies.remove.name"/>
<tiles:put name="descriptionKey" value="policies.remove.description"/>
<tiles:put name="actionPath" value="<%= "javascript: confirmRemoveResource('" + policyItem.getResource().getResourceId()+"');" %>"/>
</tiles:insert>
</security:permission>
</logic:notEqual>
</td>
</tr>
<% highlight = !highlight; %>
</logic:iterate>
<tfoot>
<tr>
<td colspan="2">
<div class="pager_navigation">
<table:navigation pagerName="policiesForm" pagerProperty="pager" styleClass="pagerEnabled" disabledStyleClass="pagerDisabled"/>
</div>
<div class="pager_pages">
<table:pageSize pagerName="policiesForm" pagerProperty="pager" styleClass="pagerEnabled"/>
</div.
</td>
</tr>
</tfoot>
</tbody>
</table>
</explorer:form>
</div>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -