⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resourcepermissionpermissions.jspf

📁 这是linux下ssl vpn的实现程序
💻 JSPF
字号:
<%@ page import="com.sslexplorer.policyframework.PolicyConstants" %>
<%@ page import="com.sslexplorer.core.CoreServlet" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="com.sslexplorer.policyframework.ResourceType" %>
<%@ page import="com.sslexplorer.wizard.AbstractWizardSequence" %>
<%@ page import="com.sslexplorer.security.Constants" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> 
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %> 
<%@ taglib uri="http://ajaxtags.org/tags/ajax" prefix="ajax" %> 
 
 <% AbstractWizardSequence seq = (AbstractWizardSequence)request.getSession().getAttribute(Constants.WIZARD_SEQUENCE); %>			
<table class="permissions">		
	<tr class="formCombo">
		<td class="label">
			<bean:message key="resourcePermissionWizard.resourcePermissions.resourceType" bundle="policyframework"/>
		</td>
		<td class="value">		
		    <html:select styleId="resourceTypeSelector" onchange="setActionTarget('selectResourceType'); document.forms[0].submit();" property="selectedResourceType">
		    	<logic:iterate name="<%= seq.getCurrentPageForm().getPageName() + "Form" %>" property="resourceTypes" id="resourceType" type="com.sslexplorer.policyframework.ResourceType">
		    		<html:option value="<%= String.valueOf(resourceType.getResourceTypeId()) %>" key="<%= "resourceType." + resourceType.getResourceTypeId() + ".title"  %>" bundle="<%= resourceType.getBundle() %>"></html:option>
		    	</logic:iterate>
		    </html:select>
		</td>
		<td class="action"/>	
	</tr>	
	<tr class="formSelect">
		<td class="label">
			<bean:message key="resourcePermissionWizard.resourcePermissions.permissions" bundle="policyframework"/>
		</td>
		<td class="value">		
		    <html:select styleId="availablePermissions" multiple="true" size="5" property="selectedAvailablePermissions">
		    	<logic:iterate name="<%= seq.getCurrentPageForm().getPageName() + "Form" %>" property="availablePermissions" id="permission" type="com.sslexplorer.policyframework.Permission">
		    		<html:option value="<%= String.valueOf(permission.getId()) %>" key="<%= "permission." + permission.getId() + ".title"  %>" bundle="<%= permission.getBundle() %>"></html:option>
		    	</logic:iterate>
		    </html:select>
		</td>
		<td class="action">	
			<html:submit styleClass="multiAdd" onclick="setActionTarget('addSelected'); return true">
				<bean:message key="resourcePermissionWizard.resourcePermissions.addSelected" bundle="policyframework"/>
			</html:submit>
		</td>
	</tr>	
	<tr class="formSelect">
		<td class="label">
			<bean:message key="resourcePermissionWizard.resourcePermissions.selectedPermissions" bundle="policyframework"/>
		</td>
		<td class="value">		
		    <html:select styleId="selectedPermissions" multiple="true" size="5" property="selectedResourceTypePermissions">
		    	<logic:iterate name="<%= seq.getCurrentPageForm().getPageName() + "Form" %>" property="resourceTypePermissions" id="permission" type="com.sslexplorer.policyframework.ResourceTypeResourcePermission">
		    		<html:option value="<%= permission.getResourceType().getResourceTypeId() + "-" + permission.getResourcePermission().getId() %>">
		    			<bean:message key="<%= "permission." + permission.getResourcePermission().getId() + ".title" %>" bundle="<%= permission.getResourcePermission().getBundle() %>"/>&nbsp;<bean:message key="<%= "resourceType." + permission.getResourceType().getResourceTypeId() + ".title" %>" bundle="<%= permission.getResourceType().getBundle() %>"/>
		    		</html:option>
		    	</logic:iterate>
		    </html:select>
		</td>
		<td class="action">	
			<html:submit styleClass="multiRemove" onclick="setActionTarget('removeSelected'); return true">
				<bean:message key="resourcePermissionWizard.resourcePermissions.removeSelected" bundle="policyframework"/>
			</html:submit>
		</td>
	</tr>
</table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -