license-details.jsp 3 KB
Newer Older
Matt Tucker's avatar
Matt Tucker committed
1 2 3 4 5 6 7 8 9 10 11 12
<%--
  -	$RCSfile$
  -	$Revision$
  -	$Date$
--%>

<%@ page import="org.jivesoftware.messenger.container.*,
                 java.text.DateFormat,
                 java.util.HashMap,
                 java.util.Map,
                 org.jivesoftware.util.*" %>

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

Bill Lynch's avatar
Bill Lynch committed
16
<%-- Define Administration Bean --%>
Matt Tucker's avatar
Matt Tucker committed
17 18 19 20 21 22
<jsp:useBean id="admin" class="org.jivesoftware.util.WebManager"  />
<% admin.init(request, response, session, application, out ); %>

<!-- Define BreadCrumbs -->
<c:set var="title" value="License Details"  />
<c:set var="breadcrumbs" value="${admin.breadCrumbs}"  />
Bill Lynch's avatar
Bill Lynch committed
23
<c:set target="${breadcrumbs}" property="Home" value="index.jsp" />
Matt Tucker's avatar
Matt Tucker committed
24
<c:set target="${breadcrumbs}" property="${title}" value="license-details.jsp" />
Bill Lynch's avatar
Bill Lynch committed
25
<jsp:include page="top.jsp" flush="true" />
Matt Tucker's avatar
Matt Tucker committed
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47

<%  // Get parameters
    String licenseText = ParamUtils.getParameter(request,"licenseText");
    boolean loadNew = request.getParameter("loadNew") != null;

    // Handle a new license
    Map errors = new HashMap();
    if (loadNew) {
        // Validate
        if (licenseText == null) {
            errors.put("licenseText","licenseText");
        }
        // if no errors, continue
        if (errors.size() == 0) {
        }
    }

    // Date dateFormatter for all dates on this page:
    DateFormat dateFormatter = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,DateFormat.SHORT);
%>

<p>
48
<fmt:message key="license.details.info" /> <fmt:message key="short.title" /> <fmt:message key="license.details.info1" />
Matt Tucker's avatar
Matt Tucker committed
49 50 51 52
</p>


<table class="box" cellpadding="3" cellspacing="1" border="0" width="600">
53
<tr class="tableHeaderBlue"><td colspan="2" align="center"><fmt:message key="short.title" /> <fmt:message key="license.details.details" /></td></tr>
Matt Tucker's avatar
Matt Tucker committed
54 55
<tr>
    <td class="jive-label">
56
        <fmt:message key="license.details.type" />
Matt Tucker's avatar
Matt Tucker committed
57 58 59 60 61 62 63
    </td>
    <td>

    </td>
</tr>
<tr>
    <td class="jive-label">
64
        <fmt:message key="license.details.max_session" />
Matt Tucker's avatar
Matt Tucker committed
65 66
    </td>
    <td>
67
       <fmt:message key="license.details.unlimited" />
Matt Tucker's avatar
Matt Tucker committed
68 69 70 71
    </td>
</tr>
<tr>
    <td class="jive-label">
72
        <fmt:message key="license.details.expiration_date" />
Matt Tucker's avatar
Matt Tucker committed
73 74 75 76
    </td>
    <td>


77
            <fmt:message key="license.details.expiration_date_never" />
Matt Tucker's avatar
Matt Tucker committed
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121


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

<%--

<br>

<p>
<b>Update License</b>
</p>

<p>
You can update your license by entering new license text below and clicking
"Update License". Note, this will first verify the license before overriding your
current one.
</p>

<form action="license-details.jsp" method="post">

<div class="jive-table">
<table cellpadding="3" cellspacing="1" border="0" width="100%">
<tr valign="top">
    <td class="jive-label">
        New License Text:
    </td>
    <td>
        <textarea cols="50" rows="6" wrap="virtual" name="licenseText"></textarea>
    </td>
</tr>
</table>
</div>

<br>

<input type="submit" name="loadNew" value="Update License">

</form>

--%>

Bill Lynch's avatar
Bill Lynch committed
122
<jsp:include page="bottom.jsp" flush="true" />