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

📄 availablerolescontent.jspf

📁 这是linux下ssl vpn的实现程序
💻 JSPF
字号:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ 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/explorer" prefix="explorer" %>
<%@ taglib uri="/sslexplorer/taglibs/input" prefix="input" %>

<div id="page_roles">
	<explorer:form method="post" action="/showAvailableRoles.do" onsubmit="setActionTarget('filter')">
		<html:hidden name="showAvailableRolesForm" property="_charset_"/>
		<html:hidden name="showAvailableRolesForm" property="actionTarget"/>
		<html:hidden name="showAvailableRolesForm" property="pager.startRow"/>
		<html:hidden name="showAvailableRolesForm" property="pager.sortName"/>
		<html:hidden name="showAvailableRolesForm" property="pager.sortReverse"/>
		<html:hidden name="showAvailableRolesForm" property="pager.pageSize"/>
		<div class="dialog_content">				
			<%@ include file="/WEB-INF/jsp/tiles/filter.jspf" %>	
		</div>
		<div class="filtered_resources">
			<table class="resource_table">
				<logic:equal name="showAvailableRolesForm" property="model.empty" value="true">
					<tbody>
						<tr>
							<td colspan="3" class="tableMessage">
							  	<bean:message key="availableRoles.noRoles" bundle="security"/>
							</td>
						</tr>
					</tbody>
				</logic:equal>
				<logic:equal name="showAvailableRolesForm" property="model.empty" value="false">
					<thead>
						<tr>
							<td class="role">
								<table:columnHeader pagerName="showAvailableRolesForm" pagerProperty="pager" columnIndex="0" action="showAvailableRoles" styleClass="columnHeader"><bean:message key="availableRoles.role" bundle="security"/></table:columnHeader>
							</td>
							<td class="accounts">
								<table:columnHeader pagerName="showAvailableRolesForm" pagerProperty="pager" columnIndex="1" action="showAvailableRoles" styleClass="columnHeader"><bean:message key="availableRoles.accounts" bundle="security"/></table:columnHeader>
							</td>
					  		<td class="actions">
					  			<bean:message key="availableRoles.action" bundle="security"/>
					  		</td>
						</tr>
					</thead>
					<tbody>
					<!-- Start Groups -->
						<% boolean flag = true; 
						int idx =0; %>
						<logic:iterate id="role" indexId="i" name="showAvailableRolesForm" property="pager.pageItems" type="com.sslexplorer.security.RoleItem">
							<tr class="<%= flag ? "highlight" : "lowlight" %>">
					  	  		<td class="role">
									<input:toolTip value="<%= role.getRole().getPrincipalName() %>" href="<%= "/showAvailableRoles.do?actionTarget=edit&selectedItem=" + role.getRole().getPrincipalName() %>">
								 		<bean:write name="role" property="role.principalName"/>
									</input:toolTip>
						  		</td>
					  	  		<td class="accounts">
									<logic:notEqual name="role" property="multipleAccounts" value="true">
										<bean:write name="role" property="firstAccountName" />
									</logic:notEqual>
									<logic:equal name="role" property="multipleAccounts" value="true">
										<input:toolTip text="<%= role.getFirstAccountName() + "...." %>">
											<bean:message key="availableRoles.multipleAccounts" bundle="security" />
											<logic:iterate name="role" property="accounts" id="account"><bean:write name="account" property="principalName" /><br/></logic:iterate>
										</input:toolTip>
									</logic:equal>
						  		</td>
							  	<td class="actions">
								  	<security:checkUserDatabaseSupport requiresAccountCreation="true" requiresPasswordChange="false">
								   		<tiles:insert flush="false" attribute="actionLink">
											<tiles:put name="actionName" value="remove"/>
											<tiles:put name="bundle" value="security"/>
											<tiles:put name="nameKey" value="action.deleteRole.name"/>
											<tiles:put name="descriptionKey" value="action.deleteRole.description"/>
											<tiles:put name="actionPath" value="<%= "/showAvailableRoles.do?actionTarget=confirmRoleDeletion&rolename=" + role.getRole().getPrincipalName() %>"/>
										</tiles:insert>
									</security:checkUserDatabaseSupport>			
							   		<tiles:insert flush="false" attribute="actionLink">
										<tiles:put name="actionName" value="edit"/>
										<tiles:put name="bundle" value="security"/>
										<tiles:put name="nameKey" value="action.editRole.name"/>
										<tiles:put name="descriptionKey" value="action.editRole.description"/>
										<tiles:put name="actionPath" value="<%= "/showAvailableRoles.do?actionTarget=edit&selectedItem=" + role.getRole().getPrincipalName() %>"/>
									</tiles:insert>
								</td>
							</tr>
							<% flag = !flag; %>
						</logic:iterate> 
					<!-- End Groups -->
					</tbody>
					<tfoot>			
						<tr>
							<td colspan="3">
								<div class="pager_navigation">
									<table:navigation pagerName="showAvailableRolesForm" pagerProperty="pager" styleClass="pagerEnabled" disabledStyleClass="pagerDisabled"/>
								</div>
								<div class="pager_pages">
									<table:pageSize pagerName="showAvailableRolesForm" pagerProperty="pager" styleClass="pagerEnabled"/>
								</div.
							</td>
						</tr>
					</tfoot>
				</logic:equal>
			</table>
		</div>
	</explorer:form>
</div>

⌨️ 快捷键说明

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