<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--
Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0,
and the EPL 1.0 (http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
<html><head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=0.9" />
    <title>${text.a.title}</title>
    <link rel="stylesheet" type="text/css" href="stylesheet.css" />
</head>
<body style="margin: 20px">
    <h1>
        ${text.adminTitle}
    </h1>
    <p>
        <a href="index.do?jsessionid=${sessionId}">${text.adminLogout}</a>
    </p>
    <hr />
    <form name="admin" method="post" action="adminSave.do?jsessionid=${sessionId}">
    <h3>
        ${text.adminAllow}
    </h3>
    <p>
        <c:if test="allowOthers=='false'">
            <input type="radio" name="allowOthers" value="false" checked="checked" />
        </c:if>
        <c:if test="allowOthers=='true'">
            <input type="radio" name="allowOthers" value="false" />
        </c:if>
        ${text.adminLocal}<br />

        <c:if test="allowOthers=='true'">
            <input type="radio" name="allowOthers" value="true" checked="checked" />
        </c:if>
        <c:if test="allowOthers=='false'">
            <input type="radio" name="allowOthers" value="true" />
        </c:if>
        ${text.adminOthers}<br />
    </p>
    <h3>
        ${text.adminConnection}
    </h3>
    <p>
        <c:if test="ssl=='false'">
            <input type="radio" name="ssl" value="false" checked="checked" />
        </c:if>
        <c:if test="ssl=='true'">
            <input type="radio" name="ssl" value="false" />
        </c:if>
        ${text.adminHttp}<br />

        <c:if test="ssl=='true'">
            <input type="radio" name="ssl" value="true" checked="checked" />
        </c:if>
        <c:if test="ssl=='false'">
            <input type="radio" name="ssl" value="true" />
        </c:if>
        ${text.adminHttps}<br />
    </p>
    <h3>
        ${text.adminPort}
    </h3>
    <p>
        ${text.adminPortWeb}: <input type="text" name="port" value="${port}" />
    </p>
    <hr />
    <p>
        <input type="submit" class="button" value="${text.adminSave}" />
    </p>
    <p>
        ${text.adminRestart}
    </p>
    </form>
    <hr />
    <p>
        <form name="translate" method="post" action="adminStartTranslate.do?jsessionid=${sessionId}">
            <input type="submit" class="button" value="${text.adminTranslateStart}" />
        </form>
    </p>
    <p>
        ${text.adminTranslateHelp}
    </p>
    <hr />
    <h3>
        ${text.adminSessions}
    </h3>
    <table>
        <tr>
            <th>${text.admin.ip}</th>
            <th>${text.admin.url}</th>
            <th>${text.a.user}</th>
            <th>${text.admin.executing}</th>
            <th>${text.admin.lastAccess}</th>
            <th>${text.admin.lastQuery}</th>
        </tr>
        <c:forEach var="item" items="sessions">
            <tr>
                <td>
                    ${item.ip}
                </td>
                <td>
                    ${item.url}
                </td>
                <td>
                    ${item.user}
                </td>
                <td>
                    ${item.executing}
                </td>
                <td>
                    ${item.lastAccess}
                </td>
                <td>
                    ${item.lastQuery}
                </td>
            </tr>
        </c:forEach>
    </table>
    <br />
    <form name="shutdown" method="post" action="adminShutdown.do?jsessionid=${sessionId}">
        <input type="submit" class="button" value="${text.adminShutdown}" />
    </form>
</body></html>