server-stopped.jsp 3.5 KB
Newer Older
Gaston Dombiak's avatar
Gaston Dombiak committed
1 2 3 4 5 6
<%--
  -	$RCSfile$
  -	$Revision$
  -	$Date$
--%>

7 8
<%@ page import="org.jivesoftware.admin.AdminConsole,
                 org.jivesoftware.util.LocaleUtils"%>
Gaston Dombiak's avatar
Gaston Dombiak committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>

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

<%-- Define Administration Bean --%>
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager"  />
<% admin.init(request, response, session, application, out ); %>

<%  boolean restart = request.getParameter("restart") != null;

    String path = request.getContextPath();

    // Title of this page
24
    String title = restart ? LocaleUtils.getLocalizedString("server.stopped.title_restarting") : LocaleUtils.getLocalizedString("server.stopped.title_stopped");
Gaston Dombiak's avatar
Gaston Dombiak committed
25 26 27 28 29 30
    pageinfo.setTitle(title);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
31
 <title><%= AdminConsole.getAppName() %> <fmt:message key="server.stopped.admin_console" /><%= (pageinfo.getTitle() != null ? (": "+pageinfo.getTitle()) : "") %></title>
Gaston Dombiak's avatar
Gaston Dombiak committed
32
 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
33
 <meta name="decorator" content="false"/>
Gaston Dombiak's avatar
Gaston Dombiak committed
34 35 36 37 38 39 40 41 42 43
 <link rel="stylesheet" type="text/css" href="<%= path %>/style/global.css">
</head>

<body>

<div id="jive-header">
<table cellpadding="0" cellspacing="0" width="100%" border="0">
<tbody>
    <tr>
     <td>
44
         <img src="<%= path %>/<%= AdminConsole.getLogoImage() %>" border="0" alt="<%= AdminConsole.getAppName() %> <fmt:message key="server.stopped.admin_console" />">
Gaston Dombiak's avatar
Gaston Dombiak committed
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
     </td>
     <td align="right">
         <table cellpadding="0" cellspacing="0" border="0">
         <tr>
             <td>&nbsp;</td>
             <td class="info">
                 <nobr><%= AdminConsole.getAppName() %> <%= AdminConsole.getVersionString() %></nobr>
             </td>
         </tr>
         </table>
     </td>
    </tr>
</tbody>
</table>
</div>

<div id="jive-main">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>
    <tr valign="top">
        <td width="1%">
            <div id="jive-sidebar">
                <img src="<%= path %>/images/blank.gif" width="5" height="1" border="0" alt="">
            </div>
        </td>
        <td width="99%" id="jive-content">

        <jsp:include page="title.jsp" flush="true" />

        <% if (restart) { %>
            <p>
76
            <fmt:message key="server.stopped.restarted" />
Gaston Dombiak's avatar
Gaston Dombiak committed
77 78 79 80
            </p>

            <ol>
                <li>
81
                    <fmt:message key="server.stopped.wait_time" />
Gaston Dombiak's avatar
Gaston Dombiak committed
82 83
                </li>
                <li>
84
                    <a href="index.jsp"><fmt:message key="server.stopped.login_console" /></a>.
Gaston Dombiak's avatar
Gaston Dombiak committed
85 86 87 88
                </li>
            </ol>
        <% } else { %>
            <p>
89
                   <fmt:message key="server.stopped.stop" />
Gaston Dombiak's avatar
Gaston Dombiak committed
90 91 92 93
            </p>

            <ol>
                <li>
94
                    <fmt:message key="server.stopped.wait_restarted" /> <b style="font-size:1.2em;"><fmt:message key="global.restart" /></b> <fmt:message key="server.stopped.wait_restarted2" />
Gaston Dombiak's avatar
Gaston Dombiak committed
95 96
                </li>
                <li>
97
                    <a href="index.jsp"><fmt:message key="server.stopped.login_console" /></a>.
Gaston Dombiak's avatar
Gaston Dombiak committed
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
                </li>
            </ol>
        <% } %>

        </td>
    </tr>
</tbody>
</table>
</div>

</body>
</html>

<%  // Flush all the contents before the server is stopped
    out.flush();

    if (restart) {
        admin.restart();
    }
    else {
        admin.stop();
    }
%>