diff gnv/src/main/webapp/WEB-INF/jsp/header.jsp @ 670:b89b31293772

Implemented first things to store/load projects. gnv/trunk@793 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 17 Mar 2010 13:31:38 +0000
parents 5aea89b9a350
children 93b4dedc4e37
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/header.jsp	Tue Mar 16 10:30:13 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/header.jsp	Wed Mar 17 13:31:38 2010 +0000
@@ -9,7 +9,8 @@
     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);
 %>
 <%@page import="de.intevation.gnv.action.CommunicationKeys"%><html:xhtml />
 <!-- Kopfleiste-->
@@ -24,15 +25,26 @@
         </a>
     </h1>
     
-    <div id="project">
-        <label style="font-weight:bold;">
-                 <bean:message key="gnviewer.project.load"/>
-            | 
-                 <bean:message    key="gnviewer.project.save" />
-         </label>
-        <div id="project_load">
+    <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%>"/></div>
+        <%}%>
             
-        </div>
         <br/>
          <%if (showmapviewercallBody){ %>
             <jsp:include page="includes/display_mapviewercall_inc.jsp" />

http://dive4elements.wald.intevation.org