comparison gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_inc.jsp @ 571:f2ba58011a2d

Added histogram option panel. Show chart/histogram options panel after the user selected chart or histogram. Moved options panel beneath action panel. gnv/trunk@699 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 23 Feb 2010 10:36:02 +0000
parents 9602f4bffc07
children 2f3d885fed09
comparison
equal deleted inserted replaced
570:cbd397712ecf 571:f2ba58011a2d
6 <%@page import="java.util.Collection"%> 6 <%@page import="java.util.Collection"%>
7 <%@page import="java.util.Iterator"%> 7 <%@page import="java.util.Iterator"%>
8 <%@page import="java.net.URLEncoder"%> 8 <%@page import="java.net.URLEncoder"%>
9 <% 9 <%
10 // fetch diagramm parameter from request if the user clicked 'draw' 10 // fetch diagramm parameter from request if the user clicked 'draw'
11 Object diagramm = request.getAttribute("diagramm");
12 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request); 11 SessionModel sm = SessionModelFactory.getInstance().getSessionModel(request);
13 12
14 String target = "chart"; 13 String target = "chart";
15 String mimeType = null; 14 String mimeType = null;
16 String parameterString = ""; 15 String parameterString = "";
30 } 29 }
31 } 30 }
32 } 31 }
33 %> 32 %>
34 33
35 <%-- show chart options if output mode 'chart' is supported --%>
36 <% if (supportChart) { %>
37 <jsp:include page="/WEB-INF/jsp/includes/display_diagramm_options_inc.jsp"></jsp:include>
38 <%}%>
39
40 <%-- diagramm is not null if the user clicked the 'draw' button --%> 34 <%-- diagramm is not null if the user clicked the 'draw' button --%>
41 <%if (diagramm != null) { %> 35 <jsp:include page="/WEB-INF/jsp/includes/display_diagramm_options_inc.jsp"></jsp:include>
42 <div id="diagram"> 36 <div id="diagram">
43 <img src='<%=response.encodeURL("out.do?mimetype="+mimeType+"&amp;target="+target+parameterString+"&amp;uid="+System.currentTimeMillis())%>' alt='<bean:message key="gnviewer.output.options.diagramm.alt"/>'/> 37 <img src='<%=response.encodeURL("out.do?mimetype="+mimeType+"&amp;target="+target+parameterString+"&amp;uid="+System.currentTimeMillis())%>' alt='<bean:message key="gnviewer.output.options.diagramm.alt"/>'/>
44 <br/> 38 <br/>
45 </div> 39 </div>
46 <%}%>

http://dive4elements.wald.intevation.org