Visualisierungsmodul für SuperX http://www.superx-projekt.de/doku/viz_modul/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

283 lines
13 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ext1="de.memtext.util.DateUtils"
xmlns:ext2="java.util.Date"
xmlns:string="java.lang.String"
xmlns:HtmlUtils="de.superx.util.HtmlUtils">
<!--In diesem Stylesheet können Sie individuelle templates unterbringen,
die in ihrer Präzedenz das normale Stylesheet
pageComponents_html.xsl überragt. -->
<xsl:template name="exportButtons_superx" >
<script language="Javascript">
function prepareExportChart()
{
document.forms[0].stylesheet.value = 'viz_html_chart.xsl';
document.forms[0].contenttype.value = 'text/html';
document.forms[0].target = '_blank';
document.forms[0].offset.value='0';
document.forms[0].maxoffset.value = '1000000';
document.forms[0].reuseresult.value = 'true';
if (isTreeTable) {
dojo.widget.byId("ttexdlg").show(); //ruft function exportandhidedlg auf
} else {
startExport();
}
}
</script>
<table border="0"><tr><!-- <td>Export:</td> -->
<td>
<!-- druckversion übergibt maxoffset 10000000 damit alle Sätze angezeigt werden -->
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download jetzt starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:prepareExport('druckversion')</xsl:text>
</xsl:attribute>
<!-- <xsl:attribute name="title"><xsl:text>Druckversion</xsl:text></xsl:attribute>
<xsl:text>Druckversion</xsl:text> -->
<img title="Ausgabe in HTML (Druckversion)" alt="Ausgabe in HTML (Druckversion)"
src="../images/icons/html.svg" border="0" />
</a>
<span class="separator">&#160;</span>
</td>
<td>
<!-- druckversion übergibt maxoffset 10000000 damit alle Sätze angezeigt werden -->
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:prepareExportChart()</xsl:text>
</xsl:attribute>
<!-- <xsl:attribute name="title"><xsl:text>Druckversion</xsl:text></xsl:attribute>
<xsl:text>Druckversion</xsl:text> -->
<input type="hidden" name="usetreetable" />
<img title="Ausgabe als Diagramm" alt="Ausgabe in Diagramm"
src="../images/icons/chart-bar.svg" border="0" width="25px" height="25px" /><!--chart-bar.svg-->
</a>
<span class="separator">&#160;</span>
</td>
<td>
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:prepareExport('xml')</xsl:text>
</xsl:attribute>
<!-- <xsl:attribute name="title"><xsl:text>XML</xsl:text></xsl:attribute>
<xsl:text>XML</xsl:text> -->
<img title="Ausgabe in XML" alt="Ausgabe in XML"
src="../images/icons/page_white_code.svg" border="0" />
</a>
<span class="separator">&#160;</span>
</td>
<!--
<td>
<a><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='tabelle_text.xsl';document.forms[0].contenttype.value='text/plain';document.forms[0].target='_blank'; document.forms[0].submit();</xsl:text>
</xsl:attribute>
<xsl:attribute name="title"><xsl:text>Text</xsl:text></xsl:attribute>
<xsl:text>Text</xsl:text></a>
</td>
-->
<td>
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:prepareExport('pdf')</xsl:text>
</xsl:attribute>
<!-- <xsl:attribute name="title"><xsl:text>PDF</xsl:text></xsl:attribute>
<xsl:text>PDF</xsl:text> -->
<img title="Ausgabe im PDF-Querformat" alt="Ausgabe im PDF-Querformat"
src="../images/icons/page_white_width_acrobat.svg" border="0" />
</a>
<span class="separator">&#160;</span>
</td>
<!--<td>
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='tabelle_fo_rtf.xsl';document.forms[0].contenttype.value='application/rtf';document.forms[0].maxoffset.value='1000000'; document.forms[0].submit();</xsl:text>
</xsl:attribute>
<xsl:attribute name="title"><xsl:text>RTF (z.B. Word)</xsl:text></xsl:attribute>
<xsl:text>RTF</xsl:text></a>
</td>-->
<td>
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:prepareExport('excel')</xsl:text>
</xsl:attribute>
<!-- <xsl:attribute name="title"><xsl:text>XLS (z.B. Excel)</xsl:text></xsl:attribute>
<xsl:text>XLS</xsl:text> -->
<img title="Ausgabe in Excel" alt="Ausgabe in Excel"
src="../images/icons/page_white_excel.svg" border="0" />
</a>
<span class="separator">&#160;</span>
</td>
<td>
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].contenttype.value='text/csv';document.forms[0].reuseresult.value='true';document.forms[0].submit();</xsl:text>
</xsl:attribute>
<!-- <xsl:attribute name="title"><xsl:text>Comma Separated Values</xsl:text></xsl:attribute>
<xsl:text>CSV</xsl:text> -->
<img title="Ausgabe als CSV" alt="Ausgabe als CSV"
src="../images/icons/page_white_csv.svg" border="0" />
</a>
<span class="separator">&#160;</span>
</td>
<td>
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true"><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='tabelle_mediawiki.xsl';document.forms[0].contenttype.value='text/plain';document.forms[0].reuseresult.value='true';document.forms[0].submit();</xsl:text>
</xsl:attribute>
<!-- <xsl:attribute name="title"><xsl:text>Comma Separated Values</xsl:text></xsl:attribute>
<xsl:text>CSV</xsl:text> -->
<img title="Ausgabe als Mediawiki-Quellcode" alt="Ausgabe als Mediawiki-Quellcode"
src="../images/icons/file-mediawiki.svg" border="0" />
</a>
<span class="separator">&#160;</span>
</td>
<!--
<td>
<a><xsl:attribute name="href"><xsl:text>javascript:document.forms[0].stylesheet.value='erg_itext_rtf.xsl';document.forms[0].contenttype.value='application/rtf';document.forms[0].reuseresult.value='true';document.forms[0].submit();</xsl:text>
</xsl:attribute>
<xsl:attribute name="title"><xsl:text>RTF</xsl:text></xsl:attribute>
<xsl:text>RTF</xsl:text></a>
</td>
-->
<td>
<a onMouseOver="window.status='Export starten';return true" onFocus="window.status='Download starten';return true" onMouseOut="window.status='Download starten';return true" onClick="copyText('table1');return false;" >
<xsl:attribute name="href"><xsl:text></xsl:text></xsl:attribute>
<!-- <xsl:attribute name="title"><xsl:text>Comma Separated Values</xsl:text></xsl:attribute>
<xsl:text>CSV</xsl:text> -->
<img title="Kopie in die Zwischenablage als CSV" alt="Kopie in die Zwischenablage als CSV"
src="../images/copy.svg" border="0" />
</a>
<span class="separator">&#160;</span>
</td>
<xsl:if test="/ergebnisse/user [@admin='true']">
<xsl:variable name="url" select="concat('../edit/kern/maskeninfo_edit.jsp?tid=',/ergebnisse/ergebnis/maskenname/@id)"/>
<td>
<span class="separator">&#160;</span>
<span class="separator">&#160;</span>
<a class="linkLookImage">
<xsl:attribute name="href"><xsl:value-of select="HtmlUtils:encodeURL(string($url),/ergebnisse/@jsessionid)" />
</xsl:attribute>
<xsl:attribute name="onClick"><xsl:text>javascript:neu=window.open('</xsl:text><xsl:value-of select="HtmlUtils:encodeURL(string($url),/ergebnisse/@jsessionid)" />
<xsl:text>','_blank','directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes</xsl:text><xsl:if test="not( contains(f_name,'big'))"><xsl:text>,width=800,height=750</xsl:text></xsl:if><xsl:text>'); return false;</xsl:text></xsl:attribute>
<img title="Maskeninfo verwalten" alt="Maskeninfo verwalten"
src="../images/icons/book_open_edit.svg" border="0" />
</a>
<span class="separator">&#160;</span>
</td>
<xsl:variable name="url" select="concat('../edit/kern/sachgeb_maske_bez_edit.jsp?maskeninfo_id=',/ergebnisse/ergebnis/maskenname/@id)"/>
<td>
<a class="linkLookImage">
<xsl:attribute name="href"><xsl:value-of select="HtmlUtils:encodeURL(string($url),/ergebnisse/@jsessionid)" />
</xsl:attribute>
<xsl:attribute name="onClick"><xsl:text>javascript:neu=window.open('</xsl:text><xsl:value-of select="HtmlUtils:encodeURL(string($url),/ergebnisse/@jsessionid)" />
<xsl:text>','_blank','directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes</xsl:text><xsl:if test="not( contains(f_name,'big'))"><xsl:text>,width=800,height=600</xsl:text></xsl:if><xsl:text>'); return false;</xsl:text></xsl:attribute>
<img title="Sachgebiet zuordnen" alt="Sachgebiet zuordnen"
src="../images/icons/folder_edit.svg" border="0" />
</a>
<span class="separator">&#160;</span>
</td>
<xsl:variable name="url" select="concat('../edit/kern/maskeninfo_style.jsp?tid=',/ergebnisse/ergebnis/maskenname/@id)"/>
<td>
<a class="linkLookImage">
<xsl:attribute name="href"><xsl:value-of select="HtmlUtils:encodeURL(string($url),/ergebnisse/@jsessionid)" />
</xsl:attribute>
<xsl:attribute name="onClick"><xsl:text>javascript:neu=window.open('</xsl:text><xsl:value-of select="HtmlUtils:encodeURL(string($url),/ergebnisse/@jsessionid)" />
<xsl:text>','_blank','directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes</xsl:text><xsl:if test="not( contains(f_name,'big'))"><xsl:text>,width=800,height=600</xsl:text></xsl:if><xsl:text>'); return false;</xsl:text></xsl:attribute>
<img title="Stylesheets zuordnen" alt="Stylesheets zuordnen"
src="../images/icons/copy_edit.svg" border="0" />
</a>
<span class="separator">&#160;</span>
</td>
</xsl:if>
<xsl:for-each select="/ergebnisse/stylesheets/stylesheet">
<xsl:if test="filename !='tabelle_html.xsl'
and filename !='tabelle_html_p.xsl'
and filename !='tabelle_xml.xsl'
and filename !='tabelle_fo_pdf.xsl'
and filename !='tabelle_xls.xsl'
and filename !='tabelle2jasperreport_generic.xsl'
and not(ends-with(filename,'.jrxml'))">
<td>
<span class="separator">&#160;</span>
<a><xsl:attribute name="href">javascript:document.forms[0].stylesheet.value='<xsl:value-of select="filename" />';document.forms[0].contenttype.value='<xsl:value-of select="contenttype" />'; document.forms[0].submit();</xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="description" /></xsl:attribute>
<![CDATA[]]><xsl:value-of select="caption" /><![CDATA[]]></a>
</td>
</xsl:if>
</xsl:for-each>
<!-- Ist nun im Template JasperExportBtn
<xsl:if test="/ergebnisse/user [ @admin='true']">
<td>
<span class="separator">&#160;Bericht entwerfen:&#160;</span>
<select name="jr_template"><option value="tabelle2jasperreport_generic.xsl">Leerer Bericht</option>
</select>
<xsl:variable name="newTemplateImage">
<xsl:choose>
<xsl:when test="/ergebnisse/@hisinone_active='true'">
<xsl:text>../images/icons/page_add.gif</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>../images/icons/page_add.gif</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<a class="linkLookImage" style="margin-left:5px;"><xsl:attribute name="href">javascript:document.forms[0].stylesheet.value=document.forms[0].jr_template.value;document.forms[0].contenttype.value='text/xml'; document.forms[0].submit();</xsl:attribute>
<img title="Export als JasperReport-Template" alt="Export als JasperReport-Template" src="{$newTemplateImage}" border="0" /></a>
<span class="separator">&#160;</span>
</td>
</xsl:if>
<xsl:if test="count(/ergebnisse/stylesheets/stylesheet[ends-with(filename,'.jrxml')])">
<td>
&#160;Bericht ausgeben1:&#160;
<select name="jr_stylesheet" onchange="jsDisableInput(this.value);">
<xsl:for-each select="/ergebnisse/stylesheets/stylesheet">
<xsl:if test="ends-with(filename,'.jrxml')">
<option><xsl:attribute name="value"><xsl:value-of select="filename" /></xsl:attribute><xsl:value-of select="caption" /></option>
</xsl:if>
</xsl:for-each>
</select>
<select name="jr_contenttype" onchange="">
<option value="application/pdf">PDF</option>
<option value="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">XLS</option>
<option value="application/rtf">RTF</option>
<option value="application/vnd.oasis.opendocument.text">ODT</option>
<option value="application/vnd.oasis.opendocument.spreadsheet">ODS</option>
<option value="text/html">HTML</option>
<option value="text/xhtml">XHTML</option>
<option value="text/csv">CSV</option>
<option value="text/xml">XML</option>
<option value="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">XLSX</option>
</select>
<input tabindex="10" type="button" value="GO">
<xsl:attribute name="onclick">
<xsl:text>
<![CDATA[document.forms[0].stylesheet.value=this.form.jr_stylesheet.options[this.form.jr_stylesheet.selectedIndex].value;document.forms[0].contenttype.value=this.form.jr_contenttype.options[this.form.jr_contenttype.selectedIndex].value; document.forms[0].submit();]]>
</xsl:text>
</xsl:attribute>
</input>
</td>
</xsl:if>
-->
</tr>
</table>
</xsl:template>
</xsl:stylesheet>