source: apps/routerconsole/jsp/configui.jsp @ bef8fe0

Last change on this file since bef8fe0 was bef8fe0, checked in by zzz <zzz@…>, 9 years ago

spacing

  • Property mode set to 100644
File size: 2.5 KB
Line 
1<%@page contentType="text/html"%>
2<%@page pageEncoding="UTF-8"%>
3<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
5<html><head>
6<%@include file="css.jsi" %>
7<%=intl.title("config UI")%>
8</head><body>
9
10<%@include file="summary.jsi" %>
11
12<jsp:useBean class="net.i2p.router.web.ConfigUIHelper" id="uihelper" scope="request" />
13<jsp:setProperty name="uihelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
14
15<h1><%=uihelper._("I2P UI Configuration")%></h1>
16<div class="main" id="main">
17
18 <%@include file="confignav.jsi" %>
19
20 <jsp:useBean class="net.i2p.router.web.ConfigUIHandler" id="formhandler" scope="request" />
21 <% formhandler.storeMethod(request.getMethod()); %>
22 <jsp:setProperty name="formhandler" property="*" />
23 <jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
24 <jsp:getProperty name="formhandler" property="allMessages" />
25<div class="configure"><div class="topshimten"><h3><%=uihelper._("Router Console Theme")%></h3></div>
26 <form action="" method="POST">
27<%
28    /** lang setting is done in css.jsi, not in ConfigUIHandler */
29    String consoleNonce = System.getProperty("router.consoleNonce");
30    if (consoleNonce == null) {
31        consoleNonce = Long.toString(new java.util.Random().nextLong());
32        System.setProperty("router.consoleNonce", consoleNonce);
33    }
34%>
35 <input type="hidden" name="consoleNonce" value="<%=consoleNonce%>" >
36 <input type="hidden" name="nonce" value="<jsp:getProperty name="formhandler" property="newNonce" />" >
37 <input type="hidden" name="action" value="blah" >
38<%
39 String userAgent = request.getHeader("User-Agent");
40 if (userAgent == null || !userAgent.contains("MSIE")) {
41%>
42 <jsp:getProperty name="uihelper" property="settings" />
43<% } else { %>
44<%=uihelper._("Theme selection disabled for Internet Explorer, sorry.")%>
45<hr>
46<%=uihelper._("If you're not using IE, it's likely that your browser is pretending to be IE; please configure your browser (or proxy) to use a different User Agent string if you'd like to access the console themes.")%>
47<% } %>
48<h3><%=uihelper._("Router Console Language")%></h3>
49<jsp:getProperty name="uihelper" property="langSettings" />
50<p><%=uihelper._("Please contribute to the router console translation project! Contact the developers in #i2p-dev on IRC to help.")%>
51</p><hr><div class="formaction">
52<input type="reset" value="<%=intl._("Cancel")%>" >
53<input type="submit" name="shouldsave" value="<%=intl._("Apply")%>" >
54</div></form></div>
55</div></body></html>
Note: See TracBrowser for help on using the repository browser.