Commit 7f8c99ff authored by Bill Lynch's avatar Bill Lynch Committed by bill

Cleanup


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@373 b35dd754-fafc-0310-a699-88a17e54d16e
parent 65f4fdf5
...@@ -267,7 +267,7 @@ PRE, TT { ...@@ -267,7 +267,7 @@ PRE, TT {
border-style : solid; border-style : solid;
border-width : 1px 1px 0px 1px; border-width : 1px 1px 0px 1px;
} }
.jive-table .c1 { .jive-table .c1, fieldset .c1 {
width : 30%; width : 30%;
} }
.jive-table TH, .jive-table TD { .jive-table TH, .jive-table TD {
......
<%@ 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.*,
org.jivesoftware.messenger.user.*, org.jivesoftware.messenger.user.*,
org.jivesoftware.admin.*, org.jivesoftware.admin.*,
org.jivesoftware.messenger.XMPPAddress" org.jivesoftware.messenger.XMPPAddress"
errorPage="error.jsp"
%> %>
<%@ 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 ); %>
<% // Get parameters // <% // Get parameters //
boolean cancel = request.getParameter("cancel") != null; boolean cancel = request.getParameter("cancel") != null;
boolean delete = request.getParameter("delete") != null; boolean delete = request.getParameter("delete") != null;
...@@ -49,11 +55,6 @@ ...@@ -49,11 +55,6 @@
} }
%> %>
<c:set var="sbar" value="users" scope="page" />
<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 = "Delete User"; String title = "Delete User";
...@@ -63,14 +64,9 @@ ...@@ -63,14 +64,9 @@
pageinfo.setSubPageID("user-delete"); pageinfo.setSubPageID("user-delete");
pageinfo.setExtraParams("username="+username); pageinfo.setExtraParams("username="+username);
%> %>
<c:set var="tab" value="delete" />
<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" />
<%@ include file="user-tabs.jsp" %>
<p> <p>
Are you sure you want to delete the user Are you sure you want to delete the user
<b><a href="user-properties.jsp?username=<%= user.getUsername() %>"><%= user.getUsername() %></a></b> <b><a href="user-properties.jsp?username=<%= user.getUsername() %>"><%= user.getUsername() %></a></b>
...@@ -90,4 +86,4 @@ from the system? ...@@ -90,4 +86,4 @@ from the system?
<input type="submit" name="cancel" value="Cancel"> <input type="submit" name="cancel" value="Cancel">
</form> </form>
<%@ include file="footer.jsp" %> <jsp:include page="bottom.jsp" flush="true" />
<%@ 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,9 +15,12 @@ ...@@ -10,9 +15,12 @@
org.jivesoftware.messenger.auth.AuthFactory, org.jivesoftware.messenger.auth.AuthFactory,
org.jivesoftware.messenger.user.*, org.jivesoftware.messenger.user.*,
org.jivesoftware.admin.AdminPageBean" org.jivesoftware.admin.AdminPageBean"
errorPage="error.jsp"
%> %>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<%@ taglib uri="core" prefix="c"%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" />
<% // Get parameters // <% // Get parameters //
boolean cancel = request.getParameter("cancel") != null; boolean cancel = request.getParameter("cancel") != null;
...@@ -37,7 +45,7 @@ ...@@ -37,7 +45,7 @@
if (password != null && passwordConfirm != null && password.equals(passwordConfirm)) { if (password != null && passwordConfirm != null && password.equals(passwordConfirm)) {
user.setPassword(password); user.setPassword(password);
// Done, so redirect // Done, so redirect
response.sendRedirect("user-password-success.jsp?username=" + username); response.sendRedirect("user-password.jsp?success=true&username=" + username);
return; return;
} }
else { else {
...@@ -46,7 +54,6 @@ ...@@ -46,7 +54,6 @@
} }
%> %>
<c:set var="sbar" value="users" scope="page" />
<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 = "Change Password"; String title = "Change Password";
...@@ -56,68 +63,88 @@ ...@@ -56,68 +63,88 @@
pageinfo.setSubPageID("user-password"); pageinfo.setSubPageID("user-password");
pageinfo.setExtraParams("username="+username); pageinfo.setExtraParams("username="+username);
%> %>
<c:set var="tab" value="pass" />
<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" />
<%@ include file="user-tabs.jsp" %>
<br>
<% if (errors) { %> <% if (errors) { %>
<p class="jive-error-text"> <div class="jive-error">
<table cellpadding="0" cellspacing="0" border="0">
<tbody>
<tr><td class="jive-icon"><img src="images/error-16x16.gif" width="16" height="16" border="0"></td>
<td class="jive-icon-label">
Error setting the password. Please make sure the password you enter is valid and Error setting the password. Please make sure the password you enter is valid and
matches the confirmation password. matches the confirmation password.
</p> </td></tr>
</tbody>
</table>
</div><br>
<% } else if (request.getParameter("success") != null) { %>
<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">
Password updated successfully.
</td></tr>
</tbody>
</table>
</div><br>
<% } %> <% } %>
<table cellpadding="3" cellspacing="1" border="0" width="600">
<form action="user-password.jsp" name="passform">
<tr><td colspan="2" class="text">
Use the form below to change the user's password
</td></tr>
</table>
<table cellpadding="3" cellspacing="1" border="0">
<input type="hidden" name="username" value="<%= username %>"> <p>
Use the form below to change the user's password.
</p>
<form action="user-password.jsp" name="passform" method="post">
<input type="hidden" name="username" value="<%= username %>">
<tr> <fieldset>
<legend>Change Password</legend>
<div>
<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tbody>
<tr>
<td class="c1"> <td class="c1">
User ID: User ID:
</td> </td>
<td class="c2"> <td class="c2">
<%= user.getUsername() %> <%= user.getUsername() %>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="c1"> <td class="c1">
Username: Username:
</td> </td>
<td class="c2"> <td class="c2">
<%= user.getUsername() %> <%= user.getUsername() %>
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="c1"> <td class="c1">
New Password: New Password:
</td> </td>
<td clas="c2"> <td clas="c2">
<input type="password" name="password" value="" size="20" maxlength="50"> <input type="password" name="password" value="" size="20" maxlength="50">
</td> </td>
</tr> </tr>
<tr> <tr>
<td class="c1"> <td class="c1">
Confirm New Password: Confirm New Password:
</td> </td>
<td class="c2"> <td class="c2">
<input type="password" name="passwordConfirm" value="" size="20" maxlength="50"> <input type="password" name="passwordConfirm" value="" size="20" maxlength="50">
</td> </td>
</tr> </tr>
</table> </tbody>
</table>
</div>
</fieldset>
<br> <br><br>
<input type="submit" value="Update Password" name="update"> <input type="submit" value="Update Password" name="update">
<input type="submit" value="Cancel" name="cancel"> <input type="submit" value="Cancel" name="cancel">
......
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