Commit 483a9a82 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@295 b35dd754-fafc-0310-a699-88a17e54d16e
parent 647ec01b
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
java.util.Iterator, java.util.Iterator,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
java.util.Date, java.util.Date,
org.jivesoftware.admin.*,
java.text.DateFormat, java.text.DateFormat,
org.jivesoftware.messenger.handler.IQAuthHandler" %> org.jivesoftware.messenger.handler.IQAuthHandler" %>
...@@ -15,14 +16,16 @@ ...@@ -15,14 +16,16 @@
<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="Session Settings" /> <% // Title of this page and breadcrumbs
<c:set var="breadcrumbs" value="${admin.breadCrumbs}" /> String title = "Session Settings";
<c:set target="${breadcrumbs}" property="Home" value="main.jsp" /> pageinfo.setTitle(title);
<c:set target="${breadcrumbs}" property="${title}" value="session-settings.jsp" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "main.jsp"));
<c:set var="sbar" value="session" scope="page" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "session-settings.jsp"));
pageinfo.setPageID("session-settings");
%>
<jsp:include page="top.jsp" flush="true" /> <jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<c:set var="success" value="${param.success}" /> <c:set var="success" value="${param.success}" />
...@@ -54,7 +57,7 @@ ...@@ -54,7 +57,7 @@
<form action="session-settings.jsp" method="post"> <form action="session-settings.jsp" method="post">
<table cellpadding="3" cellspacing="1" border="0" width="600"> <table cellpadding="3" cellspacing="1" border="0" width="600">
<tr class="tableHeader"><td colspan="3" align="left">Anonymous Logins</td></tr>
<tr><td colspan=3 class="text"> <tr><td colspan=3 class="text">
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
java.util.Iterator, java.util.Iterator,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
java.util.Date, java.util.Date,
org.jivesoftware.admin.*,
java.text.DateFormat" %> java.text.DateFormat" %>
...@@ -16,13 +17,16 @@ ...@@ -16,13 +17,16 @@
<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="Session Summary" /> <% // Title of this page and breadcrumbs
<c:set var="breadcrumbs" value="${admin.breadCrumbs}" /> String title = "Session Summary";
<c:set target="${breadcrumbs}" property="Home" value="main.jsp" /> pageinfo.setTitle(title);
<c:set target="${breadcrumbs}" property="${title}" value="session-summary.jsp" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "main.jsp"));
<c:set var="sbar" value="session" scope="page" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "session-summary.jsp"));
pageinfo.setPageID("session-summary");
%>
<jsp:include page="top.jsp" flush="true" /> <jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
<%@ page import="org.jivesoftware.util.*, <%@ page import="org.jivesoftware.util.*,
java.util.Iterator, java.util.Iterator,
org.jivesoftware.messenger.*, org.jivesoftware.messenger.*,
org.jivesoftware.admin.*,
java.util.Date, java.util.Date,
java.text.DateFormat, java.text.DateFormat,
java.util.HashMap, java.util.HashMap,
...@@ -31,16 +32,19 @@ ...@@ -31,16 +32,19 @@
<%-- Define Administration Bean --%> <%-- Define Administration Bean --%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager" /> <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
<% admin.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="Send Administrative Message" /> <% // Title of this page and breadcrumbs
<c:set var="breadcrumbs" value="${admin.breadCrumbs}" /> String title = "Send Administrative Message";
<c:set target="${breadcrumbs}" property="Home" value="main.jsp" /> pageinfo.setTitle(title);
<c:set target="${breadcrumbs}" property="${title}" value="test" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb("Main", "main.jsp"));
<c:set var="sbar" value="session" scope="page" /> pageinfo.getBreadcrumbs().add(new AdminPageBean.Breadcrumb(title, "user-message.jsp"));
pageinfo.setPageID("user-message");
%>
<jsp:include page="top.jsp" flush="true" /> <jsp:include page="top.jsp" flush="true" />
<jsp:include page="title.jsp" flush="true" />
<% <%
...@@ -60,11 +64,11 @@ ...@@ -60,11 +64,11 @@
// Get the user - a user might not be passed in if this is a system-wide message // Get the user - a user might not be passed in if this is a system-wide message
User user = null; User user = null;
if (username != null) { if (username != null) {
user = admin.getUserManager().getUser(username); user = webManager.getUserManager().getUser(username);
} }
// Get the session manager // Get the session manager
SessionManager sessionManager = admin.getSessionManager(); SessionManager sessionManager = webManager.getSessionManager();
// Handle the request to send a message: // Handle the request to send a message:
Map errors = new HashMap(); Map errors = new HashMap();
......
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