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

📄 profiles.jspf

📁 这是linux下ssl vpn的实现程序
💻 JSPF
字号:
<%@ page import="com.sslexplorer.security.Constants" %>
<%@ page import="com.sslexplorer.policyframework.PolicyConstants" %>
<%@ page import="com.sslexplorer.policyframework.Permission" %>
<%@ 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/security" prefix="security" %>
<%@ taglib uri="/sslexplorer/taglibs/input" prefix="input" %>
<%@ taglib uri="/sslexplorer/taglibs/navigation" prefix="navigation" %>
<%@ taglib uri="/sslexplorer/taglibs/table" prefix="table" %>
<%@ taglib uri="/sslexplorer/taglibs/explorer" prefix="explorer" %>

<html:hidden name="profilesForm" property="selectedResource"/>
<html:hidden name="profilesForm" property="profileScope" />
<html:hidden name="profilesForm" property="actionTarget" />

<bean:define id="profilesForm" name="profilesForm" type="com.sslexplorer.properties.forms.ProfilesForm"/>
<div class="dialog_content">
	<%@ include file="/WEB-INF/jsp/tiles/filter.jspf" %>	
</div>				
<div class="filtered_resources">
	<div id="global">		
		<table class="resource_table">								
		    <thead>
	        	<tr>
					<td class="name">
						<table:columnHeader page="" pagerName="profilesForm" pagerProperty="pager" columnIndex="0" styleClass="columnHeader">
							<bean:message key="profiles.name" bundle="properties"/>
						</table:columnHeader>
					</td>
					<td class="policies">
						<table:columnHeader page="" pagerName="profilesForm" pagerProperty="pager" columnIndex="1" styleClass="columnHeader">
							<bean:message key="profiles.policies" bundle="properties"/>
						</table:columnHeader>
					</td>
					<td class="actions">
						<bean:message key="profiles.actions" bundle="properties"/>
					</td>
				</tr>
			</thead>
		    <tbody>
				<logic:equal name="profilesForm" property="pager.empty" value="true">											
					<tr class="lowlight">
				  		<td class="tableMessage" colspan="3">		   
						  	<bean:message key="profiles.noMatch" bundle="properties"/>
						</td>
					</tr>
				</logic:equal>
				<logic:equal name="profilesForm" property="pager.empty" value="false">											
			    	<% 	boolean highlight = false; %>
					<logic:iterate id="profile" name="profilesForm" property="pager.pageItems"
			                 				type="com.sslexplorer.policyframework.ResourceItem">
	       				<tr class="<%= highlight ? "highlight" : "lowlight" %>">           
							<td class="name">
								<span class="global">										
									<logic:equal name="profilesForm" property="profileScope" value="<%= Constants.SCOPE_PERSONAL %>">
										<input:toolTip value="<%= profile.getResource().getResourceDescription() %>" href="#" 
											key="action.profileProperties.description" bundle="navigation">
											<bean:write name="profile" property="resource.resourceName"/>
										</input:toolTip>
									</logic:equal>
									<logic:notEqual name="profilesForm" property="profileScope" value="<%= Constants.SCOPE_PERSONAL %>">
										<security:permission resourceType="<%= PolicyConstants.PROFILE_RESOURCE_TYPE_ID %>" permissionList="<%= String.valueOf(PolicyConstants.PERM_EDIT_AND_ASSIGN_ID) %>">
											<input:toolTip value="<%= profile.getResource().getResourceDescription() %>" href="<%= "javascript: editResource('" + profile.getResource().getResourceId()+"');" %>" 
												key="action.profileProperties.description" bundle="navigation">
												<bean:write name="profile" property="resource.resourceName"/>
											</input:toolTip>
										</security:permission>
										<security:permission required="false" resourceType="<%= PolicyConstants.PROFILE_RESOURCE_TYPE_ID %>" permissionList="<%= String.valueOf(PolicyConstants.PERM_EDIT_AND_ASSIGN_ID) %>">
											<bean:write name="profile" property="resource.resourceName"/>
										</security:permission>
									</logic:notEqual>
								</span>
							</td>
							<td class="policies">
								<logic:notEqual name="profile" property="multiplePolicies" value="true">
									<bean:write name="profile" property="firstPolicyName"/>
								</logic:notEqual>
								<logic:equal name="profile" property="multiplePolicies" value="true">									
									<input:toolTip  text="<%= profile.getFirstPolicyName() + "...." %>">
										<bean:message key="profiles.multiplePolicies" bundle="properties"/>
										<logic:iterate name="profile" property="policies" id="policy"><bean:write name="policy" property="resourceName"/><br/></logic:iterate>
									</input:toolTip>
								</logic:equal>
							</td>   
							<td class="actions">
								<security:checkManageResource permissions="<%= new Permission[] {  PolicyConstants.PERM_CREATE_EDIT_AND_ASSIGN,  PolicyConstants.PERM_EDIT_AND_ASSIGN,  PolicyConstants.PERM_CREATE_EDIT_AND_ASSIGN } %>" resource="<%= profile.getResource() %>" >
									<tiles:insert flush="false" attribute="actionLink">
										<tiles:put name="actionName" value="view"/>
										<tiles:put name="nameKey" value="action.profileProperties.name"/>
										<tiles:put name="descriptionKey" value="action.profileProperties.description"/>
										<tiles:put name="actionPath" value="<%= Constants.SCOPE_GLOBAL.equals(profilesForm.getProfileScope()) ? "/showGlobalProperties.do?selectedPropertyProfile=" + profile.getResource().getResourceId() : "/showUserProperties.do?selectedPropertyProfile=" + profile.getResource().getResourceId() %>"/>
										<tiles:put name="bundle" value="navigation"/>
									</tiles:insert>
								</security:checkManageResource>
								<navigation:inManagementConsole>
									<security:checkManageResource permissions="<%= new Permission[] {  PolicyConstants.PERM_CREATE_EDIT_AND_ASSIGN,  PolicyConstants.PERM_EDIT_AND_ASSIGN,  PolicyConstants.PERM_ASSIGN } %>" resource="<%= profile.getResource() %>" >
										<tiles:insert flush="false" attribute="actionLink">
											<tiles:put name="actionName" value="edit"/>
											<tiles:put name="bundle" value="navigation"/>
											<tiles:put name="nameKey" value="action.editProfile.name"/>
											<tiles:put name="descriptionKey" value="action.editProfile.description"/>
											<tiles:put name="actionPath" value="<%= "javascript: editResource('" + profile.getResource().getResourceId()+"');" %>"/>
										</tiles:insert>
									</security:checkManageResource>
									
									
									
								<logic:notEqual name="profile" property="resource.resourceId" value="<%= String.valueOf(0) %>">
									<security:checkManageResource permissions="<%= new Permission[] {  PolicyConstants.PERM_DELETE } %>" resource="<%= profile.getResource() %>" >
										<tiles:insert flush="false" attribute="actionLink">
											<tiles:put name="actionName" value="remove"/>
											<tiles:put name="nameKey" value="action.removeProfile.name"/>
											<tiles:put name="descriptionKey" value="action.removeProfile.description"/>
											<tiles:put name="actionPath" value="<%= "javascript: confirmRemoveResource('" + profile.getResource().getResourceId()+"');" %>"/>
											<tiles:put name="bundle" value="navigation"/>
										</tiles:insert>
									</security:checkManageResource>
								</logic:notEqual>
									
									
									
								</navigation:inManagementConsole>
							</td>
						</tr>
						<%	highlight = !highlight; %>
					</logic:iterate>
				</logic:equal>
			</tbody>
			<tfoot>			
				<tr>
					<td colspan="3">
						<div class="pager_navigation">
							<table:navigation pagerName="profilesForm" pagerProperty="pager" styleClass="pagerEnabled" disabledStyleClass="pagerDisabled"/>
						</div>
						<div class="pager_pages">
							<table:pageSize pagerName="profilesForm" pagerProperty="pager" styleClass="pagerEnabled"/>
						</div>
					</td>
				</tr>
			</tfoot>
		</table>   
	</div>
	<navigation:inUserConsole>
		<div id="personal">		
			<table class="resource_table">								
			    <thead>
			        	<tr>
							<td class="name">
								<bean:message key="profiles.name" bundle="properties"/>
							</td>
							<td class="policies">
								<bean:message key="profiles.policies" bundle="properties"/>
							</td>
							<td class="actions">
								<bean:message key="profiles.actions" bundle="properties"/>
							</td>
						</tr>
				</thead>
			    <tbody>
					<logic:empty name="profilesForm" property="personalProfileItems">
						<tr class="<%= "lowlight" %>">           
							<td class="tableMessage" colspan="3">
								<bean:message key="profiles.noPersonalProfiles" bundle="properties"/>
							</td>
						</tr>
					</logic:empty>
					<logic:notEmpty name="profilesForm" property="personalProfileItems">
				    	<% 	boolean highlight = false; %>
						<logic:iterate id="profile" name="profilesForm" property="personalProfileItems"
				                 				type="com.sslexplorer.policyframework.ResourceItem">
							<tr class="<%= highlight ? "highlight" : "lowlight" %>">           
								<td class="name">
									<span class="personal">											
										<input:toolTip value="<%= profile.getResource().getResourceDescription() %>" href="<%= Constants.SCOPE_GLOBAL.equals(profilesForm.getProfileScope()) ? "/showGlobalProperties.do?selectedPropertyProfile=" + profile.getResource().getResourceId() : "/showUserProperties.do?selectedPropertyProfile=" + profile.getResource().getResourceId() %>" 
											key="action.profileProperties.description" bundle="navigation">
											<bean:write name="profile" property="resource.resourceName"/>
										</input:toolTip>
									</span>
								</td>
								<td class="policies">						
									<bean:message key="profiles.policies.personal" bundle="properties"/>
								</td>   
								<td class="actions">						
									<security:permission resourceType="<%= PolicyConstants.PERSONAL_PROFILE_RESOURCE_TYPE_ID %>" permissionList="<%= String.valueOf(PolicyConstants.PERM_MAINTAIN_ID) %>">
										<tiles:insert flush="false" attribute="actionLink">
											<tiles:put name="actionName" value="view"/>
											<tiles:put name="nameKey" value="action.profileProperties.name"/>
											<tiles:put name="descriptionKey" value="action.profileProperties.description"/>
											<tiles:put name="actionPath" value="<%= Constants.SCOPE_GLOBAL.equals(profilesForm.getProfileScope()) ? "/showGlobalProperties.do?selectedPropertyProfile=" + profile.getResource().getResourceId() : "/showUserProperties.do?selectedPropertyProfile=" + profile.getResource().getResourceId() %>"/>
											<tiles:put name="bundle" value="navigation"/>
										</tiles:insert>
										<tiles:insert flush="false" attribute="actionLink">
											<tiles:put name="actionName" value="edit"/>
											<tiles:put name="bundle" value="navigation"/>
											<tiles:put name="nameKey" value="action.editProfile.name"/>
											<tiles:put name="descriptionKey" value="action.editProfile.description"/>
											<tiles:put name="actionPath" value="<%= "javascript: editResource('" + profile.getResource().getResourceId()+"');" %>"/>
										</tiles:insert>
										<tiles:insert flush="false" attribute="actionLink">
											<tiles:put name="actionName" value="remove"/>
											<tiles:put name="nameKey" value="action.removeProfile.name"/>
											<tiles:put name="descriptionKey" value="action.removeProfile.description"/>
											<tiles:put name="actionPath" value="<%= "javascript: removeResource('" + profile.getResource().getResourceId()+"');" %>"/>
											<tiles:put name="bundle" value="navigation"/>
										</tiles:insert>
									</security:permission>
								</td>
							</tr>
							<%	highlight = !highlight; %>
						</logic:iterate>
					</logic:notEmpty>
				</tbody>
			</table>
		</div>
	</navigation:inUserConsole>
</div>

⌨️ 快捷键说明

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