main.jsp 6.92 KB
Newer Older
1 2 3 4
<%--
  -	$Revision: 2701 $
  -	$Date: 2005-08-19 16:48:22 -0700 (Fri, 19 Aug 2005) $
  -
5
  - Copyright (C) 2004-2005 Jive Software. All rights reserved.
6 7 8 9 10 11 12 13 14
  -
  - 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.StringUtils,
                 org.jivesoftware.admin.AdminConsole,
                 org.jivesoftware.util.LocaleUtils"
    errorPage="../error.jsp"
15
%><%@ page import="org.xmpp.packet.JID"%>
16 17 18 19 20 21 22 23

<%@ taglib uri="admin" prefix="admin" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/page" prefix="page" %>

<jsp:useBean id="info" scope="request" class="org.jivesoftware.admin.AdminPageBean" />

24 25
<jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager"  />
<% webManager.init(request, response, session, application, out); %>
26 27 28 29 30 31 32 33 34 35 36

<decorator:usePage id="decoratedPage" />

<%
    String path = request.getContextPath();
    // Decorated pages will typically must set a pageID and optionally set a subPageID
    // and extraParams. Store these values as request attributes so that the tab and sidebar
    // handling tags can get at the data.
    request.setAttribute("pageID", decoratedPage.getProperty("meta.pageID"));
    request.setAttribute("subPageID", decoratedPage.getProperty("meta.subPageID"));
    request.setAttribute("extraParams", decoratedPage.getProperty("meta.extraParams"));
37 38 39

    // Message HTML can be passed in:
    String message = decoratedPage.getProperty("page.message");
40 41 42 43
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

44
<fmt:setBundle basename="openfire_i18n"/>
45 46 47
<html>
<head>
    <title><%= AdminConsole.getAppName() %> <fmt:message key="login.title" />: <decorator:title /></title>
48
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
49
    <link rel="stylesheet" type="text/css" href="<%= path %>/style/global.css">
50 51
    <script language="JavaScript" type="text/javascript" src="<%= path %>/js/prototype.js"></script>
    <script language="JavaScript" type="text/javascript" src="<%= path %>/js/scriptaculous.js"></script>
52
    <script language="JavaScript" type="text/javascript" src="<%= path %>/js/cookies.js"></script>
53
    <script language="JavaScript" type="text/javascript">
Matt Tucker's avatar
Matt Tucker committed
54

55
    </script>
56 57 58 59
    <script type="text/javascript" src="<%= path %>/js/behaviour.js"></script>
    <script type="text/javascript">
    // Add a nice little rollover effect to any row in a jive-table object. This will help
    // visually link left and right columns.
60
    /*
61 62 63
    var myrules = {
        '.jive-table TBODY TR' : function(el) {
            el.onmouseover = function() {
64
                this.style.backgroundColor = '#ffffee';
65 66 67 68 69 70 71
            }
            el.onmouseout = function() {
                this.style.backgroundColor = '#ffffff';
            }
        }
    };
    Behaviour.register(myrules);
72
    */
73
    </script>
74
    <decorator:head />
75 76 77 78
</head>

<body id="jive-body">

Matt Tucker's avatar
Matt Tucker committed
79 80 81 82
<!-- BEGIN main -->
<div id="main">

    <div id="jive-header">
83 84
        <div id="jive-logo">
            <a href="/index.jsp"><img src="/images/login_logo.gif" alt="Openfire" width="179" height="53" /></a>
Matt Tucker's avatar
Matt Tucker committed
85
        </div>
86 87 88
        <div id="jive-userstatus">
            <%= AdminConsole.getAppName() %> <%= AdminConsole.getVersionString() %><br/>
            <fmt:message key="admin.logged_in_as"><fmt:param value="<%= "<strong>"+StringUtils.escapeHTMLTags(JID.unescapeNode(webManager.getUser().getUsername()))+"</strong>" %>"/></fmt:message> - <a href="<%= path %>/index.jsp?logout=true"><%= LocaleUtils.getLocalizedString("global.logout") %></a>
Matt Tucker's avatar
Matt Tucker committed
89
        </div>
90 91
        <div id="jive-nav">
            <div id="jive-nav-left"></div>
Matt Tucker's avatar
Matt Tucker committed
92 93 94
            <admin:tabs css="" currentcss="currentlink">
            <a href="[url]" title="[description]" onmouseover="self.status='[description]';return true;" onmouseout="self.status='';return true;">[name]</a>
            </admin:tabs>
95 96 97
            <div id="jive-nav-right"></div>
        </div>
        <div id="jive-subnav">
98 99 100 101 102
            <admin:subnavbar css="" currentcss="current">
                <a href="[url]" title="[description]"
                  onmouseover="self.status='[description]';return true;" onmouseout="self.status='';return true;"
                  >[name]</a>
            </admin:subnavbar>
Matt Tucker's avatar
Matt Tucker committed
103 104 105 106 107 108 109
        </div>
    </div>

    <div id="jive-main">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tbody>
        <tr valign="top">
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
            <td width="1%">
                <div id="jive-sidebar-container">
                    <div id="jive-sidebar-box">
                        <div id="jive-sidebar">
                            <admin:sidebar css="" currentcss="currentlink" headercss="category">
                                <a href="[url]" title="[description]"
                                  onmouseover="self.status='[description]';return true;" onmouseout="self.status='';return true;"
                                  >[name]</a>
                                 <admin:subsidebar css="" currentcss="currentlink">
                                    <a href="[url]" title="[description]"
                                     onmouseover="self.status='[description]';return true;" onmouseout="self.status='';return true;"
                                     >[name]</a>
                                 </admin:subsidebar>
                            </admin:sidebar>
                            <br>
                            <img src="<%= path %>/images/blank.gif" width="150" height="1" border="0" alt="">
                        </div>
                    </div>
Matt Tucker's avatar
Matt Tucker committed
128 129 130
                </div>
            </td>
            <td width="99%" id="jive-content">
131

132

Matt Tucker's avatar
Matt Tucker committed
133
                <%  if (message != null) { %>
134

Matt Tucker's avatar
Matt Tucker committed
135 136 137 138
                    <%= message %>

                <%  } %>

139
                <h1>
Matt Tucker's avatar
Matt Tucker committed
140
                    <decorator:title default="&nbsp;"/>
141
                </h1>
142

143 144 145
                <div id="jive-main-content">
                    <decorator:body/>
                </div>
Matt Tucker's avatar
Matt Tucker committed
146 147 148 149 150 151
            </td>
        </tr>
    </tbody>
    </table>
    </div>

152
</div>
Matt Tucker's avatar
Matt Tucker committed
153 154 155
<!-- END main -->

<!-- BEGIN footer -->
156 157 158 159 160 161 162 163
	<div id="jive-footer">
        <div class="jive-footer-nav">
            <admin:tabs css="" currentcss="currentlink" justlinks="true">
            <a href="[url]" title="[description]" onmouseover="self.status='[description]';return true;" onmouseout="self.status='';return true;">[name]</a>
            </admin:tabs>
        </div>
        <div class="jive-footer-copyright">
            Built by <a href="http://www.jivesoftware.com">Jive Software</a> and the <a href="http://www.igniterealtime.org">IgniteRealtime.org</a> community
Matt Tucker's avatar
Matt Tucker committed
164 165 166
        </div>
    </div>
<!-- END footer -->
167 168

</body>
169
</html>