license-details.jsp 2.73 KB
Newer Older
Matt Tucker's avatar
Matt Tucker committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<%@ taglib uri="core" prefix="c"%>
<%@ taglib uri="fmt" prefix="fmt" %>
<%--
  -	$RCSfile$
  -	$Revision$
  -	$Date$
--%>

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

Bill Lynch's avatar
Bill Lynch committed
15
<%-- Define Administration Bean --%>
Matt Tucker's avatar
Matt Tucker committed
16 17 18 19 20 21
<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
22
<c:set target="${breadcrumbs}" property="Home" value="index.jsp" />
Matt Tucker's avatar
Matt Tucker committed
23
<c:set target="${breadcrumbs}" property="${title}" value="license-details.jsp" />
Bill Lynch's avatar
Bill Lynch committed
24
<jsp:include page="top.jsp" flush="true" />
Matt Tucker's avatar
Matt Tucker committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 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 76 77 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 122
  


<%  // 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>
The following is a summary of your <fmt:message key="short.title" bundle="${lang}" /> license.
</p>


<table class="box" cellpadding="3" cellspacing="1" border="0" width="600">
<tr class="tableHeaderBlue"><td colspan="2" align="center"><fmt:message key="short.title" bundle="${lang}" /> License Details</td></tr>
<tr>
    <td class="jive-label">
        License Type:
    </td>
    <td>

    </td>
</tr>
<tr>
    <td class="jive-label">
        Maximum Allowable Sessions:
    </td>
    <td>
       Unlimited
    </td>
</tr>
<tr>
    <td class="jive-label">
        Expiration Date:
    </td>
    <td>


            Never


    </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
123
<jsp:include page="bottom.jsp" flush="true" />