Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/WEB-INF/jsp/includes/display_diagramm_inc.jsp @ 29:bba8fd97e549
Export and Diagrammoptions integrated into GUI
gnv/trunk@133 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 25 Sep 2009 07:28:49 +0000 |
parents | 367a00e4b9ad |
children | 07e9c137a2f1 |
comparison
equal
deleted
inserted
replaced
28:d93ea867406b | 29:bba8fd97e549 |
---|---|
1 <%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %> | |
1 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> | 2 <%@page import="de.intevation.gnv.action.sessionmodel.SessionModelFactory"%> |
2 <%Object diagramm = request.getAttribute("diagramm"); | 3 <%Object diagramm = request.getAttribute("diagramm"); |
3 if (diagramm != null){ | 4 if (diagramm != null){ |
5 | |
6 String target = "chart"; | |
7 String targetCSV = "csv"; | |
8 boolean supportCSV = true; // TODO get from SessionModel | |
4 String mimeType = "image/png";// TODO: get from SessionModel SessionModelFactory.getInstance().getSessionModel(request). | 9 String mimeType = "image/png";// TODO: get from SessionModel SessionModelFactory.getInstance().getSessionModel(request). |
5 String target = "chart"; // TODO: get from SessionModel | 10 String mimeTypeCSV = "text/plain";// TODO: get from SessionModel SessionModelFactory.getInstance().getSessionModel(request). |
6 %> | 11 %> |
7 | 12 |
8 <div id="diagram"> | 13 <div id="diagram"> |
9 <img src='<%=response.encodeURL("out.do?mimetype="+mimeType+"&target="+target+"&uid="+System.currentTimeMillis())%>' alt='Chart'> | 14 <img src='<%=response.encodeURL("out.do?mimetype="+mimeType+"&target="+target+"&uid="+System.currentTimeMillis())%>' alt='<bean:message key="gnviewer.output.options.diagramm.alt"/>'/> |
15 <br/> | |
16 <div id="export"> | |
17 <a href="<%=response.encodeURL("export.do?mimetype="+mimeType+"&target="+target+"&uid="+System.currentTimeMillis())%>" title="<bean:message key="gnviewer.output.options.save.title"/>"> | |
18 <img src="images/diagram_export.png" border="0"/> | |
19 </a> | |
20 <%if (supportCSV) { %> | |
21 <a href="<%=response.encodeURL("export.do?mimetype="+mimeTypeCSV+"&target="+targetCSV+"&uid="+System.currentTimeMillis())%>" title="<bean:message key="gnviewer.output.options.export.title"/>"> | |
22 <img src="images/data_export.png" border="0"/> | |
23 </a> | |
24 <%}%> | |
25 </div> | |
10 </div> | 26 </div> |
27 <jsp:include page="/WEB-INF/jsp/includes/display_diagramm_adons_inc.jsp"></jsp:include> | |
11 <%}%> | 28 <%}%> |