diff 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
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/header.jsp	Tue Apr 13 12:10:15 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/header.jsp	Tue Apr 13 16:44:30 2010 +0000
@@ -4,69 +4,24 @@
 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean-el" prefix="bean-el" %>
 <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
 <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles"%>
-<% Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID);
-    exceptionMessage = (exceptionMessage != null ? exceptionMessage.toString().replaceAll(" ", ".").replaceAll(":",".").toLowerCase() : null);
-    exceptionMessage = (exceptionMessage != null && exceptionMessage.toString().endsWith(".") ? exceptionMessage.toString().substring(0,exceptionMessage.toString().length()-1) : exceptionMessage);
-    
-    boolean showmapviewercallBody = request.getAttribute("MAPVIEWERCALL") != null;
 
-    String exceptionProject = (String) request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_PROJECT);
-    exceptionProject        = exceptionProject != null ? exceptionProject.toLowerCase() : null;
-    exceptionProject        = exceptionProject != null ? exceptionProject.replaceAll(" ", ".") : null;
-%>
-<%@page import="de.intevation.gnv.action.CommunicationKeys"%><html:xhtml />
-<!-- Kopfleiste-->
-<div id="head" title="GDI BSH genericViewer"> 
-    <div id="logo">
-    
-    
-    </div>
-    <h1>
-        <a href="<html:rewrite action="/start"/>">
-            <bean:message key="gnviewer.app.title" />
-        </a>
-    </h1>
-    
-    <div id="project"> 
-        <table>
-            <tr>
-                <td>
-                    <form id="storeProject" action="<%=response.encodeURL("store.do")%>" method="post">
-                        <input type="submit" name="storeProject" value="<bean:message key="gnviewer.project.save"/>"/>
-                    </form>
-                </td>
-                <td>
-                    <form id="loadProject" action="<%=response.encodeURL("load.do")%>" method="post" enctype="multipart/form-data">
-                        <input type="submit" name="loadProject"  value="<bean:message key="gnviewer.project.load"/>"/>
-                        <input type="file"   name="document"     accept="application/xml"/>
-                    </form>
-                </td>
-            </tr>
-        </table>
-        <%if (exceptionProject != null) {%>
-            <div class="projectException">
-                <bean:message key="<%=exceptionProject%>"/>
-                <br/>
-                <a href="<%=response.encodeURL("describe.do?uid="+System.currentTimeMillis())%>" title="<bean:message key="application.reload"/>">
-                    <bean:message key="application.reload"/>
-                </a>
-            </div>
-        <%}%>
-            
-        <br/>
-         <%if (showmapviewercallBody){ %>
-            <jsp:include page="includes/display_mapviewercall_inc.jsp" />
-        <%}%>
-    </div>
-    <div class="errormsg" id="load_error">
-         <%if (exceptionMessage != null){ %>
-            <bean-el:message key="<%=exceptionMessage.toString()%>"/>
-            <p class="reload">
-                <a href="<%=response.encodeURL("describe.do?uid="+System.currentTimeMillis())%>" title="<bean:message key="application.reload"/>">
-                    <bean:message key="application.reload"/>
-                </a>
-            </p>
-         <%}%>
-     </div>
+<div id="headline">
+    <h1 class="headline">BSH Generischer Viewer</h1>
 </div>
 
+<br>
+
+<table class="headerTableLinks">
+    <tr>
+        <td align="left"></td>
+        <td align="right">
+            <a class="headerLineLinks" href="/gnv"><bean:message key="gnviewer.header.restart"/></a>
+            <font size="1.5em" color="white">&middot;</font>
+            <a class="headerLineLinks" href=""><bean:message key="gnviewer.header.german"/></a>
+            <font size="1.5em" color="white">&middot;</font>
+            <a class="headerLineLinks" href=""><bean:message key="gnviewer.header.english"/></a>
+            <font size="1.5em" color="white">&middot;</font>
+            <a class="headerLineLinks" href=""><bean:message key="gnviewer.header.info"/></a>
+        </td>
+    </tr>
+</table>

http://dive4elements.wald.intevation.org