📄 propertycontent.jspf
字号:
<%@ page import="java.util.StringTokenizer" %>
<%@ 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/explorer" prefix="explorer" %>
<%@ taglib uri="/sslexplorer/taglibs/input" prefix="input" %>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<% boolean flag = true; %>
<% boolean propertyDisabled = !propertiesForm.getEnabled(); %>
<html:hidden name="<%= propertyFormName %>" property="referer" />
<html:hidden name="<%= propertyFormName %>" property="_charset_" />
<% int idx = 0; %>
<logic:iterate type="com.sslexplorer.properties.PropertyItem"
name="<%= propertyFormName %>" property="propertyItems" id="propertyItem">
<%
String pn = "propertyItem[" + idx + "].value";
if(propertiesForm.getSelectedCategory() == -1 ||
propertiesForm.getSelectedCategory() == propertyItem.getCategory()) {
%>
<logic:equal value="0" name="propertyItem" property="type">
<tr class="formText">
<td class="label">
<%@ include file="/WEB-INF/jsp/content/properties/propertyLabel.jspf" %>
</td>
<td class="value">
<html:text tabindex="<%= String.valueOf(idx + 1) %>" styleId="<%= "f_" + String.valueOf(idx) %>" disabled="<%= propertyDisabled %>"
indexed="true" name="propertyItem" property="value" />
<logic:notEqual name="<%= propertyFormName %>" property="profileScope" value="setup">
<input:variables includeSession="false" includeUserAttributes="true" inputId="<%= "f_" + String.valueOf(idx) %>"/>
</logic:notEqual>
</td>
</tr>
</logic:equal>
<logic:equal value="1" name="propertyItem" property="type">
<tr class="formInteger">
<td class="label">
<%@ include file="/WEB-INF/jsp/content/properties/propertyLabel.jspf" %>
</td>
<td class="value">
<html:text styleId="<%= "f_" + String.valueOf(idx) %>" tabindex="<%= String.valueOf(idx + 1) %>" disabled="<%= propertyDisabled %>" indexed="true"
name="propertyItem" property="value" />
<logic:notEqual name="<%= propertyFormName %>" property="profileScope" value="setup">
<input:variables includeSession="false" includeUserAttributes="true" inputId="<%= "f_" + String.valueOf(idx) %>"/>
</logic:notEqual>
</td>
</tr>
</logic:equal>
<logic:equal value="2" name="propertyItem" property="type">
<tr class="formCheckbox">
<td class="label">
<%@ include file="/WEB-INF/jsp/content/properties/propertyLabel.jspf" %>
</td>
<td class="value">
<html:checkbox tabindex="<%= String.valueOf(idx + 1) %>" styleId="selected" disabled="<%= propertyDisabled %>"
indexed="true" name="propertyItem" property="selected" />
</td>
</tr>
</logic:equal>
<logic:equal value="3" name="propertyItem" property="type">
<tr class="formList">
<td class="label">
<%@ include file="/WEB-INF/jsp/content/properties/propertyLabel.jspf" %>
</td>
<td class="value">
<html:select tabindex="<%= String.valueOf(idx + 1) %>" styleId="value" disabled="<%= propertyDisabled %>"
indexed="true" name="propertyItem" property="value">
<html:optionsCollection name="propertyItem" property="listItems" />
</html:select>
</td>
</tr>
</logic:equal>
<logic:equal value="4" name="propertyItem" property="type">
<tr class="formPassword">
<td class="label">
<%@ include file="/WEB-INF/jsp/content/properties/propertyLabel.jspf" %>
</td>
<td class="value">
<html:password tabindex="<%= String.valueOf(idx + 1) %>" styleId="<%= "f_" + String.valueOf(idx) %>" disabled="<%= propertyDisabled %>"
indexed="true" name="propertyItem" property="value" />
<logic:notEqual name="<%= propertyFormName %>" property="profileScope" value="setup">
<input:variables includeSession="false" includeUserAttributes="true" inputId="<%= "f_" + String.valueOf(idx) %>"/>
</logic:notEqual>
</td>
</tr>
</logic:equal>
<logic:equal value="5" name="propertyItem" property="type">
<tr class="formMultiEntry">
<td class="label" >
<%@ include file="/WEB-INF/jsp/content/properties/propertyLabel.jspf" %>
</td>
<td class="value">
<logic:equal name="<%= propertyFormName %>" property="profileScope" value="setup">
<input:multiEntryListBox tabindex="<%= String.valueOf(idx + 1) %>" entryTitleKey="<%= propertyItem.getName() + ".entryTitle" %>" targetTitleKey="<%= propertyItem.getName() + ".targetTitle" %>" addKey="<%= propertyItem.getName() + ".add" %>" removeKey="<%= propertyItem.getName() + ".remove" %>" bundle="<%= propertyItem.getMessageResourcesKey() %>" styleClass="multiEntry" entrySize="16" indexed="true" name="propertyItem" property="value"/>
</logic:equal>
<logic:notEqual name="<%= propertyFormName %>" property="profileScope" value="setup">
<input:multiEntryListBox includeSession="false" includeUserAttributes="true" showReplacementVariables="true" tabindex="<%= String.valueOf(idx + 1) %>" entryTitleKey="<%= propertyItem.getName() + ".entryTitle" %>" targetTitleKey="<%= propertyItem.getName() + ".targetTitle" %>" addKey="<%= propertyItem.getName() + ".add" %>" removeKey="<%= propertyItem.getName() + ".remove" %>" bundle="<%= propertyItem.getMessageResourcesKey() %>" styleClass="multiEntry" entrySize="16" indexed="true" name="propertyItem" property="value"/>
</logic:notEqual>
</td>
</tr>
</logic:equal>
<logic:equal value="6" name="propertyItem" property="type">
<tr class="formTextArea">
<td class="label">
<%@ include file="/WEB-INF/jsp/content/properties/propertyLabel.jspf" %>
</td>
<td class="value">
<html:textarea tabindex="<%= String.valueOf(idx + 1) %>" styleId="<%= "f_" + String.valueOf(idx) %>" disabled="<%= propertyDisabled %>"
indexed="true" name="propertyItem" property="value"
cols="<%= String.valueOf(propertyItem.getColumns()) %>"
rows="<%= String.valueOf(propertyItem.getRows()) %>" />
<logic:notEqual name="<%= propertyFormName %>" property="profileScope" value="setup">
<input:variables includeSession="false" includeUserAttributes="true" inputId="<%= "f_" + String.valueOf(idx) %>"/>
</logic:notEqual>
</td>
</tr>
</logic:equal>
<logic:equal value="7" name="propertyItem" property="type">
<tr class="formTime">
<td class="label">
<%@ include file="/WEB-INF/jsp/content/properties/propertyLabel.jspf" %>
</td>
<td class="value">
<html:text tabindex="<%= String.valueOf(idx + 1) %>" styleId="<%= "f_" + String.valueOf(idx) %>" disabled="<%= propertyDisabled %>"
indexed="true" name="propertyItem" property="value" />
<logic:notEqual name="<%= propertyFormName %>" property="profileScope" value="setup">
<input:variables includeSession="false" includeUserAttributes="true" inputId="<%= "f_" + String.valueOf(idx) %>"/>
</logic:notEqual>
</td>
</tr>
</logic:equal>
<logic:equal value="9" name="propertyItem" property="type">
<tr class="formMultiSelect">
<td class="label">
<%@ include file="/WEB-INF/jsp/content/properties/propertyLabel.jspf" %>
</td>
<td class="value">
<input:multiSelectListBox tabindex="<%= String.valueOf(idx + 1) %>" sourceTitleKey="<%= propertyItem.getName() + ".sourceTitle" %>" targetTitleKey="<%= propertyItem.getName() + ".targetTitle" %>" addKey="<%= propertyItem.getName() + ".add" %>" removeKey="<%= propertyItem.getName() + ".remove" %>" bundle="<%= propertyItem.getMessageResourcesKey() %>" styleClass="multiSelect" modelName="propertyItem" modelProperty="listDataSourceModel" indexed="true" name="propertyItem" property="value"/>
</td>
</tr>
</logic:equal>
<% flag = !flag;
idx++;
} %>
</logic:iterate>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -