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

📄 authenticationschemescontent.jspf

📁 这是linux下ssl vpn的实现程序
💻 JSPF
字号:
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="/sslexplorer/taglibs/security" prefix="security" %>
<%@ taglib uri="/sslexplorer/taglibs/table" prefix="table" %>
<%@ taglib uri="/sslexplorer/taglibs/input" prefix="input" %>
<%@ taglib uri="/sslexplorer/taglibs/explorer" prefix="explorer" %>

<div id="page_authenticationSchemes">
	<explorer:form method="post" action="/showAuthenticationSchemes.do">
		<html:hidden property="_charset_"/>
		<html:hidden property="actionTarget"/>
		<html:hidden property="selectedResource"/>
		<table class="resource_table">
			<thead>
				<tr>
					<td class="name">
						<table:columnHeader action="/showAuthenticationSchemes.do" pagerName="authenticationSchemesForm" pagerProperty="pager" columnIndex="0" styleClass="columnHeader"><bean:message key="authenticationSchemes.name" bundle="security"/></table:columnHeader>
					</td>
			  		<td class="enabled">
						<table:columnHeader action="/showAuthenticationSchemes.do" pagerName="authenticationSchemesForm" pagerProperty="pager" columnIndex="2" styleClass="columnHeader"><bean:message key="authenticationSchemes.enabled" bundle="security"/></table:columnHeader>
			  		</td>
			  		<td class="default">
						<table:columnHeader action="/showAuthenticationSchemes.do" pagerName="authenticationSchemesForm" pagerProperty="pager" columnIndex="1" styleClass="columnHeader"><bean:message key="authenticationSchemes.default" bundle="security"/></table:columnHeader>
			  		</td>
			  		<td class="actions">
			  			<bean:message key="authenticationSchemes.actions" bundle="security"/>
			  		</td>
				</tr>
			</thead>
			<tbody>
			<!-- Start Groups -->
				<% boolean flag = true; 
				int idx =0; %>
				<logic:iterate id="item" indexId="i" name="authenticationSchemesForm" property="pager.pageItems" type="com.sslexplorer.security.AuthenticationSchemeSequenceItem">
					<tr class="<%= flag ? "highlight" : "lowlight" %>">
			  	  		<td class="name">
							<input:toolTip href="<%= "javascript: editResource('" + item.getSequence().getResourceId() + "');" %>" value="<%= item.getDescription() %>">
						 		<bean:write name="item" property="sequence.schemeName"/>
							</input:toolTip>
				  		</td>
			  	  		<td class="enabled">
			  	  			<logic:equal name="item" property="sequence.enabled" value="true">
			  					<bean:message key="authenticationSchemes.enabled.yes" bundle="security"/>
			  	  			</logic:equal>
			  	  			<logic:equal name="item" property="sequence.enabled" value="false">
			  					<bean:message key="authenticationSchemes.enabled.no" bundle="security"/>
			  	  			</logic:equal>
				  		</td>
			  	  		<td class="default">
			  	  			<logic:equal name="item" property="default" value="true">
			  					<bean:message key="authenticationSchemes.default.yes" bundle="security"/>
			  	  			</logic:equal>
			  	  			<logic:equal name="item" property="default" value="false">
			  					<bean:message key="authenticationSchemes.default.no" bundle="security"/>
			  	  			</logic:equal>
				  		</td>
					  	<td class="actions">				   		
							<explorer:blankActionFill tiles="3">
								<logic:equal name="item" property="sequence.systemScheme" value="false">
							   		<tiles:insert flush="false" attribute="actionLink">
										<tiles:put name="actionName" value="remove"/>
										<tiles:put name="bundle" value="security"/>
										<tiles:put name="nameKey" value="authenticationSchemes.remove.name"/>
										<tiles:put name="descriptionKey" value="authenticationSchemes.remove.description"/>
										<tiles:put name="actionPath" value="<%= "javascript: confirmRemoveResource('" + item.getSequence().getResourceId() + "');" %>"/>
									</tiles:insert>
							   		<tiles:insert flush="false" attribute="actionLink">
										<tiles:put name="actionName" value="edit"/>
										<tiles:put name="bundle" value="security"/>
										<tiles:put name="nameKey" value="authenticationSchemes.edit.name"/>
										<tiles:put name="descriptionKey" value="authenticationSchemes.edit.description"/>
										<tiles:put name="actionPath" value="<%= "javascript: editResource('" + item.getSequence().getResourceId() + "');" %>"/>
									</tiles:insert>
							   		<tiles:insert flush="false" attribute="actionLink">
										<tiles:put name="actionName" value="select"/>
										<tiles:put name="bundle" value="security"/>
										<tiles:put name="nameKey" value="authenticationSchemes.setAsDefault.name"/>
										<tiles:put name="descriptionKey" value="authenticationSchemes.setAsDefault.description"/>
										<tiles:put name="actionPath" value="<%= "javascript: setAsDefault('" + item.getSequence().getResourceId() + "');" %>"/>
									</tiles:insert>
								</logic:equal>
							</explorer:blankActionFill>
							<explorer:blankActionFill>
								<logic:equal name="item" property="sequence.enabled" value="false">
							   		<tiles:insert flush="false" attribute="actionLink">
										<tiles:put name="actionName" value="enable"/>
										<tiles:put name="bundle" value="security"/>
										<tiles:put name="nameKey" value="authenticationSchemes.enable.name"/>
										<tiles:put name="descriptionKey" value="authenticationSchemes.enable.description"/>
										<tiles:put name="actionPath" value="<%= "javascript: enableResource('" + item.getSequence().getResourceId() + "');" %>"/>
									</tiles:insert>
								</logic:equal>
								<logic:equal name="item" property="sequence.enabled" value="true">
							   		<tiles:insert flush="false" attribute="actionLink">
										<tiles:put name="actionName" value="disable"/>
										<tiles:put name="bundle" value="security"/>
										<tiles:put name="nameKey" value="authenticationSchemes.disable.name"/>
										<tiles:put name="descriptionKey" value="authenticationSchemes.disable.description"/>
										<tiles:put name="actionPath" value="<%= "javascript: disableResource('" + item.getSequence().getResourceId() + "');" %>"/>
									</tiles:insert>
								</logic:equal>
							</explorer:blankActionFill>
						</td>
					</tr>
					<% flag = !flag; %>
				</logic:iterate> 
			<!-- End Groups -->
			</tbody>
			<tfoot>			
				<tr>
					<td colspan="4">
						<div class="pager_navigation">
							<table:navigation pagerName="authenticationSchemesForm" pagerProperty="pager" styleClass="pagerEnabled" disabledStyleClass="pagerDisabled"/>
						</div>
						<div class="pager_pages">
							<table:pageSize pagerName="authenticationSchemesForm" pagerProperty="pager" styleClass="pagerEnabled"/>
						</div.
					</td>
				</tr>
			</tfoot>
		</table>
		<script language="JavaScript">
		
	function setAsDefault(resource) {	
	    document.forms[0].actionTarget.value='setAsDefault';     
	    document.forms[0].selectedResource.value=resource;
	    document.forms[0].submit();
	}
	
	function disableResource(resource) {	
	    document.forms[0].actionTarget.value='disable';     
	    document.forms[0].selectedResource.value=resource;
	    document.forms[0].submit();
	}
	
	function enableResource(resource) {	
	    document.forms[0].actionTarget.value='enable';     
	    document.forms[0].selectedResource.value=resource;
	    document.forms[0].submit();
	}
		</script>
	</explorer:form>
</div>

⌨️ 快捷键说明

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