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
This diff is collapsed.
<%@ 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