comparison gnv/src/main/webapp/WEB-INF/jsp/header.jsp @ 694:271ec4d11a9f

Changed the whole design of the application regarding the bsh styleguide. gnv/trunk@925 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 13 Apr 2010 16:44:30 +0000
parents 734e8301c9ea
children d2582f75b144
comparison
equal deleted inserted replaced
693:d4d1eb56d725 694:271ec4d11a9f
2 <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%> 2 <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
3 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 3 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
4 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %> 4 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %>
5 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%> 5 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
6 <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%> 6 <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
7 <% Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID);
8 exceptionMessage = (exceptionMessage != null ? exceptionMessage.toString().replaceAll(" ", ".").replaceAll(":",".").toLowerCase() : null);
9 exceptionMessage = (exceptionMessage != null && exceptionMessage.toString().endsWith(".") ? exceptionMessage.toString().substring(0,exceptionMessage.toString().length()-1) : exceptionMessage);
10
11 boolean showmapviewercallBody = request.getAttribute("MAPVIEWERCALL") != null;
12 7
13 String exceptionProject = (String) request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_PROJECT); 8 <div id="headline">
14 exceptionProject = exceptionProject != null ? exceptionProject.toLowerCase() : null; 9 <h1 class="headline">BSH Generischer Viewer</h1>
15 exceptionProject = exceptionProject != null ? exceptionProject.replaceAll(" ", ".") : null;
16 %>
17 <%@page import="de.intevation.gnv.action.CommunicationKeys"%><html:xhtml />
18 <!-- Kopfleiste-->
19 <div id="head" title="GDI BSH genericViewer">
20 <div id="logo">
21
22
23 </div>
24 <h1>
25 <a href="<html:rewrite action="/start"/>">
26 <bean:message key="gnviewer.app.title" />
27 </a>
28 </h1>
29
30 <div id="project">
31 <table>
32 <tr>
33 <td>
34 <form id="storeProject" action="<%=response.encodeURL("store.do")%>" method="post">
35 <input type="submit" name="storeProject" value="<bean:message key="gnviewer.project.save"/>"/>
36 </form>
37 </td>
38 <td>
39 <form id="loadProject" action="<%=response.encodeURL("load.do")%>" method="post" enctype="multipart/form-data">
40 <input type="submit" name="loadProject" value="<bean:message key="gnviewer.project.load"/>"/>
41 <input type="file" name="document" accept="application/xml"/>
42 </form>
43 </td>
44 </tr>
45 </table>
46 <%if (exceptionProject != null) {%>
47 <div class="projectException">
48 <bean:message key="<%=exceptionProject%>"/>
49 <br/>
50 <a href="<%=response.encodeURL("describe.do?uid="+System.currentTimeMillis())%>" title="<bean:message key="application.reload"/>">
51 <bean:message key="application.reload"/>
52 </a>
53 </div>
54 <%}%>
55
56 <br/>
57 <%if (showmapviewercallBody){ %>
58 <jsp:include page="includes/display_mapviewercall_inc.jsp" />
59 <%}%>
60 </div>
61 <div class="errormsg" id="load_error">
62 <%if (exceptionMessage != null){ %>
63 <bean-el:message key="<%=exceptionMessage.toString()%>"/>
64 <p class="reload">
65 <a href="<%=response.encodeURL("describe.do?uid="+System.currentTimeMillis())%>" title="<bean:message key="application.reload"/>">
66 <bean:message key="application.reload"/>
67 </a>
68 </p>
69 <%}%>
70 </div>
71 </div> 10 </div>
72 11
12 <br>
13
14 <table class="headerTableLinks">
15 <tr>
16 <td align="left"></td>
17 <td align="right">
18 <a class="headerLineLinks" href="/gnv"><bean:message key="gnviewer.header.restart"/></a>
19 <font size="1.5em" color="white">&middot;</font>
20 <a class="headerLineLinks" href=""><bean:message key="gnviewer.header.german"/></a>
21 <font size="1.5em" color="white">&middot;</font>
22 <a class="headerLineLinks" href=""><bean:message key="gnviewer.header.english"/></a>
23 <font size="1.5em" color="white">&middot;</font>
24 <a class="headerLineLinks" href=""><bean:message key="gnviewer.header.info"/></a>
25 </td>
26 </tr>
27 </table>

http://dive4elements.wald.intevation.org