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

📄 rule-edit-form.jsp

📁 openfire 服务器源码下载
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<div class="jive-table"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tbody><tr class="jive-even">    <td>Action</td>    <td>        <select label="packetAction" name="packetAction">            <% Rule.Action[] actions = Rule.Action.values();                            for (int i = 0; i < actions.length; i++) {                                String action = actions[i].toString();                        %>                        <option value="<%=action%>" <%if ((packetAction != null && packetAction.equals(action))||rule.getDisplayName().equals(action) ) {%>                                selected<%}%>                                >                            <%=action%>                        </option>                        <%}%>        </select>    </td></tr><tr class="jive-odd">    <td>Disable</td>    <td><input type="checkbox" name="disable" value="true"    <%if (rule.isDisabled()) {%>               checked    <%}%>            ></td></tr><tr class="jive-even">    <td>Packet Type</td>    <td>        <select label="packetType" name="packetType">            <%                Rule.PacketType[] packetTypes = Rule.PacketType.values();                for (int i = 0; i < packetTypes.length; i++) {            %>            <option value="<%=packetTypes[i].toString()%>"                    <%if (packetType != null && packetType.equals(packetTypes[i].toString())) {%>                    selected <%}%>                    >                <%=packetTypes[i].getDisplayName()%>            </option>            <% } %>        </select>    </td></tr><tr class="jive-odd">    <td>From</td>    <td>                                                                                                                      <select id="source" name="source" onChange="ShowSourceField('source')">            <option value="Any" <%if (isSourceAny) {%> selected <%}%>>Any</option>            <option value="User" <%if (isSourceUser) {%> selected <%}%>>User</option>            <option value="Group" <%if (isSourceGroup) {%> selected <%}%>>Group</option>            <option value="Other" <%if (isSourceOther) {%> selected <%}%>>Other</option>            <option value="Component" <%if (isSourceComponent) {%> selected <%}%>>Component</option>        </select>    </td></tr><tr class="jive-odd" name="SourceOther" id="SourceOther" <%if (!isSourceOther) {%> style="display:none;"<%}%>>    <td>        Other JID    </td>    <td>        <input type="text" name="sourceOtherJID" id="sourceOtherJID" <%if (isSourceOther) {%>               value="<%=sourceJID%>"<%}%>></input>    </td></tr><tr class="jive-odd" name="SourceGroup" id="SourceGroup" <% if (!isSourceGroup) {%> style="display:none;"<%}%>>    <td>        Source Group    </td>    <td>        <select id="sourceGroupJID" name="sourceGroupJID">            <% for (Group group : groups) {%>            <option value="<%=group.getName()%>"                    <%if (isSourceGroup && source.equals(group.getName())) {%> selected<%}%>                    ><%=group.getName()%>            </option>            <%}%>        </select>    </td></tr><tr class="jive-odd" name="SourceUser" id="SourceUser" <% if (!isSourceUser) {%> style="display:none;"<%}%>>    <td>        Source User    </td>    <td>        <select id="sourceUserJID" name="sourceUserJID">            <% for (String userName : userList) {%>            <option value="<%=userName+"@"+serverName%>"                    <% if (isSourceUser && source.equals(userName + "@" + serverName)) {%>                    selected                    <%}%>                    ><%=userName + "@" + serverName%>            </option>            <%}%>        </select>    </td></tr><tr class="jive-odd" name="SourceComponent" id="SourceComponent" <%if (!isSourceComponent) {%>    style="display:none;"<%}%>        >    <td>        Component    </td>    <td>        <select id="sourceComponentJID" name="sourceComponentJID">            <% for (String component : components) {            if (component != null && cList.getComponentName(component) != null) {%>            <option value="<%=component%>"                    <%if (sourceJID != null && sourceJID.equals(component)) {%>                    selected<%}%>>                <%=cList.getComponentName(component)%>            </option>            <% }            }%>        </select>    </td></tr><tr class="jive-even">    <td>To</td>    <td>        <select name="destination" id="destination" onChange="ShowDestinationField('destination')">            <option value="Any" <%if (isDestAny) {%> selected <%}%>>Any</option>            <option value="User" <%if (isDestUser) {%> selected <%}%>>User</option>            <option value="Group" <%if (isDestGroup) {%> selected <%}%>>Group</option>            <option value="Other" <%if (isDestOther) {%> selected <%}%>>Other</option>            <option value="Component" <% if (isDestComponent) { %> selected <%}%>>Component</option>        </select>    </td></tr><tr class="jive-even" name="DestOther" id="DestOther" <%if (!isDestOther) {%> style="display:none;"<%}%>>    <td>        Other JID    </td>    <td>        <input type="text" name="destOtherJID" id="destOtherJID"                <% if (isDestOther) {%> value="<%=destJID%>"<%}%>                ></input>    </td></tr><tr class="jive-odd" name="DestGroup" id="DestGroup" <%if (!isDestGroup) {%> style="display:none;"<%}%>>    <td>        Destination Group    </td>    <td>        <select id="destGroupJID" name="destGroupJID">            <% for (Group group : groups) {%>            <option value="<%=group.getName()%>"                    <%if (isDestGroup && destination.equals(group.getName())) {%> selected<%}%>                    ><%=group.getName()%>            </option>            <%}%>        </select>    </td></tr><tr class="jive-odd" name="DestUser" id="DestUser" <%if (!isDestUser) {%> style="display:none;"<%}%>>    <td>        Destination User    </td>    <td>        <select id="destUserJID" name="destUserJID">            <% for (String userName : userList) {%>            <option value="<%=userName+"@"+serverName%>"                    <% if (isDestUser && destination.equals(userName + "@" + serverName)) {%>                    selected                    <%}%>                    ><%=userName + "@" + serverName%>            </option>            <%}%>        </select>    </td></tr><tr class="jive-even" name="DestComponent" id="DestComponent" <%if (!isDestComponent) {%>    style="display:none;"<%}%>        >    <td>        Component    </td>    <td>        <select id="destComponentJID" name="destComponentJID">            <% for (String component : components) {            if (component != null && cList.getComponentName(component) != null) {%>            <option value="<%=component%>"                    <%if (destJID != null && destJID.equals(component)) {%>                    selected<%}%>>                <%=cList.getComponentName(component)%>            </option>            <% }            }%>        </select>    </td></tr><tr class="jive-odd">    <td>Log</td>    <td><input type="checkbox" name="log" value="true"    <%if(rule.doLog()) {%> checked<%}%>></td></tr><tr class="jive-even">    <td>Description</td>    <td><input type="text" size="40" name="description"            <%if (rule.getDescription() != null) {%>               value="<%=rule.getDescription()%>"            <%}%>            ></input></td></tr><tr>    <td>        <input type="submit" name="editSave" value="<fmt:message key="pf.save.edit" />">        <input type="submit" name="cancel" value="<fmt:message key="pf.global.cancel" />">    </td>    <td>&nbsp;</td></tr></tbody></table></div></form></body></html>

⌨️ 快捷键说明

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