13 changed files with 1155 additions and 323 deletions
File diff suppressed because one or more lines are too long
@ -1,33 +1,34 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
#entlädt nur die charts, die Teil der Auslieferung sind: |
#entlädt nur die charts, die Teil der Auslieferung sind: |
||||||
|
|
||||||
DOQUERY "select tid, |
DOQUERY "select |
||||||
uniquename, |
V.uniquename, |
||||||
caption, |
V.caption, |
||||||
description, |
V.description, |
||||||
chartmodel, |
V.chartmodel, |
||||||
preview_svg, |
V.preview_svg, |
||||||
userinfo_id, |
V.userinfo_id, |
||||||
creation_date, |
V.creation_date, |
||||||
update_date, |
V.update_date, |
||||||
maskeninfo_id, |
V.maskeninfo_id, |
||||||
mask_params, |
V.mask_params, |
||||||
renderer_id, |
V.renderer_id, |
||||||
chartmodel_miniature, |
V.chartmodel_miniature, |
||||||
chart_position, |
V.chart_position, |
||||||
chart_active, |
V.chart_active, |
||||||
chart_width, |
V.chart_width, |
||||||
chart_height, |
V.chart_height, |
||||||
chart_miniature_width, |
V.chart_miniature_width, |
||||||
chart_miniature_height, |
V.chart_miniature_height, |
||||||
is_custom, |
V.is_custom, |
||||||
js_handler , |
V.js_handler , |
||||||
chart_card_class, |
V.chart_card_class, |
||||||
chart_container_class, |
V.chart_container_class, |
||||||
chart_container_id, |
V.chart_container_id, |
||||||
chart_class_name, |
V.chart_class_name, |
||||||
chart_element_id, |
V.chart_element_id, |
||||||
chart_title_position |
V.chart_title_position, |
||||||
from viz_chart where is_custom=0 order by uniquename" false ^ viz_chart.unl txt |
V2.uniquename as detail_chart_uniquename |
||||||
|
from viz_chart V left outer join viz_chart V2 on (V2.tid=V.detail_chart_id) where V.is_custom=0 order by V.uniquename" false ^ viz_chart.unl txt |
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,433 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<xsl:stylesheet version="1.0" |
||||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:HtmlUtils="de.superx.util.HtmlUtils"> |
||||||
|
<xsl:import href="resultset_html.xsl" /> |
||||||
|
<xsl:import href="interLinks_html.xsl" /> |
||||||
|
<xsl:import href="nd_templates.xsl" /> |
||||||
|
<xsl:import href="pageComponents_html.xsl" /> |
||||||
|
<xsl:import href="viz_components.xsl" /> |
||||||
|
<!--In diesem Stylesheet können Sie individuelle templates unterbringen, |
||||||
|
die in ihrer Präzedenz das normale Stylesheet |
||||||
|
pageComponents_html.xsl überragt. --> |
||||||
|
<xsl:import href="pageComponents_html_final.xsl" /> |
||||||
|
|
||||||
|
<xsl:decimal-format name="German" grouping-separator="." NaN="" zero-digit ="0" decimal-separator="," /> |
||||||
|
|
||||||
|
<!-- wichtig für DOJO!--> |
||||||
|
<xsl:output method="xml" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" |
||||||
|
doctype-system="DTD/xhtml1-strict.dtd" cdata-section-elements="script style" indent="yes" encoding="UTF-8"/> |
||||||
|
|
||||||
|
<xsl:variable name="colon"><xsl:text>'</xsl:text></xsl:variable> |
||||||
|
<xsl:variable name="quote"><xsl:text>"</xsl:text></xsl:variable> |
||||||
|
|
||||||
|
<!--<xsl:variable name="defaultRenderer" select="'echarts'" /> |
||||||
|
<xsl:variable name="availableRendererPlot" select="'true'" /> |
||||||
|
<xsl:variable name="availableRendererD3" select="'true'" /> |
||||||
|
--> |
||||||
|
<xsl:template match="/"> |
||||||
|
<xsl:variable name="maskenname"> |
||||||
|
<xsl:choose> |
||||||
|
<xsl:when test="/ergebnisse/@isMakro='true'"> |
||||||
|
<xsl:value-of select="/ergebnisse/makro/name" /> |
||||||
|
</xsl:when> |
||||||
|
<xsl:otherwise> |
||||||
|
<xsl:value-of select="/ergebnisse/ergebnis/maskenname" /> |
||||||
|
</xsl:otherwise> |
||||||
|
</xsl:choose> |
||||||
|
</xsl:variable> |
||||||
|
<html> |
||||||
|
<head> |
||||||
|
<xsl:call-template name="nd_htmlhead"> |
||||||
|
<xsl:with-param name="title" select="concat('Tabelle ',$maskenname)" /> |
||||||
|
</xsl:call-template> |
||||||
|
<xsl:call-template name="viz_html_chart_viewer_css" /> |
||||||
|
|
||||||
|
</head> |
||||||
|
<xsl:call-template name="nd_htmlscript" /> |
||||||
|
<xsl:call-template name="nd_tableJavascript" /> |
||||||
|
<xsl:call-template name="nd_tableCSS" /> |
||||||
|
<!--<xsl:call-template name="vizTableCSS" />--> |
||||||
|
<xsl:call-template name="importVizViewer"></xsl:call-template> |
||||||
|
<script language="javascript"> |
||||||
|
<xsl:text> |
||||||
|
function showDataTable(targetDiv) |
||||||
|
{ |
||||||
|
var myChartModelStr=""; |
||||||
|
var myDiv=targetDiv; |
||||||
|
var rsNr=0; |
||||||
|
|
||||||
|
</xsl:text> |
||||||
|
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement[@ordnr='0']"> |
||||||
|
<xsl:variable name="chart_uniquename"><xsl:value-of select="../felder/feld[@varname='Grafik']/value" /></xsl:variable> |
||||||
|
<xsl:variable name="detail_chart_uniquename"><xsl:value-of select="viz_charts/viz_chart[@uniquename=$chart_uniquename]/@detail_chart_uniquename" /></xsl:variable> |
||||||
|
<xsl:text> |
||||||
|
// chart_uniquename=</xsl:text><xsl:value-of select="$chart_uniquename"/><xsl:text> |
||||||
|
// detail_chart_uniquename=</xsl:text><xsl:value-of select="$detail_chart_uniquename"/><xsl:text> |
||||||
|
</xsl:text> |
||||||
|
<xsl:call-template name="buildchartDivRenderers"> |
||||||
|
<xsl:with-param name="chart_uniquename" select="viz_charts/viz_chart[@uniquename=$chart_uniquename]/@detail_chart_uniquename" /> |
||||||
|
|
||||||
|
<xsl:with-param name="chartDiv" select="'chartDiv1'" /> |
||||||
|
<xsl:with-param name="ergebniselement_ordnr" select="0" /> |
||||||
|
</xsl:call-template> |
||||||
|
</xsl:for-each> |
||||||
|
<xsl:text> |
||||||
|
} |
||||||
|
</xsl:text> |
||||||
|
</script> |
||||||
|
<body class="has-navbar-fixed-top" onload="document.getElementById('progressbar').style.display='none';initPage();showDataTable('chartDiv1');"> |
||||||
|
<!--#Template Beginn Top-Navigation--> |
||||||
|
<xsl:call-template name="viz_navi_top" /> |
||||||
|
<!--<xsl:call-template name="ude_header_dashboard" />--> |
||||||
|
|
||||||
|
|
||||||
|
<!--#Template Ende Top-Navigation--> |
||||||
|
|
||||||
|
<div class="columns"> |
||||||
|
|
||||||
|
<!--#Template Beginn Navigations-Panel Auswertungen--> |
||||||
|
<xsl:if test="/ergebnisse/@showNavigation='true' and 1=0"><!-- erstmal kein Panel,weil der Asssistent schon recht breit ist --> |
||||||
|
<xsl:for-each select="/ergebnisse"> |
||||||
|
<xsl:call-template name="nd_navi_panel" /> |
||||||
|
</xsl:for-each> |
||||||
|
</xsl:if> |
||||||
|
<!--#Template Ende Navigations-Panel Auswertungen--> |
||||||
|
|
||||||
|
<!--Beginn Seitentitel, Krümelpfad, Knopfleiste, Legende, Erläuterung--> |
||||||
|
<section class="hero-body"> |
||||||
|
<div class="container"> |
||||||
|
<!--<div class="columns is-mobile is-left"> |
||||||
|
<div class="column is-full">--> |
||||||
|
<div class="card "> |
||||||
|
<div class="card-content"> |
||||||
|
|
||||||
|
<xsl:call-template name="nd_progressbar" /> |
||||||
|
|
||||||
|
<xsl:variable name="chartCollapsibleHeading"> |
||||||
|
<xsl:call-template name="getChartCollapsibleHeading" /> |
||||||
|
</xsl:variable> |
||||||
|
<xsl:call-template name="viz_viewer_columnwise"> |
||||||
|
<xsl:with-param name="chartCollapsibleHeading" select="$chartCollapsibleHeading" /> |
||||||
|
</xsl:call-template> |
||||||
|
|
||||||
|
<xsl:call-template name="bottombar" /> |
||||||
|
<xsl:comment>customfooter</xsl:comment> |
||||||
|
</div> <!--Ende content --> |
||||||
|
</div> <!--Ende card-content--> |
||||||
|
<!--</div>--> <!--Ende card-background --> |
||||||
|
<!--</div>--> <!--Ende column--> |
||||||
|
</div> <!--Ende container--> |
||||||
|
|
||||||
|
</section> <!--Ende hero = Berichts-Card--> |
||||||
|
</div> <!--Ende site-columns--> |
||||||
|
<xsl:call-template name="modalCards" /> |
||||||
|
</body> |
||||||
|
<!-- end body --> |
||||||
|
</html> |
||||||
|
</xsl:template> |
||||||
|
<!-- end main --> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<xsl:template name="viz_viewer_columnwise"> |
||||||
|
<xsl:param name="chartCollapsibleHeading" select="''" /> |
||||||
|
<xsl:if test="/ergebnisse/@isMakro='true'"> |
||||||
|
<p class="cockpit_title"><xsl:value-of select="/ergebnisse/makro/name" /></p> |
||||||
|
</xsl:if> |
||||||
|
<p></p> |
||||||
|
<xsl:call-template name="buildVizMetadata" /> |
||||||
|
|
||||||
|
<!-- end Kopf--> |
||||||
|
<!-- start Grafiken--> |
||||||
|
|
||||||
|
<span class="separator"> </span> |
||||||
|
<!--Beginn Selektions-Card--> |
||||||
|
<!--Beginn Berichtstitel, Pfad, Knopfleiste--> |
||||||
|
<section class="hero-body"> |
||||||
|
<section class="container"> <!--Beginn Kartenreihe --> |
||||||
|
<div class="columns features is-mobile is-left"> <!--Beginn columns Kartenreihe --> |
||||||
|
<div class="column is-two-thirds"> |
||||||
|
|
||||||
|
<xsl:for-each select="ergebnisse/ergebnis[felder/feld[@varname='Grafik']/value!='']/ergebniselement"> |
||||||
|
<xsl:variable name="ergebniselement_counter" select="position()" /> |
||||||
|
<xsl:variable name="chart_uniquename"><xsl:value-of select="../felder/feld[@varname='Grafik']/value" /></xsl:variable> |
||||||
|
<xsl:variable name="ergebniselement_ordnr"><xsl:value-of select="@ordnr" /></xsl:variable> |
||||||
|
<xsl:if test="$chartCollapsibleHeading !=''"> |
||||||
|
<p class="teiltabelle_titel" style="font-size:3em;"> |
||||||
|
<xsl:value-of select="concat($chartCollapsibleHeading,' ')"/><a onclick="{concat('toggleTableVisibility(',$colon,'toggleBtnChart',@ordnr+1, $colon,',',$colon, 'cardImage',@ordnr,$colon,');')}"> <img id="{concat('toggleBtnChart',@ordnr+1)}" src="../images/minus-circled.svg" height="20px" style="height:20px" border="0" /></a> |
||||||
|
</p> |
||||||
|
</xsl:if> |
||||||
|
<!--<p><xsl:value-of select="concat('Zähler: ',$ergebniselement_counter)"/></p>--> |
||||||
|
<xsl:call-template name="viewer_kachel"> |
||||||
|
<xsl:with-param name="caption" select="viz_charts/viz_chart[@uniquename=$chart_uniquename]/@caption"/> |
||||||
|
<xsl:with-param name="ergebniselement_ordnr" select="$ergebniselement_ordnr" /> |
||||||
|
<xsl:with-param name="kachelbreite" select="viz_charts/viz_chart[@uniquename=$chart_uniquename]/@chart_width"/> |
||||||
|
<xsl:with-param name="kachelhoehe" select="viz_charts/viz_chart[@uniquename=$chart_uniquename]/@chart_height"/> |
||||||
|
<xsl:with-param name="chart_tid" select="viz_charts/viz_chart[@uniquename=$chart_uniquename]/@tid"/> |
||||||
|
<xsl:with-param name="showEdit" select="/ergebnisse/user/@admin" /> |
||||||
|
<xsl:with-param name="openModalCardDetail" select="'false'" /> |
||||||
|
</xsl:call-template> |
||||||
|
<!--<p><xsl:value-of select="concat($spalten_anz,'-',$ergebniselement_counter,':',$ergebniselement_counter mod $spalten_anz)"/></p>--> |
||||||
|
|
||||||
|
</xsl:for-each> |
||||||
|
<xsl:call-template name="displayTables" /> |
||||||
|
</div> |
||||||
|
|
||||||
|
<xsl:call-template name="vizSidebar" /> |
||||||
|
|
||||||
|
<!--<div class="column"> |
||||||
|
<xsl:if test="count(/ergebnisse/ergebnis[@ordnr='0']/completefields/feld[@art='1']) > 0"> |
||||||
|
<xsl:call-template name="renderTableDialogs" /> |
||||||
|
</xsl:if> |
||||||
|
</div>--><!--Ende column--> |
||||||
|
</div> <!--Ende hero-columns--> |
||||||
|
|
||||||
|
|
||||||
|
</section> |
||||||
|
</section><!-- des Portals --> |
||||||
|
</xsl:template> |
||||||
|
|
||||||
|
|
||||||
|
<xsl:template name="ude_header_dashboard_alt"> |
||||||
|
<header> |
||||||
|
<div class="hs_header"> |
||||||
|
|
||||||
|
<div class="hs_header_box1"></div> |
||||||
|
<div class="hs_header_box2"> |
||||||
|
|
||||||
|
<a class="button is-link is-outlined is-small" onclick="alert('todo');">Studienanfänger*innen</a> |
||||||
|
<a class="button is-link is-outlined is-small" onclick="alert('todo');">Studierende</a> |
||||||
|
<a class="button is-link is-outlined is-small" onclick="alert('todo');">Absolvent*innen</a> |
||||||
|
<a class="button is-link is-outlined is-small" onclick="alert('todo');">Doktorand*innen</a> |
||||||
|
|
||||||
|
<!--<p class="cockpit_title">Universität Duisburg-Essen</p>--> |
||||||
|
<div class="field"><span class="buttonlist"> |
||||||
|
<a onmouseover="window.status='Export starten';return true" onfocus="window.status='Download starten';return true" onmouseout="window.status='Download starten';return true" href="javascript:exportBooklet('application/pdf')"> |
||||||
|
<img title="Ausgabe im PDF-Querformat" alt="Ausgabe im PDF-Querformat" src="../images/icons/into_pdf.svg" class="svg_icon" border="0" /></a> |
||||||
|
<span class="separator"> </span> |
||||||
|
<a onmouseover="window.status='Export starten';return true" onfocus="window.status='Download starten';return true" onmouseout="window.status='Download starten';return true" href="javascript:exportBooklet('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')"> |
||||||
|
<img title="Ausgabe in Excel" alt="Ausgabe in Excel" src="../images/icons/into_excel_normal.svg" class="svg_icon" border="0" /></a> |
||||||
|
<span class="separator"> </span> |
||||||
|
<a onmouseover="window.status='Export starten';return true" onfocus="window.status='Download starten';return true" onmouseout="window.status='Download starten';return true" href="javascript:exportBooklet('application/vnd.openxmlformats-officedocument.wordprocessingml.document')"> |
||||||
|
<img title="Ausgabe in Word" alt="Ausgabe in Word" width="25px" height="25px" src="../images/icons/into_word.svg" class="svg_icon" border="0" /></a> |
||||||
|
|
||||||
|
</span> |
||||||
|
|
||||||
|
</div> |
||||||
|
<a href="https://www.uni-due.de/verwaltung/dtac/akademisches_controlling.php"> |
||||||
|
<figure class="image is-64x64"><img src="../images/signet_ude_rgb.svg" title="UDE. Akademisches Controlling" /></figure></a> |
||||||
|
</div> |
||||||
|
|
||||||
|
|
||||||
|
<div class="hs_header_box1"></div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</header> |
||||||
|
</xsl:template> |
||||||
|
|
||||||
|
|
||||||
|
<xsl:template name="buildVizMetadata"> |
||||||
|
<xsl:variable name="vizInitialName"> |
||||||
|
<xsl:choose> |
||||||
|
<xsl:when test="/ergebnisse/@isMakro='true'"> |
||||||
|
<xsl:value-of select="/ergebnisse/makro/name"/> |
||||||
|
</xsl:when> |
||||||
|
<xsl:otherwise> |
||||||
|
<xsl:value-of select="/ergebnisse/ergebnis/maskenname" /> |
||||||
|
</xsl:otherwise> |
||||||
|
</xsl:choose> |
||||||
|
</xsl:variable> |
||||||
|
<!--<xsl:call-template name="navigationsmenue" />--> |
||||||
|
<script language="Javascript"> |
||||||
|
|
||||||
|
<xsl:text> |
||||||
|
|
||||||
|
var vizInitialName='</xsl:text><xsl:value-of select="$vizInitialName"/><xsl:text>'; |
||||||
|
|
||||||
|
|
||||||
|
function dataRowMetaData(tableId,nr,colname,colcaption,coltype,colfunction) |
||||||
|
{ |
||||||
|
this.tableId=tableId; |
||||||
|
this.nr=nr; |
||||||
|
this.colname=colname; |
||||||
|
this.colcaption=colcaption; |
||||||
|
this.coltype=coltype; |
||||||
|
this.colfunction=colfunction; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
function tableMetaData(nr,value,name,isDefault) |
||||||
|
{ |
||||||
|
this.value=value; |
||||||
|
this.nr=nr; |
||||||
|
this.name=name |
||||||
|
this.isDefault=isDefault; |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
var rsTableMetaData=new Array(); |
||||||
|
var rsColumnMetaData=new Array(); |
||||||
|
var rs=new Array(); |
||||||
|
|
||||||
|
</xsl:text> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script> |
||||||
|
|
||||||
|
|
||||||
|
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement"> |
||||||
|
<xsl:call-template name="buildVizData" > |
||||||
|
<xsl:with-param name="tableId" select="@ordnr" /> |
||||||
|
</xsl:call-template> |
||||||
|
</xsl:for-each> |
||||||
|
|
||||||
|
</xsl:template> |
||||||
|
<xsl:template name="buildVizData"> |
||||||
|
<xsl:param name="tableId" /> |
||||||
|
|
||||||
|
<script language="Javascript"> |
||||||
|
|
||||||
|
<xsl:text> |
||||||
|
|
||||||
|
rsTableMetaData.push(new tableMetaData( |
||||||
|
</xsl:text> |
||||||
|
<xsl:value-of select="position()"/> |
||||||
|
<xsl:text>,'</xsl:text> |
||||||
|
<xsl:value-of select="$tableId"/> |
||||||
|
<xsl:text>','</xsl:text> |
||||||
|
<xsl:value-of select="concat('Tab. ',$tableId+1)"/> |
||||||
|
<xsl:text>', |
||||||
|
</xsl:text> |
||||||
|
<xsl:choose> |
||||||
|
<xsl:when test="position()=1"> |
||||||
|
<xsl:text>true</xsl:text> |
||||||
|
</xsl:when> |
||||||
|
<xsl:otherwise> |
||||||
|
<xsl:text>false</xsl:text> |
||||||
|
</xsl:otherwise> |
||||||
|
</xsl:choose> |
||||||
|
<xsl:text> |
||||||
|
)); |
||||||
|
rs[</xsl:text><xsl:value-of select="$tableId"/><xsl:text>]=new Array(); |
||||||
|
|
||||||
|
//var myChartModel=new chartModel(1,"","",rsTableMetaData); |
||||||
|
|
||||||
|
function dataRow_</xsl:text><xsl:value-of select="$tableId"/><xsl:text>(rownr</xsl:text> |
||||||
|
<xsl:for-each select="sqlerg/complete_headers/header"> |
||||||
|
<xsl:text>,</xsl:text> |
||||||
|
<xsl:call-template name="getColumnNameJS"> |
||||||
|
<xsl:with-param name="columnNameFromDB" select="f_name"/> |
||||||
|
</xsl:call-template> |
||||||
|
</xsl:for-each> |
||||||
|
<xsl:text> |
||||||
|
) |
||||||
|
{ |
||||||
|
this.rownr=rownr; |
||||||
|
</xsl:text> |
||||||
|
<xsl:for-each select="sqlerg/complete_headers/header"> |
||||||
|
<xsl:text>this.</xsl:text><xsl:call-template name="getColumnNameJS"> |
||||||
|
<xsl:with-param name="columnNameFromDB" select="f_name"/> |
||||||
|
</xsl:call-template><xsl:text>=</xsl:text> |
||||||
|
<xsl:call-template name="getColumnNameJS"> |
||||||
|
<xsl:with-param name="columnNameFromDB" select="f_name"/> |
||||||
|
</xsl:call-template><xsl:text>; |
||||||
|
</xsl:text> |
||||||
|
</xsl:for-each><xsl:text> |
||||||
|
} |
||||||
|
|
||||||
|
rsColumnMetaData[</xsl:text><xsl:value-of select="$tableId"/><xsl:text>]=new Array(); |
||||||
|
|
||||||
|
rsColumnMetaData[</xsl:text><xsl:value-of select="$tableId"/><xsl:text>].push(new dataRowMetaData('</xsl:text> |
||||||
|
<xsl:value-of select="$tableId"/><xsl:text>',</xsl:text> |
||||||
|
<xsl:value-of select="0"/> |
||||||
|
<xsl:text>,'rownr','Zeilennr.',0,4)); |
||||||
|
</xsl:text> |
||||||
|
|
||||||
|
|
||||||
|
<xsl:for-each select="sqlerg/complete_headers/header"> |
||||||
|
<xsl:variable name="rownr"> |
||||||
|
<xsl:value-of select="position()"/> |
||||||
|
</xsl:variable> |
||||||
|
<xsl:text> |
||||||
|
rsColumnMetaData[</xsl:text><xsl:value-of select="$tableId"/><xsl:text>].push(new dataRowMetaData('</xsl:text> |
||||||
|
<xsl:value-of select="$tableId"/><xsl:text>',</xsl:text> |
||||||
|
<xsl:value-of select="$rownr"/> |
||||||
|
<xsl:text>,'</xsl:text> |
||||||
|
<xsl:call-template name="getColumnNameJS"> |
||||||
|
<xsl:with-param name="columnNameFromDB" select="f_name"/> |
||||||
|
</xsl:call-template> |
||||||
|
<xsl:text>','</xsl:text> |
||||||
|
<xsl:call-template name="remove_linebreaksAndQuot"> |
||||||
|
<xsl:with-param name="volltext" select="wert" /> |
||||||
|
</xsl:call-template> |
||||||
|
<xsl:text>',0,null));</xsl:text> <!--coltype noch unbekannt, colfunction unnötig--> |
||||||
|
</xsl:for-each> |
||||||
|
|
||||||
|
|
||||||
|
<xsl:for-each select="sqlerg/row"> |
||||||
|
<xsl:variable name="rownr"> |
||||||
|
<xsl:value-of select="position()"/> |
||||||
|
</xsl:variable> |
||||||
|
<xsl:if test="$rownr=1"> |
||||||
|
<!-- first metadata --> |
||||||
|
<xsl:for-each select="col"> |
||||||
|
<xsl:variable name="colnr"> |
||||||
|
<xsl:value-of select="position()"/> |
||||||
|
</xsl:variable> |
||||||
|
<xsl:text> |
||||||
|
rsColumnMetaData[</xsl:text><xsl:value-of select="$tableId"/><xsl:text>][</xsl:text><xsl:value-of select="number($colnr)"/><xsl:text>].coltype=</xsl:text><xsl:value-of select="@typ"/> |
||||||
|
<xsl:text>; |
||||||
|
</xsl:text> |
||||||
|
</xsl:for-each> |
||||||
|
|
||||||
|
</xsl:if> |
||||||
|
<!--now resultset--> |
||||||
|
<xsl:text> |
||||||
|
//rs[</xsl:text><xsl:value-of select="$tableId"/><xsl:text>]= new Array(); |
||||||
|
rs[</xsl:text><xsl:value-of select="$tableId"/><xsl:text>].push(new dataRow_</xsl:text><xsl:value-of select="$tableId"/><xsl:text>(</xsl:text><xsl:value-of select="$rownr"/> |
||||||
|
<xsl:for-each select="col"> |
||||||
|
<xsl:text>,</xsl:text> |
||||||
|
<xsl:choose> |
||||||
|
<xsl:when test="@typ='1'"><xsl:text>'</xsl:text> |
||||||
|
<xsl:call-template name="remove_linebreaksAndQuot"> |
||||||
|
<xsl:with-param name="volltext" select="wert" /> |
||||||
|
</xsl:call-template> |
||||||
|
<xsl:text>'</xsl:text></xsl:when> |
||||||
|
<!--todo:Typ Datum --> |
||||||
|
<xsl:when test="string-length(wert)=0"><xsl:text>null</xsl:text> |
||||||
|
</xsl:when> |
||||||
|
<xsl:otherwise> |
||||||
|
<xsl:value-of select="wert"/> |
||||||
|
</xsl:otherwise> |
||||||
|
</xsl:choose> |
||||||
|
</xsl:for-each> |
||||||
|
<xsl:text>)); |
||||||
|
</xsl:text> |
||||||
|
</xsl:for-each> |
||||||
|
|
||||||
|
|
||||||
|
</script> |
||||||
|
</xsl:template> |
||||||
|
<xsl:template name="displayTables"> |
||||||
|
<!-- jetzt Tabelle--> |
||||||
|
<div> |
||||||
|
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement"> |
||||||
|
<p class="teiltabelle_titel" style="font-size:3em;"> |
||||||
|
<xsl:text>Datentabelle </xsl:text><a onclick="{concat('toggleTableVisibility(',$colon,'toggleBtnTable',@ordnr+1, $colon,',',$colon, 'table',@ordnr+1,$colon,');')}"> <img id="{concat('toggleBtnTable',@ordnr+1)}" src="../images/minus-circled.svg" height="20px" style="height:20px" border="0" /></a></p> |
||||||
|
|
||||||
|
<!--<xsl:call-template name="nd_singleTable"> |
||||||
|
<xsl:with-param name="ergebniselement_ordnr" select="@ordnr" /> |
||||||
|
<xsl:with-param name="showPager" select="'none'" /> |
||||||
|
</xsl:call-template>--> |
||||||
|
<div id="table1"> |
||||||
|
<div id="chartDiv1" /> |
||||||
|
</div> |
||||||
|
<!--<xsl:call-template name="vizPivotTable" />--> |
||||||
|
</xsl:for-each> |
||||||
|
</div> |
||||||
|
</xsl:template> |
||||||
|
</xsl:stylesheet> |
||||||
Loading…
Reference in new issue