comparison gnv/src/main/webapp/WEB-INF/jsp/index.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 ccd47d9887ec
children 883b366e3b15
comparison
equal deleted inserted replaced
693:d4d1eb56d725 694:271ec4d11a9f
26 26
27 Object furthertargetsObject = request.getAttribute("furthertargets"); 27 Object furthertargetsObject = request.getAttribute("furthertargets");
28 if (furthertargetsObject != null){ 28 if (furthertargetsObject != null){
29 furthertargets = ((Boolean)furthertargetsObject).booleanValue(); 29 furthertargets = ((Boolean)furthertargetsObject).booleanValue();
30 } 30 }
31
32 Object exceptionMessage = request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID);
33 exceptionMessage = (exceptionMessage != null ? exceptionMessage.toString().replaceAll(" ", ".").replaceAll(":",".").toLowerCase() : null);
34 exceptionMessage = (exceptionMessage != null && exceptionMessage.toString().endsWith(".") ? exceptionMessage.toString().substring(0,exceptionMessage.toString().length()-1) : exceptionMessage);
35
36 boolean showmapviewercallBody = request.getAttribute("MAPVIEWERCALL") != null;
37
38 String exceptionProject = (String) request.getAttribute(CommunicationKeys.REQUEST_EXCEPTION_PROJECT);
39 exceptionProject = exceptionProject != null ? exceptionProject.toLowerCase() : null;
40 exceptionProject = exceptionProject != null ? exceptionProject.replaceAll(" ", ".") : null;
31 %> 41 %>
32 <div> 42
43 <%-- div container for project loading/saving and error messages related to this --%>
44 <div id="project">
45 <table>
46 <tr>
47 <td>
48 <form id="storeProject" action="<%=response.encodeURL("store.do")%>" method="post">
49 <input type="submit" name="storeProject" value="<bean:message key="gnviewer.project.save"/>"/>
50 </form>
51 </td>
52 <td>
53 <form id="loadProject" action="<%=response.encodeURL("load.do")%>" method="post" enctype="multipart/form-data">
54 <input type="submit" name="loadProject" value="<bean:message key="gnviewer.project.load"/>"/>
55 <input type="file" name="document" accept="application/xml"/>
56 </form>
57 </td>
58 </tr>
59 </table>
60 <%if (exceptionProject != null) {%>
61 <div class="projectException">
62 <bean:message key="<%=exceptionProject%>"/>
63 <br/>
64 <a href="<%=response.encodeURL("describe.do?uid="+System.currentTimeMillis())%>" title="<bean:message key="application.reload"/>">
65 <bean:message key="application.reload"/>
66 </a>
67 </div>
68 <%}%>
69
70 <br/>
71 <%if (showmapviewercallBody){ %>
72 <jsp:include page="includes/display_mapviewercall_inc.jsp" />
73 <%}%>
74 </div>
75 <div class="errormsg" id="load_error">
76 <%if (exceptionMessage != null){ %>
77 <bean-el:message key="<%=exceptionMessage.toString()%>"/>
78 <p class="reload">
79 <a href="<%=response.encodeURL("describe.do?uid="+System.currentTimeMillis())%>" title="<bean:message key="application.reload"/>">
80 <bean:message key="application.reload"/>
81 </a>
82 </p>
83 <%}%>
84 </div>
85
86 <%-- the parameter panel is following --%>
87 <div id="parameterPanel">
33 <%if (staticui == null){ %> 88 <%if (staticui == null){ %>
34 <jsp:include page="includes/display_fis_inc.jsp"></jsp:include> 89 <jsp:include page="includes/display_fis_inc.jsp"></jsp:include>
35 <%} else {%> 90 <%} else {%>
36 <div class="down"> 91 <div class="down">
37 <fieldset> 92 <fieldset>
58 <%}%> 113 <%}%>
59 </fieldset> 114 </fieldset>
60 </form> 115 </form>
61 </div> 116 </div>
62 <%}%> 117 <%}%>
118
119 <%-- render export options if existing for this state --%>
120 <jsp:include page="includes/display_export_inc.jsp"></jsp:include>
121
122 <%if (chart != null) {%>
123 <jsp:include page="/WEB-INF/jsp/includes/display_diagramm_options_inc.jsp"></jsp:include>
124 <%}%>
125
126
127 <%if (histogram != null) {%>
128 <jsp:include page="/WEB-INF/jsp/includes/display_histogram_options_inc.jsp"></jsp:include>
129 <%}%>
130
131 <%-- render wms options --%>
132 <%if (wms != null) {%>
133 <jsp:include page="/WEB-INF/jsp/includes/display_wms_options_inc.jsp"></jsp:include>
134 <%}%>
63 </div> 135 </div>
64
65 <%-- render export options if existing for this state --%>
66 <jsp:include page="includes/display_export_inc.jsp"></jsp:include>
67 136
68 <%if (chart != null) {%> 137 <%if (chart != null) {%>
69 <%-- render chart options if existing for this state --%> 138 <%-- render chart options if existing for this state --%>
70 <jsp:include page="includes/display_diagramm_inc.jsp"></jsp:include> 139 <jsp:include page="includes/display_diagramm_inc.jsp"></jsp:include>
71 <%}%> 140 <%}%>
77 146
78 <%-- render histogram --%> 147 <%-- render histogram --%>
79 <%if (histogram != null) {%> 148 <%if (histogram != null) {%>
80 <jsp:include page="includes/display_histogram_inc.jsp"></jsp:include> 149 <jsp:include page="includes/display_histogram_inc.jsp"></jsp:include>
81 <%}%> 150 <%}%>
82
83 <%-- render wms options --%>
84 <%if (wms != null) {%>
85 <jsp:include page="/WEB-INF/jsp/includes/display_wms_options_inc.jsp"></jsp:include>
86 <%}%>

http://dive4elements.wald.intevation.org