📄 tunnelcontent.jspf
字号:
<%@ page import="com.sslexplorer.security.Constants"%>
<%@ 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="/sslexplorer/taglibs/explorer" prefix="explorer"%>
<%@ taglib uri="/sslexplorer/taglibs/navigation" prefix="navigation"%>
<%@ taglib uri="/sslexplorer/taglibs/security" prefix="security"%>
<%@ taglib uri="/sslexplorer/taglibs/input" prefix="input"%>
<%@ taglib uri="/sslexplorer/taglibs/tabs" prefix="tabs"%>
<div id="page_tunnel" class="tabbedForm">
<html:form action="/editTunnel.do">
<html:hidden property="referer" />
<html:hidden property="actionTarget" />
<html:hidden property="_charset_" />
<html:hidden property="editing" />
<html:hidden property="resourceId" />
<html:hidden property="selectedTab" />
<tabs:tabSet name="tunnelForm" bundle="tunnels" resourcePrefix="createTunnel.tab">
<tabs:tabHeadings />
<tabs:tab tabName="details">
<table class="dialog_form_table">
<tbody>
<tr class="formText">
<td class="label">
<div class="required">
<bean:message key="createTunnel.shortName.label" bundle="tunnels" />
</div>
</td>
<td class="value">
<logic:equal name="tunnelForm" property="resourceName" value="Default">
<html:hidden property="resourceName" />
<html:text tabindex="1" disabled="true" property="resourceName" maxlength="32" />
</logic:equal>
<logic:notEqual name="tunnelForm" property="resourceName" value="Default">
<html:text tabindex="1" disabled="false" property="resourceName" maxlength="32" />
</logic:notEqual>
</td>
</tr>
<tr class="formTextArea">
<td class="label">
<div class="required">
<bean:message key="createTunnel.description.label" bundle="tunnels" />
</div>
</td>
<td class="value">
<html:textarea tabindex="2" property="resourceDescription" cols="25" rows="5" />
</td>
</tr>
<tr class="formCheckbox">
<td class="label">
<bean:message key="editResource.addToFavorites" bundle="policyframework" />
</td>
<td class="value">
<html:checkbox tabindex="3" property="favorite"/>
</td>
</tr>
</tbody>
</table>
</tabs:tab>
<tabs:tab tabName="other">
<table class="dialog_form_table">
<tbody>
<tr class="formTextArea">
<td class="label">
<div class="required">
<bean:message key="tunnel.sourcePort" bundle="tunnels" />
</div>
</td>
<td class="value">
<html:text property="sourcePort" />
</td>
</tr>
<tr class="formTextArea">
<td class="label">
<div class="required">
<bean:message key="tunnel.destination.host" bundle="tunnels" />
</div>
</td>
<td class="value">
<html:text property="destinationHost" />
</td>
</tr>
<tr class="formTextArea">
<td class="label">
<div class="required">
<bean:message key="tunnel.destination.port" bundle="tunnels" />
</div>
</td>
<td class="value">
<html:text property="destinationPort" />
</td>
</tr>
<tr class="formText">
<td class="label">
<bean:message key="tunnel.autoStart" bundle="tunnels" />
</td>
<td class="value">
<logic:equal name="tunnelForm" property="autoStart" value="true">
<html:checkbox property="autoStart" />
</logic:equal>
<logic:equal name="tunnelForm" property="autoStart" value="false">
<html:checkbox property="autoStart" />
</logic:equal>
</td>
</tr>
<tr class="formText">
<td class="label">
<bean:message key="tunnel.allowExternalHosts" bundle="tunnels" />
</td>
<td class="value">
<logic:equal name="tunnelForm" property="allowExternalHosts" value="true">
<html:checkbox property="allowExternalHosts" />
</logic:equal>
<logic:equal name="tunnelForm" property="allowExternalHosts" value="false">
<html:checkbox property="allowExternalHosts" />
</logic:equal>
</td>
</tr>
<tr class="formEditableList">
<td class="label">
<bean:message key="tunnel.type" bundle="tunnels" />
</td>
<td class="value">
<html:select property="tunnelType">
<html:optionsCollection value="value" label="label" property="tunnelTypeList" />
</html:select>
</td>
</tr>
<tr class="formEditableList">
<td class="label">
<bean:message key="tunnel.transport" bundle="tunnels" />
</td>
<td class="value">
<html:select property="transport">
<html:optionsCollection value="value" label="label" property="transportList" />
</html:select>
</td>
</tr>
</tbody>
</table>
</tabs:tab>
<tabs:tab tabName="policies">
<input:multiSelectListBox tabindex="3" sourceTitleKey="policySelection.availablePolicies.title" targetTitleKey="policySelection.selectedPolicies.title" addKey="policySelection.addPolicy" removeKey="policySelection.removePolicy"
allowReordering="true" upKey="policySelection.moveUp" downKey="policySelection.moveDown" bundle="policyframework" styleClass="multiSelect" modelName="tunnelForm" modelProperty="policyModel" name="tunnelForm" property="selectedPolicies" />
</tabs:tab>
</tabs:tabSet>
<div class="button_bar">
<div class="formButton">
<html:submit styleClass="save" onclick="setActionTarget('commit'); return true">
<bean:message key="createTunnel.commit" bundle="tunnels" />
</html:submit>
</div>
<logic:notEmpty name="tunnelForm" property="referer">
<div class="formButton">
<html:submit styleClass="cancel" onclick="setActionTarget('cancel'); return true">
<bean:message key="createTunnel.cancel" bundle="tunnels" />
</html:submit>
</div>
</logic:notEmpty>
</div>
</html:form>
</div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -