Commit fc7ed5c1 authored by Bill Lynch's avatar Bill Lynch Committed by bill

More cleanup


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@371 b35dd754-fafc-0310-a699-88a17e54d16e
parent 74ac6dac
...@@ -267,6 +267,9 @@ PRE, TT { ...@@ -267,6 +267,9 @@ PRE, TT {
border-style : solid; border-style : solid;
border-width : 1px 1px 0px 1px; border-width : 1px 1px 0px 1px;
} }
.jive-table .c1 {
width : 30%;
}
.jive-table TH, .jive-table TD { .jive-table TH, .jive-table TD {
padding : 4px; padding : 4px;
} }
......
<%@ 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.*,
...@@ -10,11 +15,13 @@ ...@@ -10,11 +15,13 @@
java.util.*, java.util.*,
org.jivesoftware.admin.*, org.jivesoftware.admin.*,
org.jivesoftware.messenger.*" org.jivesoftware.messenger.*"
errorPage="error.jsp"
%> %>
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<jsp:useBean id="userData" class="org.jivesoftware.messenger.user.spi.UserPrivateData" />
<%@ taglib uri="core" prefix="c"%>
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<jsp:useBean id="userData" class="org.jivesoftware.messenger.user.spi.UserPrivateData" />
<% // Get parameters // <% // Get parameters //
boolean cancel = request.getParameter("cancel") != null; boolean cancel = request.getParameter("cancel") != null;
...@@ -56,11 +63,12 @@ ...@@ -56,11 +63,12 @@
user = webManager.getUserManager().getUser(username); user = webManager.getUserManager().getUser(username);
} }
PresenceManager presenceManager = webManager.getPresenceManager();
// Date formatter for dates // Date formatter for dates
DateFormat formatter = DateFormat.getDateInstance(DateFormat.MEDIUM); DateFormat formatter = DateFormat.getDateInstance(DateFormat.MEDIUM);
%> %>
<% <%
// Get a private data manager // // Get a private data manager //
final PrivateStore privateStore = webManager.getPrivateStore(); final PrivateStore privateStore = webManager.getPrivateStore();
...@@ -70,6 +78,7 @@ ...@@ -70,6 +78,7 @@
nickname = ""; nickname = "";
} }
%> %>
<jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" /> <jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<% // Title of this page and breadcrumbs <% // Title of this page and breadcrumbs
String title = "User Properties"; String title = "User Properties";
...@@ -79,31 +88,36 @@ ...@@ -79,31 +88,36 @@
pageinfo.setSubPageID("user-properties"); pageinfo.setSubPageID("user-properties");
pageinfo.setExtraParams("username="+username); pageinfo.setExtraParams("username="+username);
%> %>
<c:set var="tab" value="props" /> <jsp:include page="top.jsp" flush="true" />
<%@ include file="top.jsp" %>
<jsp:include page="title.jsp" flush="true" /> <jsp:include page="title.jsp" flush="true" />
<%@ include file="user-tabs.jsp" %> <p>
<br/> Below is a summary of user properties. To edit properties, click the "Edit" button below.
<table class="box" cellpadding="3" cellspacing="1" border="0" width="600"> </p>
<tr><td class="text" colspan="2">
Below is a summary of user properties. Use the tabs above to do things like edit user properties, <div class="jive-table">
send the user a message (if they're online) or delete the user. <table cellpadding="0" cellspacing="0" border="0" width="100%">
</td></tr> <thead>
<tr class="jive-odd"> <tr>
<td wrap width="1%"> <th colspan="2">
User Properties
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="c1">
Username: Username:
</td> </td>
<td> <td>
<%= user.getUsername() %> <%= user.getUsername() %>
</td> </td>
</tr> </tr>
<tr>
<tr class="jive-even"> <td class="c1">
<td wrap width="1%">
Status: Status:
</td> </td>
<td valign="middle"> <td>
<% if (presenceManager.isAvailable(user)) { <% if (presenceManager.isAvailable(user)) {
Presence presence = presenceManager.getPresence(user); Presence presence = presenceManager.getPresence(user);
%> %>
...@@ -128,7 +142,6 @@ send the user a message (if they're online) or delete the user. ...@@ -128,7 +142,6 @@ send the user a message (if they're online) or delete the user.
Do not Disturb Do not Disturb
<% } %> <% } %>
<% } else { %> <% } else { %>
<img src="images/user-clear-16x16.gif" width="16" height="16" border="0" alt="Offline"> <img src="images/user-clear-16x16.gif" width="16" height="16" border="0" alt="Offline">
...@@ -136,9 +149,9 @@ send the user a message (if they're online) or delete the user. ...@@ -136,9 +149,9 @@ send the user a message (if they're online) or delete the user.
<% } %> <% } %>
</td> </td>
</tr> </tr>
<tr class="jive-odd"> <tr>
<td wrap width="1%"> <td class="c1">
Name: Name:
</td> </td>
<td> <td>
...@@ -150,13 +163,13 @@ send the user a message (if they're online) or delete the user. ...@@ -150,13 +163,13 @@ send the user a message (if they're online) or delete the user.
<% } else { %> <% } else { %>
<i><%= user.getInfo().getName() %></i> <%= user.getInfo().getName() %>
<% } %> <% } %>
</td> </td>
</tr> </tr>
<tr class="jive-even"> <tr>
<td wrap width="1%"> <td class="c1">
Email: Email:
</td> </td>
<td> <td>
...@@ -168,26 +181,27 @@ send the user a message (if they're online) or delete the user. ...@@ -168,26 +181,27 @@ send the user a message (if they're online) or delete the user.
<% } else { %> <% } else { %>
<i><a href="mailto:<%= user.getInfo().getEmail() %>"><%= user.getInfo().getEmail() %></a></i> <a href="mailto:<%= user.getInfo().getEmail() %>"><%= user.getInfo().getEmail() %></a>
<% } %> <% } %>
</td> </td>
</tr> </tr>
<tr class="jive-even"> <tr>
<td wrap width="1%"> <td class="c1">
Registered: Registered:
</td> </td>
<td> <td>
<%= formatter.format(user.getInfo().getCreationDate()) %> <%= formatter.format(user.getInfo().getCreationDate()) %>
</td> </td>
</tr> </tr>
</tbody>
</table> </table>
</div> </div>
<br> <br><br>
<form action="user-summary.jsp"> <form action="user-edit.jsp">
<input type="submit" value="User Summary"> <input type="submit" value="Edit Properties">
</form> </form>
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
\ No newline at end of file
<%@ 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.*,
...@@ -14,7 +19,8 @@ ...@@ -14,7 +19,8 @@
org.jivesoftware.messenger.Presence" org.jivesoftware.messenger.Presence"
%> %>
<%-- Define Administration Bean --%> <%@ taglib uri="core" prefix="c"%>
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% webManager.init(request, response, session, application, out ); %> <% webManager.init(request, response, session, application, out ); %>
...@@ -29,9 +35,6 @@ ...@@ -29,9 +35,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
int start = ParamUtils.getIntParameter(request,"start",0); int start = ParamUtils.getIntParameter(request,"start",0);
int range = ParamUtils.getIntParameter(request,"range",15); int range = ParamUtils.getIntParameter(request,"range",15);
...@@ -50,8 +53,6 @@ ...@@ -50,8 +53,6 @@
DateFormat dateFormatter = DateFormat.getDateInstance(DateFormat.MEDIUM); DateFormat dateFormatter = DateFormat.getDateInstance(DateFormat.MEDIUM);
%> %>
<p> <p>
Below is a list of users in the system. Below is a list of users in the system.
</p> </p>
...@@ -85,10 +86,10 @@ Sorted by Username ...@@ -85,10 +86,10 @@ Sorted by Username
<% } %> <% } %>
<table cellpadding="3" cellspacing="0" border="0" width="600"> <div class="jive-table">
</table> <table cellpadding="0" cellspacing="0" border="0" width="100%">
<table class="jive-table" cellpadding="3" cellspacing="0" border="0" width="600"> <thead>
<tr > <tr>
<th>&nbsp;</th> <th>&nbsp;</th>
<th>Online</th> <th>Online</th>
<th>Username</th> <th>Username</th>
...@@ -96,7 +97,10 @@ Sorted by Username ...@@ -96,7 +97,10 @@ Sorted by Username
<th>Created</th> <th>Created</th>
<th>Edit</th> <th>Edit</th>
<th>Delete</th> <th>Delete</th>
</tr> </tr>
</thead>
<tbody>
<% // Print the list of users <% // Print the list of users
Iterator users = webManager.getUserManager().users(start, range); Iterator users = webManager.getUserManager().users(start, range);
if (!users.hasNext()) { if (!users.hasNext()) {
...@@ -158,7 +162,7 @@ Sorted by Username ...@@ -158,7 +162,7 @@ Sorted by Username
title="Click to edit..." title="Click to edit..."
><img src="images/edit-16x16.gif" width="17" height="17" border="0"></a> ><img src="images/edit-16x16.gif" width="17" height="17" border="0"></a>
</td> </td>
<td width="1%" align="center"> <td width="1%" align="center" style="border-right:1px #ccc solid;">
<a href="user-delete.jsp?username=<%= user.getUsername() %>" <a href="user-delete.jsp?username=<%= user.getUsername() %>"
title="Click to delete..." title="Click to delete..."
><img src="images/delete-16x16.gif" width="16" height="16" border="0"></a> ><img src="images/delete-16x16.gif" width="16" height="16" border="0"></a>
...@@ -168,6 +172,7 @@ Sorted by Username ...@@ -168,6 +172,7 @@ Sorted by Username
<% <%
} }
%> %>
</tbody>
</table> </table>
</div> </div>
......
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