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$ - $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $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.*, <%@ page import="org.jivesoftware.util.*,
...@@ -11,9 +14,12 @@ ...@@ -11,9 +14,12 @@
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
org.jivesoftware.admin.*, org.jivesoftware.admin.*,
org.jivesoftware.messenger.muc.HistoryStrategy" 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" /> <jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %> <% admin.init(request, response, session, application, out ); %>
...@@ -28,16 +34,12 @@ ...@@ -28,16 +34,12 @@
<jsp:include page="top.jsp" flush="true" /> <jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" /> <jsp:include page="title.jsp" flush="true" />
<%! // Global vars and methods: <%! // Global vars and methods:
// Strategy definitions:
static final int ALL = 1; static final int ALL = 1;
static final int NONE = 2; static final int NONE = 2;
static final int NUMBER = 3; static final int NUMBER = 3;
%> %>
<% // Get parameters: <% // Get parameters:
boolean update = request.getParameter("update") != null; boolean update = request.getParameter("update") != null;
int policy = ParamUtils.getIntParameter(request,"policy",-1); int policy = ParamUtils.getIntParameter(request,"policy",-1);
...@@ -70,9 +72,16 @@ ...@@ -70,9 +72,16 @@
} }
// All done, redirect // All done, redirect
%> %>
<p class="jive-success-text"> <div class="jive-success">
Settings updated. <table cellpadding="0" cellspacing="0" border="0">
</p> <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 @@ ...@@ -92,57 +101,64 @@
} }
%> %>
<table cellpadding="3" cellspacing="1" border="0" width="600"> <p>
<form action="chatroom-history-settings.jsp">
<tr><td class="text" colspan="2" >
Chatrooms can replay conversation histories to provide context to new members joining a room. 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. <fmt:message key="short.title" bundle="${lang}" /> provides several options for controlling how
</td> much history to store for each room.
</p>
<form action="chatroom-history-settings.jsp">
<tr valign="top" class="">
<td width="1%" nowrap> <fieldset>
<input type="radio" name="policy" value="<%= NONE %>" id="rb01" <legend>Set Chatroom History Policy</legend>
<%= ((policy==NONE) ? "checked" : "") %>> <div>
</td> <table cellpadding="3" cellspacing="0" border="0" width="100%">
<td width="99%"> <tbody>
<label for="rb01"><b>Don't Show History</b></label> - Do not show the entire chat <tr valign="top" class="">
history. <td width="1%" nowrap>
</td> <input type="radio" name="policy" value="<%= NONE %>" id="rb01"
</tr> <%= ((policy==NONE) ? "checked" : "") %>>
<tr valign="top"> </td>
<td width="1%" nowrap> <td width="99%">
<input type="radio" name="policy" value="<%= ALL %>" id="rb02" <label for="rb01"><b>Don't Show History</b></label> - Do not show the entire chat
<%= ((policy==ALL) ? "checked" : "") %>> history.
</td> </td>
<td width="99%"> </tr>
<label for="rb02"><b>Show Entire Chat History</b></label> - Show the entire chat history <tr valign="top">
to the user. <td width="1%" nowrap>
</td> <input type="radio" name="policy" value="<%= ALL %>" id="rb02"
</tr> <%= ((policy==ALL) ? "checked" : "") %>>
<tr valign="top" class=""> </td>
<td width="1%" nowrap> <td width="99%">
<input type="radio" name="policy" value="<%= NUMBER %>" id="rb03" <label for="rb02"><b>Show Entire Chat History</b></label> - Show the entire chat history
<%= ((policy==NUMBER) ? "checked" : "") %>> to the user.
</td> </td>
<td width="99%"> </tr>
<label for="rb03"><b>Show a Specific Number of Messages</b></label> - Show a specific <tr valign="top" class="">
number of the most recent messages in the chat. Use the box below to specify <td width="1%" nowrap>
that number. <input type="radio" name="policy" value="<%= NUMBER %>" id="rb03"
</tr> <%= ((policy==NUMBER) ? "checked" : "") %>>
<tr valign="top" class=""> </td>
<td width="1%" nowrap> <td width="99%">
&nbsp; <label for="rb03"><b>Show a Specific Number of Messages</b></label> - Show a specific
</td> number of the most recent messages in the chat. Use the box below to specify
<td width="99%"> that number.
<input type="text" name="numMessages" size="5" maxlength="10" </tr>
onclick="this.form.policy[2].checked=true;" <tr valign="top" class="">
value="<%= ((numMessages > 0) ? ""+numMessages : "") %>"> messages <td width="1%" nowrap>
</tr> &nbsp;
</table> </td>
<td width="99%">
<br> <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"> <input type="submit" name="update" value="Save Settings">
......
<%@ taglib uri="core" prefix="c"%><%-- <%--
- $RCSfile$ - $RCSfile$
- $Revision$ - $Revision$
- $Date$ - $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.*, <%@ page import="org.jivesoftware.util.*,
java.util.*, java.util.*,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
org.jivesoftware.admin.*" org.jivesoftware.admin.*"
errorPage="error.jsp"
%> %>
<%-- Define Administration Bean --%>
<%@ taglib uri="core" prefix="c"%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% admin.init(request, response, session, application, out ); %> <% admin.init(request, response, session, application, out ); %>
...@@ -24,8 +32,6 @@ ...@@ -24,8 +32,6 @@
<jsp:include page="top.jsp" flush="true" /> <jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" /> <jsp:include page="title.jsp" flush="true" />
<% // Get parameters: <% // Get parameters:
boolean update = request.getParameter("update") != null; boolean update = request.getParameter("update") != null;
boolean privateEnabled = ParamUtils.getBooleanParameter(request,"privateEnabled"); boolean privateEnabled = ParamUtils.getBooleanParameter(request,"privateEnabled");
...@@ -37,9 +43,16 @@ ...@@ -37,9 +43,16 @@
if( update ) { if( update ) {
privateStore.setEnabled(privateEnabled); privateStore.setEnabled(privateEnabled);
%> %>
<p class="jive-success-text"> <div class="jive-success">
Settings updated. <table cellpadding="0" cellspacing="0" border="0">
</p> <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 @@ ...@@ -50,42 +63,48 @@
} }
%> %>
<p>
<table cellpadding="3" cellspacing="1" border="0" width="600">
<form action="private-data-settings.jsp">
<tr><td colspan=2 class="text">
Private data storage allows XMPP clients to store settings, bookmarks, etc. on the server. Users 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 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 clients store the settings on the local computer where their settings will not follow them). You
may enable or disable this feature. may enable or disable this feature.
</p>
<form action="private-data-settings.jsp">
<fieldset>
<tr valign="top" class=""> <legend>Set Private Data Policy</legend>
<td width="1%" nowrap> <div>
<input type="radio" name="privateEnabled" value="true" id="rb01" <table cellpadding="3" cellspacing="0" border="0" width="100%">
<%= (privateEnabled ? "checked" : "") %>> <tbody>
</td> <tr valign="top">
<td width="99%"> <td width="1%" nowrap>
<label for="rb01"> <input type="radio" name="privateEnabled" value="true" id="rb01"
<b>Enable Private Data Storage</b> - allow clients to store information on the server. <%= (privateEnabled ? "checked" : "") %>>
</label> </td>
</td> <td width="99%">
</tr> <label for="rb01">
<tr valign="top"> <b>Enable Private Data Storage</b> - allow clients to store information on the server.
<td width="1%" nowrap> </label>
<input type="radio" name="privateEnabled" value="false" id="rb02" </td>
<%= (!privateEnabled ? "checked" : "") %>> </tr>
</td> <tr valign="top">
<td width="99%"> <td width="1%" nowrap>
<label for="rb02"> <input type="radio" name="privateEnabled" value="false" id="rb02"
<b>Disable Private Data Storage</b> - do not allow server-side storage. <%= (!privateEnabled ? "checked" : "") %>>
</label> </td>
</td> <td width="99%">
</tr> <label for="rb02">
</table> <b>Disable Private Data Storage</b> - do not allow server-side storage.
</label>
<br> </td>
</tr>
</tbody>
</table>
</div>
</fieldset>
<br><br>
<input type="submit" name="update" value="Save Settings"> <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