comparison gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_options_inc.jsp @ 583:2f3d885fed09

Adjusted http requests and appended a new parameter export mode to 'out'-xml document to choose between svg, pdf or image exports. gnv/trunk@725 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 02 Mar 2010 14:55:29 +0000
parents bd67164cf28b
children 9a019c125b60
comparison
equal deleted inserted replaced
582:b8ea9383d285 583:2f3d885fed09
28 Collection<OutputParameter> op = outputMode.getOutputParameters(); 28 Collection<OutputParameter> op = outputMode.getOutputParameters();
29 29
30 if (op != null){ 30 if (op != null){
31 Iterator<OutputParameter> it = op.iterator(); 31 Iterator<OutputParameter> it = op.iterator();
32 while (it.hasNext()){ 32 while (it.hasNext()){
33 OutputParameter parameter = it.next(); 33 OutputParameter parameter = it.next();
34 parameterString = parameterString +"&amp;"+parameter.getName()+"="+(diagrammOptions != null ? diagrammOptions.getValue(parameter.getName()): parameter.getValue()); 34 parameterString = parameterString +"&amp;"+parameter.getName()+"="+(diagrammOptions != null ? diagrammOptions.getValue(parameter.getName()): parameter.getValue());
35 } 35 }
36 } 36 }
37 37
38 38
81 </table> 81 </table>
82 <div class="exportBar"> 82 <div class="exportBar">
83 <input type="image" name="target" value="chart" src="images/arrow_refresh.png" alt="<bean:message key="gnviewer.draw.button"/>"/> 83 <input type="image" name="target" value="chart" src="images/arrow_refresh.png" alt="<bean:message key="gnviewer.draw.button"/>"/>
84 <%}%> 84 <%}%>
85 <%if (supportIMG != null) { %> 85 <%if (supportIMG != null) { %>
86 <a href="<%=response.encodeURL("export.do?mimetype="+mimeTypeIMG+"&amp;target="+target+"&amp;mode="+target+parameterString+"uid="+System.currentTimeMillis())%>" title="<bean:message key="gnviewer.output.options.save.title"/>"> 86 <a href="<%=response.encodeURL("export.do?mimetype="+mimeTypeIMG+"&amp;target="+target+"&amp;mode="+targetIMG+parameterString+"uid="+System.currentTimeMillis())%>" title="<bean:message key="gnviewer.output.options.save.title"/>">
87 <img src="images/diagram_export.png" border="0"/> 87 <img src="images/diagram_export.png" border="0"/>
88 </a> 88 </a>
89 <%}%> 89 <%}%>
90 <%if (supportPDF != null) { %> 90 <%if (supportPDF != null) { %>
91 <a href="<%=response.encodeURL("export.do?mimetype="+mimeTypePDF+"&amp;target="+target+"&amp;mode="+targetPDF+parameterString+"&amp;uid="+System.currentTimeMillis())%>" title="<bean:message key="gnviewer.output.options.export.pdf.title"/>"> 91 <a href="<%=response.encodeURL("export.do?mimetype="+mimeTypePDF+"&amp;target="+target+"&amp;mode="+targetPDF+parameterString+"&amp;uid="+System.currentTimeMillis())%>" title="<bean:message key="gnviewer.output.options.export.pdf.title"/>">

http://dive4elements.wald.intevation.org