📄 shortcutcontent.jspf
字号:
<%@ page import="com.sslexplorer.extensions.ApplicationParameterDefinition"%>
<%@ page import="com.sslexplorer.extensions.ShortcutParameterItem"%>
<%@ page import="com.sslexplorer.security.Constants"%>
<%@ 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"%>
<bean:define id="targetUpdateAction" name="shortcutForm" property="updateAction" />
<html:form focus="name" action="<%= String.valueOf(targetUpdateAction) %>">
<html:hidden property="action" />
<html:hidden property="id" />
<html:hidden property="editing" />
<html:hidden property="referer" />
<html:hidden property="application" />
<table align="center" class="propertyCategoryTable" width="80%" border="0" cellpadding="0" cellspacing="0">
<tr class="propertyCategoryHeader">
<td>
<span class="propertyCategoryTitle">
<bean:write name="shortcutForm" property="applicationDescriptor.name" />
</span>
</td>
</tr>
<tr>
<td align="center" class="formCell" height="4" colspan="3">
<bean:write name="shortcutForm" property="applicationDescriptor.description" />
</td>
</tr>
<tr>
<td height="4" colspan="3" />
</tr>
<tr class="propertyCategoryHeader">
<td>
<span class="propertyCategoryTitle">
<bean:message key="createShortcut.shortcut" bundle="extensions" />
</span>
</td>
</tr>
<tr>
<td height="4" colspan="3" />
</tr>
<tr>
<td>
<table width="100%" border="0">
<tr>
<td align="right" class="formCell">
<bean:message key="createShortcut.shortcutName" bundle="extensions" />
<span class="requiredIndicator">
*
</span>
</td>
<td class="formCell" colspan="2">
<html:text size="50" property="name" maxlength="32" />
</td>
</tr>
<tr>
<td align="right" class="formCell">
<bean:message key="createShortcut.permission" bundle="extensions" />
<span class="requiredIndicator">
*
</span>
</td>
<td class="formCell" colspan="2">
<html:select disabled="true" name="shortcutForm" property="permissionId">
<html:optionsCollection name="shortcutForm" property="permissions" />
</html:select>
</td>
</tr>
<tr>
<td colspan="3" height="12">
</td>
</tr>
<!-- Start dynamic -->
<%int lastCategory = 0;
%>
<logic:iterate name="shortcutForm" property="shortcutItems" id="shortcutItem" indexId="i">
<%int thisCategory = ((ShortcutParameterItem) shortcutItem).getCategory();
if (thisCategory != -1 && (lastCategory == -1 || thisCategory != lastCategory)) {
lastCategory = thisCategory;
%>
<tr class="propertyCategoryHeader">
<td colspan="3">
<span class="propertyCategoryTitle">
<bean:write name="shortcutItem" property="localisedCategory" />
</span>
</td>
</tr>
<%}
%>
<tr>
<td align="right" class="formCell">
<input:toolTip value="<%= ((ShortcutParameterItem)shortcutItem).getLocalisedDescription() %>">
<bean:write name="shortcutItem" property="localisedName" />
</input:toolTip>
<logic:notEqual value="true" name="shortcutItem" property="optional">
<span class="requiredIndicator">
*
</span>
</logic:notEqual>
</td>
<td class="formCell" colspan="2">
<logic:equal value="0" name="shortcutItem" property="type">
<html:text indexed="true" name="shortcutItem" property="value" />
</logic:equal>
<logic:equal value="1" name="shortcutItem" property="type">
<html:text indexed="true" name="shortcutItem" property="value" />
</logic:equal>
<logic:equal value="2" name="shortcutItem" property="type">
<html:checkbox indexed="true" name="shortcutItem" property="selected" />
</logic:equal>
<logic:equal value="3" name="shortcutItem" property="type">
<html:select indexed="true" name="shortcutItem" property="value">
<html:optionsCollection name="shortcutItem" property="listItems" />
</html:select>
</logic:equal>
<logic:equal value="4" name="shortcutItem" property="type">
<input autocomplete="off" type="password" name="shortcutItem[<%= i %>].value" value="<%= String.valueOf(((ShortcutParameterItem)shortcutItem).getPasswordValue()) %>" />
</logic:equal>
<logic:equal value="5" name="shortcutItem" property="type">
<html:textarea indexed="true" name="shortcutItem" property="value.defaultValue" cols="<%= String.valueOf(((ShortcutParameterItem)shortcutItem).getColumns()) %>" rows="<%= String.valueOf(((ShortcutParameterItem)shortcutItem).getRows()) %>" />
</logic:equal>
<logic:equal value="6" name="shortcutItem" property="type">
<html:textarea indexed="true" name="shortcutItem" property="value.defaultValue" cols="<%= String.valueOf(((ShortcutParameterItem)shortcutItem).getColumns()) %>" rows="<%= String.valueOf(((ShortcutParameterItem)shortcutItem).getRows()) %>" />
</logic:equal>
<logic:equal value="8" name="shortcutItem" property="type">
<html:text indexed="true" name="shortcutItem" property="value" />
<span class="smallText">
<a class="plainText" href="javascript: showChooser(document.getElementById('chooserDiv<%= i %>'));">
Choose
</a>
<div id="chooserDiv<%= i %>" style="position:relative;max-height:0px;overflow:visible;display:none;top:8px;left:8px;z-index:10000;">
<script language="JavaScript">
buildChooser( 'chooserDiv<%= i %>', document, 36 , 'shortcutItem[<%= i %>].value') ;
</script>
</div>
</span>
</logic:equal>
</td>
</tr>
</logic:iterate>
<tr>
<td>
</td>
<td colspan="2">
</td>
</tr>
<tr>
<td colspan="3" align="center">
<input type="submit" onclick="set('commit');" value="<bean:message key='shortcut.save' bundle='extensions'/>" />
<logic:notEmpty name="shortcutForm" property="referer">
<input type="button" onclick="javascript: self.location = '<bean:write name="shortcutForm" property="referer"/>'" value="<bean:message key='shortcut.cancel' bundle='extensions' />" />
</logic:notEmpty>
</td>
</tr>
</table>
</td>
</tr>
</table>
</html:form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -