Commit 647ec01b authored by Derek DeMoro's avatar Derek DeMoro Committed by derek

Updating to new admin ui


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@294 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7ecef4be
...@@ -264,7 +264,7 @@ public class WebManager extends WebBean { ...@@ -264,7 +264,7 @@ public class WebManager extends WebBean {
} }
} }
private void showServerDown() { protected void showServerDown() {
try { try {
response.sendRedirect("error-serverdown.jsp"); response.sendRedirect("error-serverdown.jsp");
} }
......
...@@ -9,12 +9,10 @@ ...@@ -9,12 +9,10 @@
java.util.Map, java.util.Map,
org.jivesoftware.messenger.user.UserManager, org.jivesoftware.messenger.user.UserManager,
org.jivesoftware.messenger.user.*, org.jivesoftware.messenger.user.*,
org.jivesoftware.messenger.user.spi.*" org.jivesoftware.messenger.user.spi.*,
%>
<%@ page import="org.jivesoftware.util.*,
java.util.*, java.util.*,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
org.jivesoftware.admin.*,
java.io.StringWriter, java.io.StringWriter,
java.io.StringWriter, java.io.StringWriter,
java.io.IOException, java.io.IOException,
...@@ -89,14 +87,16 @@ ...@@ -89,14 +87,16 @@
<!-- Define BreadCrumbs --> <jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<c:set var="title" value="Create User" /> <% // Title of this page and breadcrumbs
<c:set var="breadcrumbs" value="${webManager.breadCrumbs}" /> String title = "Create User";
<c:set target="${breadcrumbs}" property="Home" value="main.jsp" /> pageinfo.setTitle(title);
<c:set var="sbar" value="users" scope="page" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "main.jsp"));
<c:set target="${breadcrumbs}" property="${title}" value="user-create.jsp" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "user-create.jsp"));
<%@ include file="top.jsp" %> pageinfo.setPageID("user-create");
%>
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<c:set var="submit" value="${param.create}" /> <c:set var="submit" value="${param.create}" />
<c:set var="errors" value="${errors}" /> <c:set var="errors" value="${errors}" />
...@@ -110,7 +110,6 @@ ...@@ -110,7 +110,6 @@
<% } %> <% } %>
<form name="f" action="user-create.jsp" method="post"> <form name="f" action="user-create.jsp" method="post">
<table class="box" cellpadding="3" cellspacing="1" border="0" width="600"> <table class="box" cellpadding="3" cellspacing="1" border="0" width="600">
<tr class="tableHeaderBlue"><td colspan="2" align="center">Create New User</td></tr>
<tr><td class="text" colspan="2"> <tr><td class="text" colspan="2">
Use the form below to create a new user in the system. Use the form below to create a new user in the system.
</td></tr> </td></tr>
......
...@@ -7,18 +7,22 @@ ...@@ -7,18 +7,22 @@
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
org.jivesoftware.messenger.user.*, org.jivesoftware.messenger.user.*,
java.util.HashMap, java.util.HashMap,
org.jivesoftware.admin.*,
java.util.Map" %> java.util.Map" %>
<%-- Define Administration Bean --%> <%-- Define Administration Bean --%>
<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 ); %>
<!-- Define BreadCrumbs --> <jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<c:set var="title" value="User Search" /> <% // Title of this page and breadcrumbs
<c:set var="breadcrumbs" value="${admin.breadCrumbs}" /> String title = "User Search";
<c:set target="${breadcrumbs}" property="Home" value="main.jsp" /> pageinfo.setTitle(title);
<c:set target="${breadcrumbs}" property="${title}" value="user-search.jsp" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "main.jsp"));
<c:set var="sbar" value="users" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "user-search.jsp"));
pageinfo.setPageID("user-search");
%>
<jsp:include page="top.jsp" flush="true" /> <jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<% <%
...@@ -58,25 +62,14 @@ ...@@ -58,25 +62,14 @@
<% } %> <% } %>
<form name="f" action="user-search.jsp"> <form name="f" action="user-search.jsp">
<table cellpadding="3" cellspacing="1" border="0" width="600"> <table cellpadding="3" cellspacing="1" border="0" width="600">
<tr class="tableHeader"><td colspan="2" align="left">Search For User</td></tr>
<tr><td class="text" colspan="2"> <tr><td class="text" colspan="2">
Use the form below to search for users in the system. Currently, searches are keyed off userID Use the form below to search for users in the system.
or username.
<input type="hidden" name="search" value="true"> <input type="hidden" name="search" value="true">
<tr class="">
<td align="center">
or
</td>
<td>
&nbsp;
</td>
</tr>
<tr class="jive-even"> <tr class="jive-even">
<td class="jive-label"> <td width="1%">
Username: Username:
</td> </td>
<td> <td>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
java.util.Iterator, java.util.Iterator,
org.jivesoftware.messenger.user.UserManager, org.jivesoftware.messenger.user.UserManager,
java.text.DateFormat, java.text.DateFormat,
org.jivesoftware.admin.*,
org.jivesoftware.messenger.PresenceManager" org.jivesoftware.messenger.PresenceManager"
%> %>
...@@ -16,14 +17,17 @@ ...@@ -16,14 +17,17 @@
<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 ); %>
<!-- Define BreadCrumbs --> <jsp:useBean id="pageinfo" scope="request" class="org.jivesoftware.admin.AdminPageBean" />
<c:set var="title" value="User Summary" /> <% // Title of this page and breadcrumbs
<c:set var="breadcrumbs" value="${webManager.breadCrumbs}" /> String title = "User Summary";
<c:set var="image" value="/images/user.jpg" /> pageinfo.setTitle(title);
<c:set target="${breadcrumbs}" property="Home" value="main.jsp" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "main.jsp"));
<c:set target="${breadcrumbs}" property="${title}" value="user-summary.jsp" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "user-summary.jsp"));
<c:set var="sbar" value="users"/> pageinfo.setPageID("user-summary");
<%@ include file="top.jsp" %> %>
<jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
......
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