Changeset 642376b0


Ignore:
Timestamp:
Mar 21, 2011 2:27:46 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
61590d3, ddddc68
Parents:
3ba9f872
Message:

HTML fixes

Location:
apps/i2ptunnel/jsp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/jsp/edit.jsp

    r3ba9f872 r642376b0  
    1 <%@page pageEncoding="UTF-8"%>
    2 <%@page contentType="text/html" import="net.i2p.i2ptunnel.web.EditBean" %><%
     1<%
     2    // NOTE: Do the header carefully so there is no whitespace before the <?xml... line
     3
     4%><%@page pageEncoding="UTF-8"
     5%><%@page contentType="text/html" import="net.i2p.i2ptunnel.web.EditBean"
     6%><%
    37String tun = request.getParameter("tunnel");
    48 if (tun != null) {
     
    610    int curTunnel = Integer.parseInt(tun);
    711    if (EditBean.staticIsClient(curTunnel)) {
    8     %><jsp:include page="editClient.jsp" /><%
     12        %><jsp:include page="editClient.jsp" /><%
    913    } else {
    10     %><jsp:include page="editServer.jsp" /><%
     14        %><jsp:include page="editServer.jsp" /><%
    1115    }
    1216  } catch (NumberFormatException nfe) {
     
    1721  int curTunnel = -1;
    1822  if (EditBean.isClient(type)) {
    19     %><jsp:include page="editClient.jsp" /><%
     23        %><jsp:include page="editClient.jsp" /><%
    2024  } else {
    21     %><jsp:include page="editServer.jsp" /><%
     25        %><jsp:include page="editServer.jsp" /><%
    2226  }
    2327}
  • apps/i2ptunnel/jsp/editServer.jsp

    r3ba9f872 r642376b0  
    189189                <textarea rows="1" style="height: 3em;" cols="60" readonly="readonly" id="localDestination" title="Read Only: Local Destination (if known)" wrap="off" spellcheck="false"><%=editBean.getDestinationBase64(curTunnel)%></textarea>               
    190190         <% if (!"".equals(editBean.getDestinationBase64(curTunnel))) { %>   
    191             <a href="/susidns/addressbook.jsp?book=private&hostname=<%=editBean.getTunnelName(curTunnel)%>&destination=<%=editBean.getDestinationBase64(curTunnel)%>#add"><%=intl._("Add to local addressbook")%></a>   
     191            <a href="/susidns/addressbook.jsp?book=private&amp;hostname=<%=editBean.getTunnelName(curTunnel)%>&amp;destination=<%=editBean.getDestinationBase64(curTunnel)%>#add"><%=intl._("Add to local addressbook")%></a>   
    192192         <% } %>
    193193            </div>
     
    341341                    <%=intl._("Generate New Key")%>:
    342342                </label>
    343                 <button id="controlSave" accesskey="S" class="control" type="submit" name="action" value="Generate" title="Generate New Key Now"><%=intl._("Generate")%></button>
     343                <button accesskey="S" class="control" type="submit" name="action" value="Generate" title="Generate New Key Now"><%=intl._("Generate")%></button>
    344344                <span class="comment"><%=intl._("(Tunnel must be stopped first)")%></span>
    345345            </div>
     
    375375            <div class="rowItem">
    376376              <div id="optionsField" class="rowItem">
    377                   <label><%=intl._("Inbound connection limits (0=unlimited)")%><br><%=intl._("Per client")%>:</label>
     377                  <label><%=intl._("Inbound connection limits (0=unlimited)")%><br /><%=intl._("Per client")%>:</label>
    378378              </div>
    379379              <div id="portField" class="rowItem">
     
    454454                <label><%=intl._("None")%></label>
    455455                <input value="0" type="radio" id="startOnLoad" name="cert" title="No Certificate"<%=(editBean.getCert(curTunnel)==0 ? " checked=\"checked\"" : "")%> class="tickbox" />               
    456                 <span class="comment"></span>
    457456              </div>
    458457              <div id="portField" class="rowItem">
     
    466465                    <%=intl._("Hashcash Calc Time")%>:
    467466                </label>
    468                 <button id="controlSave" accesskey="S" class="control" type="submit" name="action" value="Estimate" title="Estimate Calculation Time"><%=intl._("Estimate")%></button>
     467                <button accesskey="S" class="control" type="submit" name="action" value="Estimate" title="Estimate Calculation Time"><%=intl._("Estimate")%></button>
    469468            </div>
    470469            <div id="hostField" class="rowItem">
     
    472471                <label><%=intl._("Hidden")%></label>
    473472                <input value="2" type="radio" id="startOnLoad" name="cert" title="Hidden Certificate"<%=(editBean.getCert(curTunnel)==2 ? " checked=\"checked\"" : "")%> class="tickbox" />               
    474                 <span class="comment"></span>
    475473              </div>
    476474              <div id="portField" class="rowItem">
     
    480478                <input value="3" type="radio" id="startOnLoad" name="cert" title="Signed Certificate"<%=(editBean.getCert(curTunnel)==3 ? " checked=\"checked\"" : "")%> class="tickbox" />               
    481479                <input type="text" id="port" name="signer" size="50" title="Cert Signer" value="<%=editBean.getSigner(curTunnel)%>" class="freetext" />               
    482                 <span class="comment"></span>
    483480              </div>
    484481            </div>
     
    487484                    <%=intl._("Modify Certificate")%>:
    488485                </label>
    489                 <button id="controlSave" accesskey="S" class="control" type="submit" name="action" value="Modify" title="Force New Cert Now"><%=intl._("Modify")%></button>
     486                <button accesskey="S" class="control" type="submit" name="action" value="Modify" title="Force New Cert Now"><%=intl._("Modify")%></button>
    490487                <span class="comment"><%=intl._("(Tunnel must be stopped first)")%></span>
    491488            </div>
  • apps/i2ptunnel/jsp/index.jsp

    r3ba9f872 r642376b0  
    11<%
     2    // NOTE: Do the header carefully so there is no whitespace before the <?xml... line
     3
    24    // http://www.crazysquirrel.com/computing/general/form-encoding.jspx
    35    if (request.getCharacterEncoding() == null)
    46        request.setCharacterEncoding("UTF-8");
    5 %>
    6 <%@page pageEncoding="UTF-8"%>
    7 <%@page contentType="text/html" import="net.i2p.i2ptunnel.web.IndexBean"%><?xml version="1.0" encoding="UTF-8"?>
     7
     8%><%@page pageEncoding="UTF-8"
     9%><%@page contentType="text/html" import="net.i2p.i2ptunnel.web.IndexBean"
     10%><?xml version="1.0" encoding="UTF-8"?>
    811<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    912<jsp:useBean class="net.i2p.i2ptunnel.web.IndexBean" id="indexBean" scope="request" />
Note: See TracChangeset for help on using the changeset viewer.