Commit 8a83fd3c authored by Bill Lynch's avatar Bill Lynch Committed by bill

UI cleanup


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@361 b35dd754-fafc-0310-a699-88a17e54d16e
parent 58c82648
......@@ -16,9 +16,9 @@
errorPage="error.jsp"
%>
<%@ taglib uri="core" prefix="c"%>
<%@ taglib uri="core" prefix="c" %>
<%@ taglib uri="fmt" prefix="fmt" %>
<%-- Define Administration Bean --%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %>
......@@ -33,7 +33,7 @@
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<% // Get parameters:
<% // Get parameters:
boolean update = request.getParameter("update") != null;
boolean auditEnabled = ParamUtils.getBooleanParameter(request,"auditEnabled");
boolean auditMessages = ParamUtils.getBooleanParameter(request,"auditMessages");
......@@ -76,9 +76,18 @@
// All done, redirect
if (errors.size() == 0){
%>
<p class="jive-success-text">
Settings Updated.
</p>
<div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td>
<td class="jive-icon-label">
Settings updated successfully.
</td></tr>
</tbody>
</table>
</div><br>
<%
}
}
......@@ -95,138 +104,41 @@
}
%>
<table cellpadding="4" cellspacing="0" border="0" width="600">
<form action="audit-policy.jsp">
<tr><td colspan="2" class="text">
Jive Messenger can audit XMPP traffic on the server and save the data to
XML data files. The amount of data sent via an XMPP server can be substantial.
<p>
<fmt:message key="title" bundle="${lang}" /> can audit XMPP traffic on the server and save
the data to XML data files. The amount of data sent via an XMPP server can be substantial.
Messenger provides several settings to control whether to audit packets, how
audit files are created, and the types of packets to save. In most cases, logging
Message packets will provide all of the data an enterprise requires. Presence
and IQ packets are primarily useful for tracing and troubleshooting XMPP deployments.
</td></tr>
<tr valign="top">
<td width="1%" nowrap>
<input type="radio" name="auditEnabled" value="false" id="rb01"
<%= (!auditEnabled ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb01">
<b>Disable Message Auditing</b> - Packets are not logged.
</label>
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap>
<input type="radio" name="auditEnabled" value="true" id="rb02"
<%= (auditEnabled ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb02">
<b>Enable Message Auditing</b> - Packets are logged with the following options:
</label>
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap>
&nbsp;
</td>
<td width="99%">
<div class="jive-table">
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr valign="top">
<td width="1%" nowrap class="c1">
Maximum file size (MB):
</td>
<td width="99%">
<input type="text" size="15" maxlength="50" name="maxSize"
value="<%= ((maxSize != null) ? maxSize : "") %>">
<% if (errors.get("maxSize") != null) { %>
<span class="jive-error-text">
Please enter a valid number.
</span>
<% } %>
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap class="c1">
Maximum number of files:
</td>
<td width="99%">
<input type="text" size="15" maxlength="50" name="maxCount"
value="<%= ((maxCount != null) ? maxCount : "") %>">
<% if (errors.get("maxCount") != null) { %>
<span class="jive-error-text">
Please enter a valid number.
</span>
<% } %>
</p>
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap class="c1">
Packets to audit:
</td>
<td width="99%">
<form action="audit-policy.jsp">
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr valign="top">
<td width="1%" nowrap>
<input type="checkbox" name="auditMessages" id="cb01"
onclick="this.form.auditEnabled[1].checked=true;"
<%= (auditMessages ? "checked" : "") %>>
</td>
<td width="99%">
<label for="cb01">
<b>Audit Message Packets</b>
</label>
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap>
<input type="checkbox" name="auditPresence" id="cb02"
onclick="this.form.auditEnabled[1].checked=true;"
<%= (auditPresence ? "checked" : "") %>>
</td>
<td width="99%">
<label for="cb02">
<b>Audit Presence Packets</b>
</label>
</td>
</tr>
<fieldset>
<legend>Set Message Audit Policy</legend>
<div>
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tbody>
<tr valign="top">
<td width="1%" nowrap>
<input type="checkbox" name="auditIQ" id="cb03"
onclick="this.form.auditEnabled[1].checked=true;"
<%= (auditIQ ? "checked" : "") %>>
<input type="radio" name="auditEnabled" value="false" id="rb01"
<%= (!auditEnabled ? "checked" : "") %>>
</td>
<td width="99%">
<label for="cb03">
<b>Audit IQ Packets</b>
<label for="rb01">
<b>Disable Message Auditing</b> - Packets are not logged.
</label>
</td>
</tr>
<!--
<% if (false){ %>
<tr valign="top">
<td width="1%" nowrap>
<input type="checkbox" name="auditXPath" id="cb04"
onclick="this.form.auditEnabled[1].checked=true;"
<%= (auditXPath ? "checked" : "") %>>
<input type="radio" name="auditEnabled" value="true" id="rb02"
<%= (auditEnabled ? "checked" : "") %>>
</td>
<td width="99%">
<label for="cb04">
<b>Audit Packets matching XPath Queries:</b>
<label for="rb02">
<b>Enable Message Auditing</b> - Packets are logged with the following options:
</label>
</td>
</tr>
......@@ -235,75 +147,98 @@ and IQ packets are primarily useful for tracing and troubleshooting XMPP deploym
&nbsp;
</td>
<td width="99%">
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr>
<td>
Enter new query:
<input type="text" size="30" maxlength="100" name="newXpathQuery"
onclick="this.form.auditEnabled[1].checked=true;this.form.auditXPath.checked=true;"
value="<%= ((newXpathQuery != null) ? newXpathQuery : "") %>">
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr valign="top">
<td width="1%" nowrap class="c1">
Maximum file size (MB):
</td>
</tr>
<% Iterator queries = auditManager.getXPathFilters();
if (queries.hasNext()) {
%>
<tr>
<td>
Current queries audited:
</td>
</tr>
<tr>
<td>
<td width="99%">
<input type="text" size="15" maxlength="50" name="maxSize"
value="<%= ((maxSize != null) ? maxSize : "") %>">
<div class="jive-table">
<table cellpadding="3" cellspacing="1" border="0" width="400">
<tr>
<th nowrap>XPath Query</th>
<th align="center">Delete</th>
</tr>
<% if (errors.get("maxSize") != null) { %>
<% while (queries.hasNext()) {
String query = (String)queries.next();
%>
<span class="jive-error-text">
Please enter a valid number.
</span>
<tr>
<td class="jive-label" width="99%">
<%= query %>
</td>
<td align="center" width="1%">
<input type="checkbox" name="xpathQuery"
value="<%= StringUtils.replace(query, "\"", "&quot;") %>">
</td>
</tr>
<% } %>
<% } %>
</table>
</div>
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap class="c1">
Maximum number of files:
</td>
<td width="99%">
<input type="text" size="15" maxlength="50" name="maxCount"
value="<%= ((maxCount != null) ? maxCount : "") %>">
</td>
</tr>
<% if (errors.get("maxCount") != null) { %>
<% } %>
<span class="jive-error-text">
Please enter a valid number.
</span>
</table>
<% } %>
</td>
</tr>
<% } // xquery comment block %>
-->
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap class="c1">
Packets to audit:
</td>
<td width="99%">
<table cellpadding="4" cellspacing="0" border="0" width="100%">
<tr valign="top">
<td width="1%" nowrap>
<input type="checkbox" name="auditMessages" id="cb01"
onclick="this.form.auditEnabled[1].checked=true;"
<%= (auditMessages ? "checked" : "") %>>
</td>
<td width="99%">
<label for="cb01">
<b>Audit Message Packets</b>
</label>
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap>
<input type="checkbox" name="auditPresence" id="cb02"
onclick="this.form.auditEnabled[1].checked=true;"
<%= (auditPresence ? "checked" : "") %>>
</td>
<td width="99%">
<label for="cb02">
<b>Audit Presence Packets</b>
</label>
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap>
<input type="checkbox" name="auditIQ" id="cb03"
onclick="this.form.auditEnabled[1].checked=true;"
<%= (auditIQ ? "checked" : "") %>>
</td>
<td width="99%">
<label for="cb03">
<b>Audit IQ Packets</b>
</label>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</tbody>
</table>
</div>
</fieldset>
<br>
<br><br>
<input type="submit" name="update" value="Save Settings">
......
<%@ taglib uri="core" prefix="c"%>
<%@ taglib uri="fmt" prefix="fmt" %>
<%--
- $RCSfile$
- $Revision$
- $Date$
-
- Copyright (C) 2004 Jive Software. All rights reserved.
-
- This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution.
--%>
<%@ page import="org.jivesoftware.util.*,
......@@ -11,9 +14,12 @@
org.jivesoftware.messenger.*,
org.jivesoftware.admin.*,
org.jivesoftware.messenger.muc.HistoryStrategy"
errorPage="error.jsp"
%>
<%-- Define Administration Bean --%>
<%@ taglib uri="core" prefix="c"%>
<%@ taglib uri="fmt" prefix="fmt" %>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %>
......@@ -28,16 +34,12 @@
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<%! // Global vars and methods:
// Strategy definitions:
static final int ALL = 1;
static final int NONE = 2;
static final int NUMBER = 3;
%>
<% // Get parameters:
boolean update = request.getParameter("update") != null;
int policy = ParamUtils.getIntParameter(request,"policy",-1);
......@@ -70,9 +72,16 @@
}
// All done, redirect
%>
<p class="jive-success-text">
Settings updated.
</p>
<div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td>
<td class="jive-icon-label">
Settings updated successfully.
</td></tr>
</tbody>
</table>
</div><br>
<%
}
}
......@@ -92,57 +101,64 @@
}
%>
<table cellpadding="3" cellspacing="1" border="0" width="600">
<form action="chatroom-history-settings.jsp">
<tr><td class="text" colspan="2" >
<p>
Chatrooms can replay conversation histories to provide context to new members joining a room.
<fmt:message key="short.title" bundle="${lang}" /> provides several options for controlling how much history to store for each room.
</td>
<tr valign="top" class="">
<td width="1%" nowrap>
<input type="radio" name="policy" value="<%= NONE %>" id="rb01"
<%= ((policy==NONE) ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb01"><b>Don't Show History</b></label> - Do not show the entire chat
history.
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap>
<input type="radio" name="policy" value="<%= ALL %>" id="rb02"
<%= ((policy==ALL) ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb02"><b>Show Entire Chat History</b></label> - Show the entire chat history
to the user.
</td>
</tr>
<tr valign="top" class="">
<td width="1%" nowrap>
<input type="radio" name="policy" value="<%= NUMBER %>" id="rb03"
<%= ((policy==NUMBER) ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb03"><b>Show a Specific Number of Messages</b></label> - Show a specific
number of the most recent messages in the chat. Use the box below to specify
that number.
</tr>
<tr valign="top" class="">
<td width="1%" nowrap>
&nbsp;
</td>
<td width="99%">
<input type="text" name="numMessages" size="5" maxlength="10"
onclick="this.form.policy[2].checked=true;"
value="<%= ((numMessages > 0) ? ""+numMessages : "") %>"> messages
</tr>
</table>
<br>
<fmt:message key="short.title" bundle="${lang}" /> provides several options for controlling how
much history to store for each room.
</p>
<form action="chatroom-history-settings.jsp">
<fieldset>
<legend>Set Chatroom History Policy</legend>
<div>
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tbody>
<tr valign="top" class="">
<td width="1%" nowrap>
<input type="radio" name="policy" value="<%= NONE %>" id="rb01"
<%= ((policy==NONE) ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb01"><b>Don't Show History</b></label> - Do not show the entire chat
history.
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap>
<input type="radio" name="policy" value="<%= ALL %>" id="rb02"
<%= ((policy==ALL) ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb02"><b>Show Entire Chat History</b></label> - Show the entire chat history
to the user.
</td>
</tr>
<tr valign="top" class="">
<td width="1%" nowrap>
<input type="radio" name="policy" value="<%= NUMBER %>" id="rb03"
<%= ((policy==NUMBER) ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb03"><b>Show a Specific Number of Messages</b></label> - Show a specific
number of the most recent messages in the chat. Use the box below to specify
that number.
</tr>
<tr valign="top" class="">
<td width="1%" nowrap>
&nbsp;
</td>
<td width="99%">
<input type="text" name="numMessages" size="5" maxlength="10"
onclick="this.form.policy[2].checked=true;"
value="<%= ((numMessages > 0) ? ""+numMessages : "") %>"> messages
</tr>
</tbody>
</table>
</div>
</fieldset>
<br><br>
<input type="submit" name="update" value="Save Settings">
......
<%@ taglib uri="core" prefix="c"%><%--
<%--
- $RCSfile$
- $Revision$
- $Date$
-
- Copyright (C) 2004 Jive Software. All rights reserved.
-
- This software is published under the terms of the GNU Public License (GPL),
- a copy of which is included in this distribution.
--%>
<%@ page import="org.jivesoftware.util.*,
java.util.*,
org.jivesoftware.messenger.*,
org.jivesoftware.admin.*"
errorPage="error.jsp"
%>
<%-- Define Administration Bean --%>
<%@ taglib uri="core" prefix="c"%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %>
......@@ -24,8 +32,6 @@
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<% // Get parameters:
boolean update = request.getParameter("update") != null;
boolean privateEnabled = ParamUtils.getBooleanParameter(request,"privateEnabled");
......@@ -37,9 +43,16 @@
if( update ) {
privateStore.setEnabled(privateEnabled);
%>
<p class="jive-success-text">
Settings updated.
</p>
<div class="jive-success">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0"></td>
<td class="jive-icon-label">
Settings updated successfully.
</td></tr>
</tbody>
</table>
</div><br>
<%
}
......@@ -50,42 +63,48 @@
}
%>
<table cellpadding="3" cellspacing="1" border="0" width="600">
<form action="private-data-settings.jsp">
<tr><td colspan=2 class="text">
<p>
Private data storage allows XMPP clients to store settings, bookmarks, etc. on the server. Users
can log into their account and their settings will follow them around (as opposed to having the
clients store the settings on the local computer where their settings will not follow them). You
may enable or disable this feature.
</p>
<form action="private-data-settings.jsp">
<tr valign="top" class="">
<td width="1%" nowrap>
<input type="radio" name="privateEnabled" value="true" id="rb01"
<%= (privateEnabled ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb01">
<b>Enable Private Data Storage</b> - allow clients to store information on the server.
</label>
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap>
<input type="radio" name="privateEnabled" value="false" id="rb02"
<%= (!privateEnabled ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb02">
<b>Disable Private Data Storage</b> - do not allow server-side storage.
</label>
</td>
</tr>
</table>
<br>
<fieldset>
<legend>Set Private Data Policy</legend>
<div>
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tbody>
<tr valign="top">
<td width="1%" nowrap>
<input type="radio" name="privateEnabled" value="true" id="rb01"
<%= (privateEnabled ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb01">
<b>Enable Private Data Storage</b> - allow clients to store information on the server.
</label>
</td>
</tr>
<tr valign="top">
<td width="1%" nowrap>
<input type="radio" name="privateEnabled" value="false" id="rb02"
<%= (!privateEnabled ? "checked" : "") %>>
</td>
<td width="99%">
<label for="rb02">
<b>Disable Private Data Storage</b> - do not allow server-side storage.
</label>
</td>
</tr>
</tbody>
</table>
</div>
</fieldset>
<br><br>
<input type="submit" name="update" value="Save Settings">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment