comparison gnv/src/main/webapp/WEB-INF/jsp/includes/display_export_inc.jsp @ 410:9602f4bffc07

Added statistic to the actions if available. gnv/trunk@604 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 22 Jan 2010 13:58:30 +0000
parents b5733f9f386b
children 49898531c0b6
comparison
equal deleted inserted replaced
409:df78178e1180 410:9602f4bffc07
16 String targetODV = "odv"; 16 String targetODV = "odv";
17 String targetPDF = "pdf"; 17 String targetPDF = "pdf";
18 String targetSVG = "svg"; 18 String targetSVG = "svg";
19 String targetZIP = "zip"; 19 String targetZIP = "zip";
20 String targetWMS = "wms"; 20 String targetWMS = "wms";
21 String targetSta = "statistics";
21 22
22 boolean supportChart = sm.getOutputMode(target) != null; 23 boolean supportChart = sm.getOutputMode(target) != null;
23 boolean supportCSV = sm.getOutputMode(targetCSV) != null; 24 boolean supportCSV = sm.getOutputMode(targetCSV) != null;
24 boolean supportODV = sm.getOutputMode(targetODV) != null; 25 boolean supportODV = sm.getOutputMode(targetODV) != null;
25 boolean supportPDF = sm.getOutputMode(targetPDF) != null; 26 boolean supportPDF = sm.getOutputMode(targetPDF) != null;
26 boolean supportSVG = sm.getOutputMode(targetSVG) != null; 27 boolean supportSVG = sm.getOutputMode(targetSVG) != null;
27 boolean supportZIP = sm.getOutputMode(targetZIP) != null; 28 boolean supportZIP = sm.getOutputMode(targetZIP) != null;
28 boolean supportWMS = sm.getOutputMode(targetWMS) != null; 29 boolean supportWMS = sm.getOutputMode(targetWMS) != null;
30 boolean supportSta = sm.getOutputMode(targetSta) != null;
29 31
30 if (supportChart){ 32 if (supportChart){
31 mimeType = sm.getOutputMode(target).getMimeType(); 33 mimeType = sm.getOutputMode(target).getMimeType();
32 DiagrammOptions diagrammOptions = sm.getDiagrammOptions(); 34 DiagrammOptions diagrammOptions = sm.getDiagrammOptions();
33 Collection<OutputParameter> op = sm.getOutputMode(target).getOutputParameters(); 35 Collection<OutputParameter> op = sm.getOutputMode(target).getOutputParameters();
109 <%if (supportZIP) { %> 111 <%if (supportZIP) { %>
110 <a href="<%=response.encodeURL("export.do?mimetype="+mimeTypeZIP+"&amp;target="+targetZIP+"&amp;uid="+System.currentTimeMillis())%>" title="<bean:message key="gnviewer.output.options.export.zip.title"/>"> 112 <a href="<%=response.encodeURL("export.do?mimetype="+mimeTypeZIP+"&amp;target="+targetZIP+"&amp;uid="+System.currentTimeMillis())%>" title="<bean:message key="gnviewer.output.options.export.zip.title"/>">
111 <img src="images/disk.png" border="0"/> 113 <img src="images/disk.png" border="0"/>
112 </a> 114 </a>
113 <%}%> 115 <%}%>
116
117 <%if (supportSta) { %>
118 <a href="<%=response.encodeURL("statistic.do")%>" title="<bean:message key="gnviewer.statistic.button"/>">
119 <img src="images/statistics.png" border="0"/>
120 </a>
121 <%}%>
114 </fieldset> 122 </fieldset>
115 </div> 123 </div>
116 <%}%> 124 <%}%>

http://dive4elements.wald.intevation.org