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.
1494 lines
60 KiB
1494 lines
60 KiB
2 years ago
|
<?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="xsl_functions.xsl" />
|
||
|
<xsl:import href="resultset_html_bil.xsl" />
|
||
|
<xsl:import href="interLinks_html_bil.xsl" />
|
||
|
<xsl:import href="pageComponents_html.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:import href="pageComponents_html_final_bil.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:template match="/">
|
||
|
<xsl:call-template name="table"/>
|
||
|
</xsl:template>
|
||
|
|
||
|
<!-- start table main-->
|
||
|
<xsl:template name="table">
|
||
|
<html>
|
||
|
<xsl:call-template name="head" ><xsl:with-param name="title" select="concat('Ergebnis ',/ergebnisse/ergebnis[ position()=1]/maskenname)" /></xsl:call-template>
|
||
|
<xsl:call-template name="tableCSS"></xsl:call-template>
|
||
|
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_pre_javascript'"></xsl:with-param></xsl:call-template>
|
||
|
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_pre_javascript'"></xsl:with-param></xsl:call-template>
|
||
|
<xsl:call-template name="tableJavascript"></xsl:call-template>
|
||
|
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_post_javascript'"></xsl:with-param></xsl:call-template>
|
||
|
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_post_javascript'"></xsl:with-param></xsl:call-template>
|
||
|
|
||
|
<!-- start Body-->
|
||
|
<body onload="document.getElementById('progressbar').style.display='none';tableonload();">
|
||
|
<!-- tableonload definiert in pageComponents.pccustomize position table_post_javascript -->
|
||
|
<div id="progressbar" style="position:absolute; width:150px; height:150px; left:200px; top:200px; background:#AAAAAA">
|
||
|
<p> <b>Laden...</b><br/><img src="/superx/images/progress_bar.gif"></img><br/></p></div>
|
||
|
<xsl:call-template name="customheader"/> <!--Standard in pageCompnents.xsl wird ggfs. direkt vom Servlet ersetzt!!-->
|
||
|
|
||
|
<xsl:call-template name="topbar_table" /> <!-- momentan nur in pageCompnents_final fuer h1 gefullet -->
|
||
|
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_pre_center'"></xsl:with-param></xsl:call-template>
|
||
|
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_pre_center'"></xsl:with-param></xsl:call-template>
|
||
|
<xsl:call-template name="tableCenter"/>
|
||
|
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_post_center'"></xsl:with-param></xsl:call-template>
|
||
|
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_post_center'"></xsl:with-param></xsl:call-template>
|
||
|
|
||
|
<xsl:call-template name="tableDialogs"></xsl:call-template>
|
||
|
|
||
|
|
||
|
<!-- Einbettung Grafiken -->
|
||
|
<div>
|
||
|
<div id="tabs">
|
||
|
<ul>
|
||
|
<li><a href="#tabs-1">Anzahl Absolventen/innen</a></li>
|
||
|
<li><a href="#tabs-2">Altersdurchschnitt</a></li>
|
||
|
<li><a href="#tabs-3">Anteil Frauen</a></li>
|
||
|
<li><a href="#tabs-4">Anteil Ausländer/innen</a></li>
|
||
|
<li><a href="#tabs-5">Anteil Bildungsausländer/innen</a></li>
|
||
|
<li><a href="#tabs-6">Anteil innerhalb Regelstudienzeit</a></li>
|
||
|
</ul>
|
||
|
<div id="tabs-1">
|
||
|
<div id="chart1" data-height="800px" data-width="800px" style="width: 900px; height: 800px; margin-top: 20px; margin-left: 20px"></div>
|
||
|
</div>
|
||
|
<div id="tabs-2">
|
||
|
<div id="chart2" data-height="800px" data-width="800px" style="width: 900px; margin-top:20px; margin-left:20px;"></div>
|
||
|
</div>
|
||
|
<div id="tabs-3">
|
||
|
<div id="chart3" data-height="800px" data-width="800px" style="width: 900px; margin-top:20px; margin-left:20px;"></div>
|
||
|
</div>
|
||
|
<div id="tabs-4">
|
||
|
<div id="chart4" data-height="800px" data-width="800px" style="width: 900px; margin-top:20px; margin-left:20px;"></div>
|
||
|
</div>
|
||
|
<div id="tabs-5">
|
||
|
<div id="chart5" data-height="800px" data-width="800px" style="width: 900px; margin-top:20px; margin-left:20px;"></div>
|
||
|
</div>
|
||
|
<div id="tabs-6">
|
||
|
<div id="chart6" data-height="800px" data-width="800px" style="width: 900px; margin-top:20px; margin-left:20px;"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<xsl:text disable-output-escaping="yes"><![CDATA[ <script type="text/javascript">]]></xsl:text>
|
||
|
|
||
|
<xsl:text>
|
||
|
var data1 = new Array();
|
||
|
var data2 = new Array();
|
||
|
var data3 = new Array();
|
||
|
var data4 = new Array();
|
||
|
var data5 = new Array();
|
||
|
var data6 = new Array();
|
||
|
var ticks = new Array();
|
||
|
</xsl:text>
|
||
|
|
||
|
<!-- Anzahl Studierende - Schleife über die Ergebniszeilen -->
|
||
|
<!-- falls Parameter hidden_id enthalten ist, wurde nur die Detailabfrage ausgeführt. In diesem Fall erst ab Spalte zwei und bis zur vorletzten Spalte die Werte erfassen. -->
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="//col[compare(f_name,'hidden_id')=0]">
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anzahl')=0]">
|
||
|
<xsl:for-each select="../col[@id > 2]">
|
||
|
<xsl:if test="position() != last()">
|
||
|
<xsl:text>data1[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text><xsl:value-of select="wert" />;
|
||
|
</xsl:if>
|
||
|
</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
|
||
|
<xsl:for-each select="//col[compare(wert, 'Altersdurchschnitt in Jahren')=0]">
|
||
|
<xsl:for-each select="../col[@id > 2]">
|
||
|
<xsl:if test="position() != last()">
|
||
|
<xsl:text>data2[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text><xsl:value-of select="wert" />;
|
||
|
</xsl:if>
|
||
|
</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="//col[compare(wert, 'Anteil (in %) weibl. Absolventen/innen')=0]">
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anteil (in %) weibl. Absolventen/innen')=0]">
|
||
|
<xsl:for-each select="../col[@id > 2]">
|
||
|
<xsl:if test="position() != last()">
|
||
|
<xsl:text>data3[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text><xsl:value-of select="wert" />;
|
||
|
</xsl:if>
|
||
|
</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<!-- keine Werte vorhanden, dann Array anhand Zeile mit Anzahl mit Nullen füllen -->
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anzahl')=0]">
|
||
|
<xsl:for-each select="../col[@id > 2]">
|
||
|
<xsl:if test="position() != last()">
|
||
|
<xsl:text>data3[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=0</xsl:text>;
|
||
|
</xsl:if>
|
||
|
</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="//col[compare(wert, 'Anteil (in %) ausl. Absolventen/innen')=0]">
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anteil (in %) ausl. Absolventen/innen')=0]">
|
||
|
<xsl:for-each select="../col[@id > 2]">
|
||
|
<xsl:if test="position() != last()">
|
||
|
<xsl:text>data4[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text><xsl:value-of select="wert" />;
|
||
|
</xsl:if>
|
||
|
</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<!-- keine Werte vorhanden, dann Array anhand Zeile mit Anzahl mit Nullen füllen -->
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anzahl')=0]">
|
||
|
<xsl:for-each select="../col[@id > 2]">
|
||
|
<xsl:if test="position() != last()">
|
||
|
<xsl:text>data4[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=0</xsl:text>;
|
||
|
</xsl:if>
|
||
|
</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="//col[compare(wert, 'Anteil (in %) Bildungsausländer/innen')=0]">
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anteil (in %) Bildungsausländer/innen')=0]">
|
||
|
<xsl:for-each select="../col[@id > 2]">
|
||
|
<xsl:if test="position() != last()">
|
||
|
<xsl:text>data5[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text><xsl:value-of select="wert" />;
|
||
|
</xsl:if>
|
||
|
</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<!-- keine Werte vorhanden, dann Array anhand Zeile mit Anzahl mit Nullen füllen -->
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anzahl')=0]">
|
||
|
<xsl:for-each select="../col[@id > 2]">
|
||
|
<xsl:if test="position() != last()">
|
||
|
<xsl:text>data5[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=0</xsl:text>;
|
||
|
</xsl:if>
|
||
|
</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anteil (in %) Absolventen/innen in Regelstudienzeit')=0]">
|
||
|
<xsl:for-each select="../col[@id > 2]">
|
||
|
<xsl:if test="position() != last()">
|
||
|
<xsl:text>data6[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text>
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="wert != ''">
|
||
|
<!-- <xsl:value-of select="format-number(wert,'###.###.###.###.###','German')" /> -->
|
||
|
<!-- für die Grafik kein Tausendertrennzeichen etc. verwenden -->
|
||
|
<xsl:value-of select="wert" />
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
0
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>;
|
||
|
</xsl:if>
|
||
|
</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anzahl')=0]">
|
||
|
<xsl:for-each select="../col[@id > 1]"><xsl:text>data1[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text><xsl:value-of select="wert" />;</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
<xsl:for-each select="//col[compare(wert, 'Altersdurchschnitt in Jahren')=0]">
|
||
|
<xsl:for-each select="../col[@id > 1]"><xsl:text>data2[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text><xsl:value-of select="wert" />;</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="//col[compare(wert, 'Anteil (in %) weibl. Absolventen/innen')=0]">
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anteil (in %) weibl. Absolventen/innen')=0]">
|
||
|
<xsl:for-each select="../col[@id > 1]"><xsl:text>data3[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text><xsl:value-of select="wert" />;</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anzahl')=0]">
|
||
|
<xsl:for-each select="../col[@id > 1]"><xsl:text>data3[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=0;</xsl:text></xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="//col[compare(wert, 'Anteil (in %) ausl. Absolventen/innen')=0]">
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anteil (in %) ausl. Absolventen/innen')=0]">
|
||
|
<xsl:for-each select="../col[@id > 1]"><xsl:text>data4[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text><xsl:value-of select="wert" />;</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anzahl')=0]">
|
||
|
<xsl:for-each select="../col[@id > 1]"><xsl:text>data4[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=0;</xsl:text></xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="//col[compare(wert, 'Anteil (in %) Bildungsausländer/innen')=0]">
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anteil (in %) Bildungsausländer/innen')=0]">
|
||
|
<xsl:for-each select="../col[@id > 1]"><xsl:text>data5[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text><xsl:value-of select="wert" />;</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anzahl')=0]">
|
||
|
<xsl:for-each select="../col[@id > 1]"><xsl:text>data5[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=0;</xsl:text></xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
|
||
|
<xsl:for-each select="//col[compare(wert, 'Anteil (in %) Absolventen/innen in Regelstudienzeit')=0]">
|
||
|
<xsl:for-each select="../col[@id > 1]"><xsl:text>data6[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text>
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="wert != ''">
|
||
|
<!-- <xsl:value-of select="format-number(wert,'###.###.###.###.###','German')" /> -->
|
||
|
<!-- für die Grafik kein Tausendertrennzeichen etc. verwenden -->
|
||
|
<xsl:value-of select="wert" />
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
0
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>;
|
||
|
</xsl:for-each>
|
||
|
</xsl:for-each>
|
||
|
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
<!-- Beschriftungen X-Achse -->
|
||
|
<!-- Array ticks füllen - Schleife über die Ergebniszeilen -->
|
||
|
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement/sqlerg/complete_headers/header[contains(f_name, 'sem')]">
|
||
|
<xsl:text>ticks[</xsl:text><xsl:value-of select="position()-1" /><xsl:text>]=</xsl:text>
|
||
|
'<xsl:value-of select="wert" />';
|
||
|
</xsl:for-each>
|
||
|
<xsl:text>
|
||
|
$(document).ready(function() {
|
||
|
$.jqplot.config.enablePlugins = false;
|
||
|
$("#tabs").tabs();
|
||
|
|
||
|
var plot1 = $.jqplot('chart1', [data1], {
|
||
|
title: "Anzahl",
|
||
|
stackSeries: true,
|
||
|
seriesColors:['#2A6EBB'],
|
||
|
seriesDefaults:{
|
||
|
renderer:$.jqplot.BarRenderer,
|
||
|
rendererOptions: {shadow: false},
|
||
|
pointLabels: {show: true}
|
||
|
},
|
||
|
legend:{show:true,
|
||
|
placement: 'outside',
|
||
|
labels: ['Anzahl Absolventen/innen']},
|
||
|
axes: {
|
||
|
xaxis: {
|
||
|
renderer: $.jqplot.CategoryAxisRenderer,
|
||
|
label: '',
|
||
|
ticks: ticks,
|
||
|
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
|
||
|
tickRenderer: $.jqplot.CanvasAxisTickRenderer,
|
||
|
tickOptions: { angle: 75}
|
||
|
},
|
||
|
yaxis: {
|
||
|
label: 'Anzahl',
|
||
|
// Formatierung der Werte
|
||
|
tickOptions:{formatString:'%.0f'}
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
var plot2 = $.jqplot('chart2', [data2], {
|
||
|
title: "Altersdurchschnitt der Absolventen/innen",
|
||
|
stackSeries: true,
|
||
|
seriesColors:['#2A6EBB'],
|
||
|
seriesDefaults:{
|
||
|
renderer:$.jqplot.BarRenderer,
|
||
|
rendererOptions: {shadow: false},
|
||
|
pointLabels: {show: true, formatString:'%.1f'}
|
||
|
},
|
||
|
legend:{show:true,
|
||
|
placement: 'outside',
|
||
|
labels: ['Altersdurchschnitt']},
|
||
|
axes: {
|
||
|
xaxis: {
|
||
|
renderer: $.jqplot.CategoryAxisRenderer,
|
||
|
label: '',
|
||
|
ticks: ticks,
|
||
|
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
|
||
|
tickRenderer: $.jqplot.CanvasAxisTickRenderer,
|
||
|
tickOptions: { angle: 75}
|
||
|
},
|
||
|
yaxis: {
|
||
|
label: 'Alter in Jahren',
|
||
|
// Formatierung der Werte
|
||
|
tickOptions:{formatString:'%.0f'}
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
var plot3 = $.jqplot('chart3', [data3], {
|
||
|
title: "Anteil (in %) weibl. Absolventen/innen",
|
||
|
stackSeries: true,
|
||
|
seriesColors:['#2A6EBB'],
|
||
|
seriesDefaults:{
|
||
|
renderer:$.jqplot.BarRenderer,
|
||
|
rendererOptions: {shadow: false},
|
||
|
pointLabels: {show: true, formatString:'%.1f'}
|
||
|
},
|
||
|
legend:{show:true,
|
||
|
placement: 'outside',
|
||
|
labels: ['Anteil Frauen']},
|
||
|
axes: {
|
||
|
xaxis: {
|
||
|
renderer: $.jqplot.CategoryAxisRenderer,
|
||
|
label: '',
|
||
|
ticks: ticks,
|
||
|
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
|
||
|
tickRenderer: $.jqplot.CanvasAxisTickRenderer,
|
||
|
tickOptions: { angle: 75}
|
||
|
},
|
||
|
yaxis: {
|
||
|
label: 'Anteil in %',
|
||
|
// Formatierung der Werte
|
||
|
tickOptions:{formatString:'%.0f'}
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
var plot4 = $.jqplot('chart4', [data4], {
|
||
|
title: "Anteil (in %) ausl. Absolventen/innen",
|
||
|
stackSeries: true,
|
||
|
seriesColors:['#2A6EBB'],
|
||
|
seriesDefaults:{
|
||
|
renderer:$.jqplot.BarRenderer,
|
||
|
rendererOptions: {shadow: false},
|
||
|
pointLabels: {show: true, formatString:'%.1f'}
|
||
|
},
|
||
|
legend:{show:true,
|
||
|
placement: 'outside',
|
||
|
labels: ['Anteil Ausländer/innen']},
|
||
|
axes: {
|
||
|
xaxis: {
|
||
|
renderer: $.jqplot.CategoryAxisRenderer,
|
||
|
label: '',
|
||
|
ticks: ticks,
|
||
|
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
|
||
|
tickRenderer: $.jqplot.CanvasAxisTickRenderer,
|
||
|
tickOptions: { angle: 75}
|
||
|
},
|
||
|
yaxis: {
|
||
|
label: 'Anteil in %',
|
||
|
// Formatierung der Werte
|
||
|
tickOptions:{formatString:'%.0f'}
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
var plot5 = $.jqplot('chart5', [data5], {
|
||
|
title: "Anteil (in %) Bildungsausländer/innen",
|
||
|
stackSeries: true,
|
||
|
seriesColors:['#2A6EBB'],
|
||
|
seriesDefaults:{
|
||
|
renderer:$.jqplot.BarRenderer,
|
||
|
rendererOptions: {shadow: false},
|
||
|
pointLabels: {show: true, formatString:'%.1f'}
|
||
|
},
|
||
|
legend:{show:true,
|
||
|
placement: 'outside',
|
||
|
labels: ['Anteil Bildungsausländer/innen']},
|
||
|
axes: {
|
||
|
xaxis: {
|
||
|
renderer: $.jqplot.CategoryAxisRenderer,
|
||
|
label: '',
|
||
|
ticks: ticks,
|
||
|
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
|
||
|
tickRenderer: $.jqplot.CanvasAxisTickRenderer,
|
||
|
tickOptions: { angle: 75}
|
||
|
},
|
||
|
yaxis: {
|
||
|
label: 'Anteil in %',
|
||
|
// Formatierung der Werte
|
||
|
tickOptions:{formatString:'%.0f'}
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
var plot6 = $.jqplot('chart6', [data6], {
|
||
|
title: "Anteil (in %) Absolventen/innen innerhalb der Regelstudienzeit",
|
||
|
stackSeries: true,
|
||
|
seriesColors:['#2A6EBB'],
|
||
|
seriesDefaults:{
|
||
|
renderer:$.jqplot.BarRenderer,
|
||
|
rendererOptions: {shadow: false},
|
||
|
pointLabels: {show: true, formatString:'%.1f'}
|
||
|
},
|
||
|
legend:{show:true,
|
||
|
placement: 'outside',
|
||
|
labels: ['Anteil Absolventen/innen in Regelstudienzeit']},
|
||
|
axes: {
|
||
|
xaxis: {
|
||
|
renderer: $.jqplot.CategoryAxisRenderer,
|
||
|
label: '',
|
||
|
ticks: ticks,
|
||
|
labelRenderer: $.jqplot.CanvasAxisLabelRenderer,
|
||
|
tickRenderer: $.jqplot.CanvasAxisTickRenderer,
|
||
|
tickOptions: { angle: 75}
|
||
|
},
|
||
|
yaxis: {
|
||
|
label: 'Anteil in %',
|
||
|
// Formatierung der Werte
|
||
|
tickOptions:{formatString:'%.0f'}
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
</xsl:text>
|
||
|
<xsl:text disable-output-escaping="yes">
|
||
|
$('#tabs').bind('tabsactivate', function(event, ui) {
|
||
|
if (ui.newTab.index() === 1 && plot2._drawCount === 0) {
|
||
|
plot2.replot();
|
||
|
}
|
||
|
else if (ui.newTab.index() === 2 && plot3._drawCount === 0) {
|
||
|
plot3.replot();
|
||
|
}
|
||
|
else if (ui.newTab.index() === 3 && plot4._drawCount === 0) {
|
||
|
plot4.replot();
|
||
|
}
|
||
|
else if (ui.newTab.index() === 4 && plot5._drawCount === 0) {
|
||
|
plot5.replot();
|
||
|
}
|
||
|
else if (ui.newTab.index() === 5 && plot6._drawCount === 0) {
|
||
|
plot6.replot();
|
||
|
}
|
||
|
});
|
||
|
</xsl:text>
|
||
|
<xsl:text>
|
||
|
|
||
|
});
|
||
|
</xsl:text>
|
||
|
<xsl:text disable-output-escaping="yes"><![CDATA[</script>]]> </xsl:text>
|
||
|
</div>
|
||
|
<!-- für den Druckversion-Button -->
|
||
|
<script type="text/javascript" src="/superx/xml/js/bil/bil_grafik.min.js"></script>
|
||
|
<!-- //Einbettung Grafiken -->
|
||
|
|
||
|
|
||
|
<xsl:call-template name="bottombar" />
|
||
|
<xsl:comment>customfooter</xsl:comment>
|
||
|
</body>
|
||
|
<!-- end body -->
|
||
|
</html>
|
||
|
</xsl:template>
|
||
|
<!-- end main -->
|
||
|
<!-- start css -->
|
||
|
<xsl:template name="tableCSS">
|
||
|
<style type="text/css">
|
||
|
.dojoDialog {background : #eee; border : 1px solid #999;-moz-border-radius : 5px;padding : 4px;width:650;height:420px;overflow:scroll}
|
||
|
.treebutton {
|
||
|
border:none;
|
||
|
margin: 0 4px 0 0;
|
||
|
}
|
||
|
@media print{
|
||
|
.dontprint{display:none;}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
</style>
|
||
|
</xsl:template>
|
||
|
<!-- end css -->
|
||
|
|
||
|
<!-- start Javascript-->
|
||
|
<xsl:template name="tableJavascript">
|
||
|
<script language="JavaScript" type="text/javascript">
|
||
|
function getTid(){
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="/ergebnisse/@isMakro='true'">
|
||
|
<xsl:text>tid=</xsl:text><xsl:value-of select="/ergebnisse/makro/@id" /><xsl:text>;
|
||
|
</xsl:text>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:text>tid=</xsl:text><xsl:value-of select="/ergebnisse/ergebnis/maskenname/@id" /><xsl:text>;
|
||
|
</xsl:text>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
return tid;
|
||
|
}
|
||
|
|
||
|
function jsDisableInput(datei) {
|
||
|
var dateiendungArray = datei.split(".");
|
||
|
var dateiendung = dateiendungArray[dateiendungArray.length - 1];
|
||
|
if(dateiendung=="jrxml") {
|
||
|
document.Weiterverarbeitung.jr_contenttype.disabled=false;
|
||
|
}
|
||
|
else {
|
||
|
document.Weiterverarbeitung.jr_contenttype.disabled=true;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
<!-- start normale Abfragen - nicht makros dojo/ggfs. Treetable-->
|
||
|
<xsl:if test="/ergebnisse/@isMakro!='true'">
|
||
|
|
||
|
<!-- mit dieser Reihenfolge tritt Skript-Ladezeitverzögerung im IE auf: bei getauschter Reihenfolge der nachfolgenden 2 Skripte (dojo.js als erstes) nicht, allerdings funktioniert dann die Lesezeichen-Funktion nicht mehr -->
|
||
|
<script language="JavaScript" type="text/javascript">
|
||
|
djConfig = {
|
||
|
bindEncoding: "ISO-8859-1",
|
||
|
isDebug: false,
|
||
|
debugAtAllCosts:false,
|
||
|
debugContainerId:"dojoDebug"
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<script language="JavaScript" type="text/javascript" src="/superx/xml/js/dojo/dojo.js"></script>
|
||
|
<script language="JavaScript" type="text/javascript" src="/superx/xml/js/memtext/sx_functions.js"></script>
|
||
|
|
||
|
|
||
|
|
||
|
<script language="JavaScript" type="text/javascript">
|
||
|
dojo.require("dojo.widget.Dialog");
|
||
|
dojo.require("dojo.widget.Button");
|
||
|
dojo.require("dojo.event.*");
|
||
|
dojo.require("dojo.dnd.*");
|
||
|
dojo.require("dojo.io.*");
|
||
|
dojo.require("dojo.widget.ContentPane");
|
||
|
dojo.hostenv.writeIncludes();
|
||
|
var configdlg;
|
||
|
var spaltenliste,spaltentrash;
|
||
|
var isTreeTable=false;
|
||
|
<xsl:if test="/ergebnisse/@isMakro!='true' and /ergebnisse/ergebnis/ergebniselement/sqlerg/@istreetable='true'">
|
||
|
isTreeTable=true;
|
||
|
</xsl:if>
|
||
|
|
||
|
</script>
|
||
|
<!-- javascript array mit Feldern - bei Makros ist Feld-XML noch nicht drin-->
|
||
|
<xsl:text disable-output-escaping="yes"><![CDATA[<script type="text/javascript">
|
||
|
var felder = new Array();]]></xsl:text>
|
||
|
<xsl:for-each select="/ergebnisse/ergebnis/felder/feld">
|
||
|
<xsl:text>felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]= new Object();
|
||
|
felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]["htmlname"]='</xsl:text><xsl:value-of select="@varname"/><xsl:text>';
|
||
|
felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]["name"]='</xsl:text><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="@varname"/></xsl:with-param></xsl:call-template><xsl:text>';
|
||
|
felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]["cb_name"]='</xsl:text><xsl:call-template name="umlaut_urlencode"><xsl:with-param name="s1"><xsl:value-of select="@varname"/></xsl:with-param></xsl:call-template><xsl:text>';
|
||
|
</xsl:text>
|
||
|
<!-- in sql-variablen könnte auch " vorkommen als %22 codieren-->
|
||
|
<xsl:variable name="quot">"</xsl:variable>
|
||
|
<xsl:variable name="r"><xsl:value-of disable-output-escaping="yes" select="value"/></xsl:variable>
|
||
|
<xsl:text>felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]["value"]="</xsl:text>
|
||
|
<xsl:call-template name="search_replace">
|
||
|
<xsl:with-param name="string" select="$r"/>
|
||
|
<xsl:with-param name="search" select="$quot" />
|
||
|
<xsl:with-param name="replace" select="'%22'" />
|
||
|
</xsl:call-template><xsl:text>";
|
||
|
</xsl:text>
|
||
|
</xsl:for-each>
|
||
|
<xsl:text disable-output-escaping="yes"><![CDATA[</script>]]></xsl:text>
|
||
|
|
||
|
|
||
|
<!-- start x für Tabellenfixierung-->
|
||
|
<script type='text/javascript' src='/superx/xml/js/x/x_core.js'></script>
|
||
|
<script type='text/javascript' src='/superx/xml/js/x/lib/xaddeventlistener.js'></script>
|
||
|
<script type='text/javascript' src='/superx/xml/js/x/lib/xtablefixed.js'></script>
|
||
|
|
||
|
|
||
|
<!-- start xTableHeaderFixed -->
|
||
|
<script type='text/javascript'>
|
||
|
var addBehavior = false, ss = '/superx/xml/js/x/xthf.css';
|
||
|
|
||
|
if (window.XMLHttpRequest) {
|
||
|
addBehavior = true;
|
||
|
}
|
||
|
else {
|
||
|
/*@cc_on
|
||
|
@if (@_jscript_version == 5.6) // IE6
|
||
|
if(navigator.appName=="Microsoft Internet Explorer" )
|
||
|
ss = '/superx/xml/js/x/xthf_ie6.css';
|
||
|
addBehavior = false;
|
||
|
@end @*/
|
||
|
}
|
||
|
if (addBehavior) {
|
||
|
var e = document.createElement('link');
|
||
|
e.rel = 'stylesheet';
|
||
|
e.type = 'text/css';
|
||
|
e.href = ss;
|
||
|
document.getElementsByTagName('head')[0].appendChild(e);
|
||
|
xAddEventListener(window, 'load', appOnload, false);
|
||
|
xAddEventListener(window, 'unload', function(){if (window.xthf) window.xthf.unload();}, false);
|
||
|
}
|
||
|
|
||
|
function appOnload()
|
||
|
{
|
||
|
//window.xthf = new xTableHeaderFixed('idFixedHeaderContainer', 'clsFixedHeaderTable', 'leftColumn', 1, 1, 'table1', 'table2', 'table3');
|
||
|
//window.xthf = new xTableHeaderFixed('idFixedHeaderContainer', 'clsFixedHeaderTable', 'leftColumn', 1, 1);
|
||
|
// window.xtcf = new xTableColumnsFixed('idFixedColumnsContainer', 'clsFixedColumnsTable', 'leftColumn', 1, 1,false,2,'table1');
|
||
|
var fixedColumnCount=<xsl:value-of select="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/@fixed_column_count"/>;
|
||
|
window.xthf = new xTableFixed('idFixedHeaderContainer', 'clsFixedHeaderTable','idFixedColumnsContainer', 'clsFixedColumnsTable', 'leftColumn', 1, 1,false,fixedColumnCount,'table1');
|
||
|
//dojo.debug(window.xthf);
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
<!-- end xtableheaderfixed -->
|
||
|
<!-- end x-->
|
||
|
|
||
|
<!-- start xy-->
|
||
|
<script language="JavaScript" type="text/javascript">
|
||
|
<xsl:text>headers=eval("([</xsl:text>
|
||
|
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/header[not (starts-with(f_name,'hidden'))]">
|
||
|
<xsl:text>{key:'</xsl:text><xsl:value-of select="f_name"/><xsl:text>',name:'</xsl:text>
|
||
|
<xsl:call-template name='json_adapt'>
|
||
|
<xsl:with-param name="string" select="wert" />
|
||
|
</xsl:call-template><xsl:text>'}</xsl:text>
|
||
|
<xsl:if test="position() != last()"><xsl:text>,</xsl:text></xsl:if>
|
||
|
</xsl:for-each>
|
||
|
<xsl:text>])");
|
||
|
var count=1;
|
||
|
<![CDATA[for (var i=0;i<headers.length;i++) if (headers[i].name.replace(/\s+$/,"")=='') {headers[i].name='Leerspalte '+count;count++;}]]>
|
||
|
</xsl:text>
|
||
|
<xsl:text>complete_headers=eval("([</xsl:text>
|
||
|
<!--MB 04/2010 versteckte Spalten nicht -->
|
||
|
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement/sqlerg/complete_headers/header[not (starts-with(f_name,'hidden'))]">
|
||
|
<xsl:text>{key:'</xsl:text><xsl:value-of select="f_name"/><xsl:text>',name:'</xsl:text>
|
||
|
<xsl:call-template name='json_adapt'>
|
||
|
<xsl:with-param name="string" select="wert" />
|
||
|
</xsl:call-template><xsl:text>'}</xsl:text>
|
||
|
<xsl:if test="position() != last()"><xsl:text>,</xsl:text></xsl:if>
|
||
|
</xsl:for-each>
|
||
|
<xsl:text>])");</xsl:text>
|
||
|
var count=1;
|
||
|
<![CDATA[for (var i=0;i<complete_headers.length;i++) if (complete_headers[i].name.replace(/\s+$/,"")=='') {complete_headers[i].name='Leerspalte '+count;count++;}]]>
|
||
|
|
||
|
function init(e) {
|
||
|
configdlg = dojo.widget.byId("configdlg");
|
||
|
spaltenliste=document.getElementById('spaltenliste');
|
||
|
//spaltentrash=document.getElementById('spaltentrash');
|
||
|
new dojo.dnd.HtmlDropTarget(spaltenliste, ["spaltenobjekt"]);
|
||
|
//new dojo.dnd.HtmlDropTarget(document.getElementById('spaltentrash'), ["spaltenobjekt"]);
|
||
|
|
||
|
document.getElementById('progressbar').style.display="none";
|
||
|
}
|
||
|
dojo.addOnLoad(init);
|
||
|
|
||
|
<!-- start showConfig -->
|
||
|
function showConfig()
|
||
|
{
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/@hasAggregationHeaders='true'">
|
||
|
alert("Konfiguration bei diesem komplexen Layout nicht moeglich");
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
//Spaltenreihenfolge
|
||
|
while (spaltenliste.hasChildNodes())
|
||
|
spaltenliste.removeChild(spaltenliste.childNodes[0]);
|
||
|
//while (spaltentrash.hasChildNodes()) spaltentrash.removeChild(spaltentrash.childNodes[0]);
|
||
|
//var newLI = document.createElement("li"); newLI.appendChild(document.createTextNode("nicht dargestellte Spalten")); spaltentrash.appendChild(newLI);
|
||
|
<![CDATA[
|
||
|
for (var i=0;i<complete_headers.length;i++)
|
||
|
{
|
||
|
var newLI = document.createElement("li");
|
||
|
newLI.setAttribute("key",complete_headers[i].key);
|
||
|
spaltenliste.appendChild(newLI);
|
||
|
|
||
|
var newLIText = document.createTextNode(complete_headers[i].name+" ");
|
||
|
var b = document.createElement ("b");
|
||
|
b.setAttribute("style","cursor:pointer;");
|
||
|
var sp= document.createElement("span");
|
||
|
b.appendChild(sp);
|
||
|
sp.appendChild(newLIText);
|
||
|
newLI.appendChild(b);
|
||
|
var cb = document.createElement("input");
|
||
|
cb.type = "checkbox";
|
||
|
cb.name = "checkboxHeader"+i;
|
||
|
cb.id= "checkboxHeader"+i;
|
||
|
var vis=false;
|
||
|
for (var i2=0;i2<headers.length;i2++)
|
||
|
{
|
||
|
if (complete_headers[i].key==headers[i2].key) vis=true;
|
||
|
}
|
||
|
cb.checked = cb.defaultChecked=vis;
|
||
|
newLI.appendChild(cb);
|
||
|
newLI.appendChild(document.createTextNode("anzeigen"));
|
||
|
}
|
||
|
var lis = document.getElementById('spaltenliste').getElementsByTagName("li");
|
||
|
for(var x=0; x<lis.length; x++){
|
||
|
new dojo.dnd.HtmlDragSource(lis[x], "spaltenobjekt");
|
||
|
}
|
||
|
]]>
|
||
|
//Spaltensortierung
|
||
|
var sortierspalten=document.getElementById('sortierspalten');
|
||
|
while (sortierspalten.hasChildNodes()) sortierspalten.removeChild(sortierspalten.childNodes[0]);
|
||
|
<![CDATA[
|
||
|
for (var i=0;i<complete_headers.length&&i<5;i++)
|
||
|
{
|
||
|
var lbl=document.createElement("label");
|
||
|
lbl.innerHTML=(i+1)+".";
|
||
|
sortierspalten.appendChild(lbl);
|
||
|
var newSelect = document.createElement("select");
|
||
|
newSelect.id="sortcol"+i;
|
||
|
newSelect.options[0]=new Option("","nocol_selected");
|
||
|
for (var i2=0;i2<complete_headers.length;i2++)
|
||
|
{newSelect.options[i2+1]=new Option(complete_headers[i2].name,complete_headers[i2].key);}
|
||
|
sortierspalten.appendChild(newSelect);
|
||
|
var asc=document.createElement("select");
|
||
|
asc.id = "sortcol"+i+"-asc";
|
||
|
asc.options[0]=new Option("aufsteigend","-A");
|
||
|
asc.options[1]=new Option("absteigend","-D");
|
||
|
sortierspalten.appendChild(asc);
|
||
|
sortierspalten.appendChild(document.createElement("br"));
|
||
|
}
|
||
|
]]>
|
||
|
|
||
|
configdlg.show();
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
}
|
||
|
<!-- end show config-->
|
||
|
<!-- start tableReload-->
|
||
|
function tableReload(colsetParam,colsortParam)
|
||
|
{
|
||
|
document.getElementById('progressbar').style.display="";
|
||
|
<xsl:text>var callurl="/superx/servlet/SuperXmlTabelle</xsl:text>
|
||
|
<xsl:if test="/ergebnisse/@jsessionid!=''">;jsessionid=<xsl:value-of select="/ergebnisse/@jsessionid"/></xsl:if>
|
||
|
<xsl:text>?tid=</xsl:text><xsl:value-of select="/ergebnisse/ergebnis/ergebniselement/@id"/>
|
||
|
<xsl:text><![CDATA[&reuseresult=true&colset=";]]></xsl:text>
|
||
|
<![CDATA[
|
||
|
if (colsetParam=='restore')
|
||
|
callurl+='restore';
|
||
|
else
|
||
|
{
|
||
|
var lis = document.getElementById('spaltenliste').getElementsByTagName("li");
|
||
|
|
||
|
for(var x=0; x<lis.length; x++){
|
||
|
if (lis[x].getElementsByTagName('input')[0].checked)
|
||
|
{
|
||
|
for (var i=0;i<complete_headers.length;i++)
|
||
|
if (complete_headers[i].key==lis[x].getAttribute("key")) callurl+=escape(complete_headers[i].key);
|
||
|
if (x<(lis.length-1)){ callurl+="|";}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
callurl+='&colsort=';
|
||
|
if (colsortParam=='restore')
|
||
|
callurl+='restore';
|
||
|
else
|
||
|
{
|
||
|
for (var i=0;i<complete_headers.length&&i<5;i++)
|
||
|
{
|
||
|
var sortcol=document.getElementById('sortcol'+i);
|
||
|
var sortcolasc=document.getElementById('sortcol'+i+'-asc');
|
||
|
var sel=sortcol.options[sortcol.selectedIndex].value;
|
||
|
if (i==0&&sel!='nocol_selected') callurl+=sel+sortcolasc.options[sortcolasc.selectedIndex].value;
|
||
|
if (i>0&&sel!='nocol_selected') callurl+="|"+sel+sortcolasc.options[sortcolasc.selectedIndex].value;
|
||
|
}
|
||
|
}
|
||
|
]]>
|
||
|
self.location=callurl;
|
||
|
}
|
||
|
<!-- end table reload -->
|
||
|
|
||
|
</script>
|
||
|
|
||
|
|
||
|
<!-- end dojo-->
|
||
|
<!-- start treetable -->
|
||
|
<xsl:if test="/ergebnisse/ergebnis/ergebniselement/sqlerg/@istreetable='true'">
|
||
|
<script type="text/javascript" src="/superx/xml/js/treetable.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
treetable_callbacks['eventRowStateChanged'] = 'treetable_eventRowChanged';
|
||
|
|
||
|
function treetable_eventRowChanged(rowId, state) {
|
||
|
try{
|
||
|
//normalerweise ist Grafik in erster Spalte, kann aber auch 2. sein
|
||
|
//var row=document.getElementById(rowId); //macht im FF plötzlich Ärger
|
||
|
//dojo.debug("rowid:"+rowId);
|
||
|
var row=xGetElementById(rowId);
|
||
|
//dojo.debug("row"+row);
|
||
|
var tds= row.getElementsByTagName('td');
|
||
|
//dojo.debug("tds:"+tds);
|
||
|
//todo komisch hier läuft was schief??!
|
||
|
//dojo.debug("tds length"+tds.length);
|
||
|
var td0=tds[0]
|
||
|
var td0img= td0.getElementsByTagName('img');
|
||
|
if (td0img.length>0) img=td0img[0];
|
||
|
else
|
||
|
{
|
||
|
tds=row.getElementsByTagName('td');
|
||
|
//dojo.debug("tds :"+tds);
|
||
|
//dojo.debug("tds length"+tds.length);
|
||
|
var td1=tds[1];
|
||
|
var td1img= td1.getElementsByTagName('img');
|
||
|
|
||
|
if (td1img.length>0) img = td1img[0];
|
||
|
}
|
||
|
|
||
|
if (state == 1) {
|
||
|
img.src = '/superx/xml/bil/images/folder_bil_open.png';
|
||
|
} else {
|
||
|
img.src = '/superx/xml/bil/images/folder_bil.png';
|
||
|
}
|
||
|
}
|
||
|
catch (e) {
|
||
|
}
|
||
|
return (true);
|
||
|
}
|
||
|
</script>
|
||
|
<script type="text/javascript">
|
||
|
function ajaxNodeToggle(nodeid,internalrowno)
|
||
|
{
|
||
|
|
||
|
//if children already loaded, no ajax request necessary
|
||
|
//dojo.debug(document.getElementById(nodeid+"_0"));
|
||
|
if (!document.getElementById(nodeid+"_0"))
|
||
|
{
|
||
|
document.getElementById('progressbar').style.display="";
|
||
|
<xsl:text>var callurl="/superx/servlet/SuperXmlTabelle</xsl:text>
|
||
|
<xsl:if test="/ergebnisse/@jsessionid!=''">;jsessionid=<xsl:value-of select="/ergebnisse/@jsessionid"/></xsl:if>
|
||
|
<xsl:text>?tid=</xsl:text><xsl:value-of select="/ergebnisse/ergebnis/ergebniselement/@id"/><xsl:text>";
|
||
|
</xsl:text>
|
||
|
<![CDATA[
|
||
|
callurl+="&treetableid="+nodeid+"&getKidRows="+internalrowno;
|
||
|
]]>
|
||
|
dojo.io.bind({url:callurl,encoding: "ISO-8859-1",method: "post",
|
||
|
handler: function(type,data,evt)
|
||
|
{
|
||
|
// dojo.debug(data);
|
||
|
document.getElementById('progressbar').style.display="none";
|
||
|
if (type=='error') {
|
||
|
msg='Fehler beim Lesen der Daten!\n';
|
||
|
if (data.message) msg+=data.message;
|
||
|
else msg+=data.error;
|
||
|
alert(msg);
|
||
|
//dojo.debugDeep(data);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
|
||
|
var help=document.createElement("div");
|
||
|
help.innerHTML=data;
|
||
|
var pos=document.getElementById(nodeid).sectionRowIndex;
|
||
|
//dojo.debug("pos: "+pos);
|
||
|
var newrows=help.getElementsByTagName("tr");
|
||
|
<![CDATA[
|
||
|
for (i=0;i<newrows.length;i++)
|
||
|
{
|
||
|
|
||
|
var newrow=document.getElementById("table1").tBodies[0].insertRow(pos+i+1);
|
||
|
newrow.id=nodeid+"_"+i;
|
||
|
//IE kann nicht in TR-innerHTML schreiben
|
||
|
//newrow.innerHTML=newrows[i].innerHTML;
|
||
|
for (i2=0;i2<newrows[i].attributes.length;i2++)
|
||
|
{
|
||
|
newrow.setAttribute(newrows[i].attributes[i2].name,newrows[i].getAttribute(newrows[i].attributes[i2].name));
|
||
|
}
|
||
|
//fuck IE
|
||
|
newrow.setAttribute("className", newrows[i].getAttribute("className"));
|
||
|
for (i2=0;i2<newrows[i].cells.length;i2++)
|
||
|
{
|
||
|
newcell=newrow.insertCell(i2);
|
||
|
newcell.innerHTML=newrows[i].cells[i2].innerHTML;
|
||
|
//Attribut wie class wird nicht durch innerHTML übernommen
|
||
|
for (i3=0;i3<newrows[i].cells[i2].attributes.length;i3++)
|
||
|
{
|
||
|
newcell.setAttribute(newrows[i].cells[i2].attributes[i3].name,newrows[i].cells[i2].getAttribute(newrows[i].cells[i2].attributes[i3].name));
|
||
|
}
|
||
|
//fuck IE
|
||
|
newcell.setAttribute("className", newrows[i].cells[i2].getAttribute("className"));
|
||
|
}
|
||
|
}
|
||
|
treetable_toggleRow(nodeid,1,1);
|
||
|
treetable_eventRowChanged(nodeid, 1);
|
||
|
if (window.xthf) window.xthf.init();
|
||
|
document.getElementById('progressbar').style.display="none";
|
||
|
]]>
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
);
|
||
|
|
||
|
}
|
||
|
else //kein Nachladen per Dojo nötig
|
||
|
{
|
||
|
treetable_toggleRow(nodeid);
|
||
|
// treetable_zuklappen(nodeid);
|
||
|
// var starttime=(new Date).getTime();
|
||
|
// while (starttime+400>(new Date).getTime()){};
|
||
|
// treetable_toggleRow(nodeid,-1,-1);
|
||
|
}
|
||
|
|
||
|
if (window.xthf) window.xthf.init();
|
||
|
|
||
|
//dojo.debugDeep(window.xthf);
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
</script>
|
||
|
|
||
|
|
||
|
</xsl:if>
|
||
|
<!-- end treetable-->
|
||
|
|
||
|
<!-- start Lesezeichen/applyMerkmale-->
|
||
|
<script language="JavaScript" type="text/javascript">
|
||
|
|
||
|
<!-- von Lesezeichen oder template Merkmale eintragen
|
||
|
geht nur für normale Masken da Javascript-array für Felder korrekt gefüllt sein muss
|
||
|
anders definiert als in maske_html, muss genauso heißen, damit allgemeine Vorlage sowohl masken als auch bei Tabellen greifen
|
||
|
-->
|
||
|
function applyMerkmale(merkmale)
|
||
|
{
|
||
|
<xsl:text><![CDATA[url=location.protocol+'//'+location.host+"/superx/servlet/SuperXmlTabelle";]]>
|
||
|
</xsl:text>
|
||
|
<xsl:if test="/ergebnisse/@jsessionid!=''"><xsl:text>url+=';jsessionid=</xsl:text><xsl:value-of select="/maske/@jsessionid"/><xsl:text>';
|
||
|
</xsl:text></xsl:if>
|
||
|
<xsl:text>url+="?tid="+getTid();</xsl:text>
|
||
|
<xsl:if test="/ergebnisse/@MandantenID!='default'">
|
||
|
<xsl:text><![CDATA[url+="&MandantenID=]]></xsl:text><xsl:value-of select="/ergebnisse/@MandantenID"/><xsl:text>";</xsl:text>
|
||
|
</xsl:if>
|
||
|
var merkmale2=merkmale.replace(/n:'/g,'n:"');
|
||
|
var merkmale3=merkmale2.replace(/',k:'/g,'",k:"');
|
||
|
var merkmale4=merkmale3.replace(/'}/g,'"}');
|
||
|
var merkmale5=merkmale4.replace(/',sichtparam:'/g,'",sichtparam:"');
|
||
|
var merkmale6=merkmale5.replace(/',standparam:'/g,'",standparam:"');
|
||
|
var m=purgeval(merkmale6);
|
||
|
<![CDATA[
|
||
|
for (i=0;i<m.length;i++)
|
||
|
{
|
||
|
url+="&"+getEncoded(m[i].n)+"="+getEncoded(m[i].k);
|
||
|
if (m[i].sichtparam) url+="&"+getEncoded(m[i].n)+"-Sicht="+getEncoded(m[i].sichtparam);
|
||
|
if (m[i].standparam) url+="&"+getEncoded(m[i].n)+"-Stand="+m[i].standparam;
|
||
|
}
|
||
|
]]>
|
||
|
<!--falls ein Feld nicht als Merkmal belegt ist und es für ein Feld auf der Maske eine Auswahl gibt, diese übernehmen-->
|
||
|
<![CDATA[
|
||
|
for(var i1=1;i1<= felder.length-1; i1++)
|
||
|
{
|
||
|
var merkmalvorhanden=false;
|
||
|
for (i=0;i<m.length;i++)
|
||
|
{
|
||
|
if (getEncoded(m[i].n)==getEncoded(felder[i1]["htmlname"])) merkmalvorhanden=true;
|
||
|
}
|
||
|
if (!merkmalvorhanden)
|
||
|
{
|
||
|
var val=felder[i1]["value"];
|
||
|
url+="&"+getEncoded(felder[i1]["htmlname"])+"="+getEncoded(val);
|
||
|
}
|
||
|
}
|
||
|
]]>
|
||
|
<xsl:if test="/ergebnisse/@isMakro!='true'">
|
||
|
<xsl:if test="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/@colset!=''">
|
||
|
<xsl:text><![CDATA[url+="&colset=]]></xsl:text><xsl:value-of select="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/@colset"/><xsl:text>";
|
||
|
</xsl:text>
|
||
|
</xsl:if>
|
||
|
<xsl:if test="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/@colsort!=''">
|
||
|
<xsl:text><![CDATA[url+="&colsort=]]></xsl:text><xsl:value-of select="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/@colsort"/><xsl:text>";
|
||
|
</xsl:text>
|
||
|
</xsl:if>
|
||
|
</xsl:if>
|
||
|
//dojo.debug(url);
|
||
|
document.getElementById('progressbar').style.display="";
|
||
|
location.href=url;
|
||
|
}
|
||
|
<!-- für Zurück-Button bei normalen Abfragen und Lesezeichen
|
||
|
-->
|
||
|
|
||
|
function getParams(method) <!--direkt für Zurückbutton, ohne Speicherung als Bookmarklet-->
|
||
|
{
|
||
|
|
||
|
params="";
|
||
|
//alert("getparams - method"+method);
|
||
|
if (method!='direkt') params+="p=[";
|
||
|
|
||
|
<xsl:for-each select="/ergebnisse/ergebnis/felder/feld">
|
||
|
<xsl:if test="value!='' and value!='null'"> <!-- bei Duisburger Sichten vorgekommen-->
|
||
|
if (method!='direkt')
|
||
|
<xsl:text>params+="{\"n\":\"</xsl:text><xsl:value-of select="@varname"/><xsl:text>\",\"k\":\"</xsl:text>
|
||
|
<xsl:value-of select="value"/><xsl:text>\"},";
|
||
|
</xsl:text>
|
||
|
else
|
||
|
<xsl:text><![CDATA[params+="&"+getEncoded("]]></xsl:text><xsl:value-of select="@varname"/><xsl:text>")+"="+getEncoded("</xsl:text><xsl:value-of select="value"/><xsl:text>");
|
||
|
</xsl:text>
|
||
|
|
||
|
|
||
|
|
||
|
<!-- Probleme im IE wenn kleiner als, Prozent oder sowas vorkommt
|
||
|
title+=" </xsl:text>
|
||
|
<xsl:choose> <xsl:when test="caption_short!= '' and caption_short != 'null'"><![CDATA[]]><xsl:value-of select="caption_short" /><![CDATA[]]>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise> <xsl:value-of select="@varname" /> </xsl:otherwise> </xsl:choose><xsl:text>: </xsl:text><xsl:value-of select="value"/><xsl:text>";
|
||
|
</xsl:text>
|
||
|
-->
|
||
|
</xsl:if>
|
||
|
<!-- MB Stand und Sicht in Lesezeichen -->
|
||
|
<xsl:if test="@stand!=''">
|
||
|
<xsl:text>var stand="</xsl:text><xsl:value-of select="@stand"/><xsl:text>";
|
||
|
</xsl:text>
|
||
|
|
||
|
if (<![CDATA[stand&&isDate(stand)&&!isToday(stand)]]>) <!-- wenn Stand today ist, braucht er nicht in bookmarklet noch in zurückbutton-->
|
||
|
{
|
||
|
if (method!='direkt')
|
||
|
<xsl:text>params+="{\"n\":\"</xsl:text><xsl:value-of select="@varname"/><xsl:text>-Stand\",\"k\":\"</xsl:text><xsl:value-of select="@stand"/><xsl:text>\"},";
|
||
|
</xsl:text>
|
||
|
else
|
||
|
<xsl:text><![CDATA[params+="&"+getEncoded("]]></xsl:text><xsl:value-of select="@varname"/><xsl:text>")+"-Stand=</xsl:text><xsl:value-of select="@stand"/><xsl:text>";
|
||
|
</xsl:text>
|
||
|
}
|
||
|
</xsl:if>
|
||
|
<xsl:if test="sicht/@name_intern!=''">
|
||
|
if (method!='direkt')
|
||
|
<xsl:text>params+="{\"n\":\"</xsl:text><xsl:value-of select="@varname"/><xsl:text>-Sicht\",\"k\":\"</xsl:text><xsl:value-of select="sicht/@name_intern"/><xsl:text>\"},";
|
||
|
</xsl:text>
|
||
|
else
|
||
|
<xsl:text><![CDATA[params+="&"+getEncoded("]]></xsl:text><xsl:value-of select="@varname"/><xsl:text>")+"-Sicht="+getEncoded("</xsl:text><xsl:value-of select="sicht/@name_intern"/><xsl:text>");
|
||
|
</xsl:text>
|
||
|
</xsl:if>
|
||
|
</xsl:for-each>
|
||
|
|
||
|
if (method!='direkt') params=params.substring(0,params.length-1)+"]";//letztes Komma überschreiben
|
||
|
//alert(params);
|
||
|
|
||
|
return params;
|
||
|
}
|
||
|
|
||
|
<!-- Tabelle_esezeichen erstellen - bei Makros ist dojo zu aufwändig-->
|
||
|
function lesezeichen_erstellen()
|
||
|
{
|
||
|
params=getParams();
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="/ergebnisse/@isMakro='true'">
|
||
|
title='Tab <xsl:value-of select="/ergebnisse/makro/name" />';
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
title='Tab <xsl:value-of select="/ergebnisse/ergebnis/maskenname"/>';
|
||
|
<xsl:if test="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/@colset!=''">
|
||
|
<xsl:text><![CDATA[params+=";p[p.length]={\"n\":\"colset\",\"k\":\"]]></xsl:text><xsl:value-of select="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/@colset"/><xsl:text>\"}";
|
||
|
</xsl:text>
|
||
|
</xsl:if>
|
||
|
<xsl:if test="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/@colsort!=''">
|
||
|
<xsl:text><![CDATA[params+=";p[p.length]={\"n\":\"colsort\",\"k\":\"]]></xsl:text><xsl:value-of select="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/@colsort"/><xsl:text>\"}";
|
||
|
</xsl:text>
|
||
|
</xsl:if>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
//dojo.debug(params);
|
||
|
|
||
|
<xsl:text>lesezeichen('/superx/servlet/SuperXmlTabelle',getTid(),'</xsl:text><xsl:value-of select="/ergebnisse/@MandantenID"/><xsl:text>',params,title);</xsl:text>
|
||
|
dojo.widget.byId("lesezeichendlg").show();
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
<!-- end lesezeichen -->
|
||
|
</xsl:if>
|
||
|
<!-- end normale Abfragen - nicht makros-->
|
||
|
</xsl:template>
|
||
|
<!-- end javascript-->
|
||
|
|
||
|
<!-- start tablecenter-->
|
||
|
|
||
|
<xsl:template name="tableCenter">
|
||
|
<form name="Weiterverarbeitung" method="post" target="_self" charset="ISO-8859-1"><xsl:attribute name="action"><xsl:value-of select="HtmlUtils:encodeURL('SuperXmlTabelle',/ergebnisse/@jsessionid)" /></xsl:attribute>
|
||
|
<!-- start Kopf-->
|
||
|
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_inform'"></xsl:with-param></xsl:call-template>
|
||
|
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_inform'"></xsl:with-param></xsl:call-template>
|
||
|
|
||
|
<input type="hidden" name="tid">
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="/ergebnisse/@isMakro='true'">
|
||
|
<xsl:attribute name="value"><xsl:value-of select="/ergebnisse/makro/@id" /></xsl:attribute>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:attribute name="value"><xsl:value-of select="/ergebnisse/ergebnis/maskenname/@id" /></xsl:attribute>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
</input>
|
||
|
<input type="hidden" name="UserID"><xsl:attribute name="value"><xsl:value-of select="/ergebnisse/userID" /></xsl:attribute></input>
|
||
|
<input type="hidden" name="reuseresult" value="true"/> <!-- gecachte Ergebnis benutzen-->
|
||
|
<input type="hidden" name="maxoffset" value=""/> <!--im Normalfall wird Servleteinstellung genutzt - nur Druckversion übergibt Wert-->
|
||
|
<input type="hidden" name="stylesheet" value="" />
|
||
|
<input type="hidden" name="contenttype" value="" />
|
||
|
<!-- MB 5/2011 fuer Export nur sichtbarer Tabellenzeilen nach Excel/PDF -->
|
||
|
<input type="hidden" name="irowno" value="" />
|
||
|
<xsl:for-each select="/ergebnisse/ergebnis/felder/feld">
|
||
|
<input type="hidden">
|
||
|
<xsl:attribute name="name"><xsl:value-of select="@varname" /></xsl:attribute>
|
||
|
<xsl:attribute name="value"><xsl:value-of select="value" /></xsl:attribute>
|
||
|
</input>
|
||
|
</xsl:for-each>
|
||
|
|
||
|
<xsl:call-template name="tablePrintsaveexport"/>
|
||
|
|
||
|
<xsl:call-template name="tablepretitle"/> <!--defined in pageComponents-->
|
||
|
|
||
|
<xsl:if test="/ergebnisse/@isMakro='true'">
|
||
|
<h1><xsl:value-of select="/ergebnisse/makro/name" /></h1>
|
||
|
</xsl:if>
|
||
|
<p></p>
|
||
|
|
||
|
<!-- end Kopf-->
|
||
|
<!-- start tabelle-->
|
||
|
<xsl:for-each select="ergebnisse/ergebnis/ergebniselement">
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="@typ='image'">
|
||
|
<img><xsl:attribute name="src"><xsl:value-of select="@url" /></xsl:attribute></img><hr/>
|
||
|
<xsl:text>
|
||
|
</xsl:text>
|
||
|
</xsl:when>
|
||
|
<xsl:when test="@typ='tabelle'">
|
||
|
<xsl:call-template name="tableSingletable"/>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:text> Nicht unterstützter Ergebnistyp </xsl:text><xsl:value-of select="@type" />
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
<!-- end tabelle-->
|
||
|
<!-- start fuß-->
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="/ergebnisse/@isMakro!='true' and /ergebnisse/ergebnis/ergebniselement/sqlerg/@istreetable!='true'">
|
||
|
<xsl:call-template name="navigationsfuss" />
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise> <!-- input für offset ist wichtig für Exporte, normalerweise im Navigationsfuß definiert -->
|
||
|
<input type="hidden" name="offset">
|
||
|
<xsl:attribute name="value"><xsl:value-of select="sqlerg/@offset" /></xsl:attribute>
|
||
|
</input>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_pre_explanation'"></xsl:with-param></xsl:call-template>
|
||
|
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_pre_explanation'"></xsl:with-param></xsl:call-template>
|
||
|
|
||
|
<xsl:if test="count(sqlerg/headers/header/caption_long) > 0"><xsl:call-template name="explanation" /></xsl:if>
|
||
|
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_post_explanation'"></xsl:with-param></xsl:call-template>
|
||
|
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_post_explanation'"></xsl:with-param></xsl:call-template>
|
||
|
|
||
|
</xsl:for-each>
|
||
|
</form>
|
||
|
<!-- end fuß-->
|
||
|
</xsl:template>
|
||
|
<!-- end tablecenter-->
|
||
|
<!-- start printsaveExport-->
|
||
|
<!-- printsave/export in pageComponents definiert - kann also überlagert werden-->
|
||
|
<xsl:template name="tablePrintsaveexport">
|
||
|
<table class="dontprint" border="0"><tr><td align="left">
|
||
|
<xsl:call-template name="printsaveButtons" />
|
||
|
</td>
|
||
|
<td align="right"><xsl:call-template name="exportButtons" />
|
||
|
</td>
|
||
|
</tr></table>
|
||
|
</xsl:template>
|
||
|
<!-- end printsave -->
|
||
|
|
||
|
<!-- start singleTable-->
|
||
|
<xsl:template name="tableSingletable">
|
||
|
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_pre_title'"></xsl:with-param></xsl:call-template>
|
||
|
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_pre_title'"></xsl:with-param></xsl:call-template>
|
||
|
|
||
|
|
||
|
|
||
|
<!-- neben dem Titel der Abfrage/Maske erfolgt die Anzeige wesentlicher Eckdaten -->
|
||
|
<!-- todo: Umlautproblematik lösen -->
|
||
|
|
||
|
<table cellpadding="5" cellspacing="5" border="0">
|
||
|
<tr><td><img src="../xml/bil/images/logo.jpg" alt="BI-Lehre" /></td><td>
|
||
|
<p class="maskentitel"><xsl:value-of select="../maskenname" /> <xsl:if test="/ergebnisse/ergebnis/felder/feld[@varname='Semester']/value_caption != ''"> <xsl:value-of select="/ergebnisse/ergebnis/felder/feld[@varname='Semester']/value_caption" /></xsl:if></p> <!-- hier dyn. Gruppe etc. -->
|
||
|
<span class="feldwert">Köpfe oder Fälle ?: </span><xsl:value-of select="/ergebnisse/ergebnis/felder/feld[@varname='Koepfe oder Faelle']/value_caption" />
|
||
|
<br /><span class="feldwert">ab Semester: </span><xsl:value-of select="/ergebnisse/ergebnis/felder/feld[@varname='ab Semester']/value_caption" />
|
||
|
<xsl:if test="/ergebnisse/ergebnis/felder/feld[@varname='bis Semester']/value_caption != ''"><br /><span class="feldwert">bis Semester: </span><xsl:value-of select="/ergebnisse/ergebnis/felder/feld[@varname='bis Semester']/value_caption" /></xsl:if>
|
||
|
<br /><span class="feldwert">Fächer: </span><xsl:value-of select="/ergebnisse/ergebnis/felder/feld[@varname='Faecher']/value_caption" /> (<xsl:value-of select="/ergebnisse/ergebnis/felder/feld[@varname='Faecher']/value" />)
|
||
|
<br /><span class="feldwert">Abschluss: </span><xsl:value-of select="/ergebnisse/ergebnis/felder/feld[@varname='Abschluss']/value_caption" />
|
||
|
<br /><span class="feldwert">Fachkennzeichen: </span><xsl:value-of select="/ergebnisse/ergebnis/felder/feld[@varname='Fachkennzeichen']/value_caption" />
|
||
|
<br />Stand: <xsl:value-of select="../stand" />
|
||
|
|
||
|
|
||
|
</td></tr></table>
|
||
|
|
||
|
|
||
|
<xsl:call-template name="pccustomize"><xsl:with-param name="position" select="'table_post_title'"></xsl:with-param></xsl:call-template>
|
||
|
<xsl:call-template name="tablecustomize"><xsl:with-param name="position" select="'table_post_title'"></xsl:with-param></xsl:call-template>
|
||
|
|
||
|
<!-- Navigation oben -->
|
||
|
<!-- wird nur bei mehr als 29 Ergebniszeilen eingeblendet -->
|
||
|
<xsl:if test="/ergebnisse/@isMakro!='true' and /ergebnisse/ergebnis/ergebniselement/sqlerg/@istreetable!='true' and /ergebnisse/ergebnis/ergebniselement/sqlerg/@max > 29">
|
||
|
<xsl:call-template name="navigationsmenue" />
|
||
|
</xsl:if>
|
||
|
|
||
|
<table id="table1" border="0" cellpadding="0" cellspacing="0" class="ergtabelle">
|
||
|
<thead>
|
||
|
<xsl:call-template name="tableheader"/>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<xsl:call-template name="tablebody"/>
|
||
|
</tbody>
|
||
|
</table><hr />
|
||
|
|
||
|
|
||
|
</xsl:template>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<xsl:template name="tableheader">
|
||
|
|
||
|
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="/ergebnisse/ergebnis/ergebniselement/sqlerg/headers/@hasAggregationHeaders='true'">
|
||
|
<xsl:for-each select="sqlerg/aggregationHeaders/tr">
|
||
|
<tr>
|
||
|
<!--auch bei aggregierten Headers Spalten die mit hidden_starten nicht anzeigen-->
|
||
|
<xsl:for-each select="th [not (starts-with(@f_name,'hidden')) and @isHidden!='true']">
|
||
|
|
||
|
<th class="header">
|
||
|
<xsl:if test="@colspan!=''"><xsl:attribute name="colspan"><xsl:value-of select="@colspan"/></xsl:attribute></xsl:if>
|
||
|
<xsl:if test="@rowspan!=''"><xsl:attribute name="rowspan"><xsl:value-of select="@rowspan"/></xsl:attribute></xsl:if>
|
||
|
<xsl:attribute name="scope">
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="@colspan!='' and @colspan!='1'"><xsl:text>colgroup</xsl:text></xsl:when>
|
||
|
<xsl:otherwise><xsl:text>col</xsl:text></xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
</xsl:attribute>
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="@isopen='true'">
|
||
|
<a class='bildnavi' >
|
||
|
<xsl:attribute name="href"><xsl:text>javascript:setHeaderExpanded('</xsl:text>
|
||
|
<xsl:value-of select="/ergebnisse/@jsessionid"/><xsl:text>',</xsl:text><xsl:value-of select="/ergebnisse/ergebnis/maskenname/@id" />
|
||
|
<xsl:text>,</xsl:text><xsl:value-of select="@id"/><xsl:text>,false);</xsl:text></xsl:attribute>
|
||
|
<!-- <img border='0' src='/superx/xml/bil/images/folder_bil_open.png'/> -->
|
||
|
 
|
||
|
<xsl:call-template name="removeBackslashN" >
|
||
|
<xsl:with-param name="derwert"><xsl:value-of select="." /></xsl:with-param>
|
||
|
<xsl:with-param name="format"><xsl:value-of select="'html'" /></xsl:with-param>
|
||
|
</xsl:call-template>
|
||
|
</a>
|
||
|
</xsl:when>
|
||
|
<xsl:when test="@isopen='false'">
|
||
|
<!-- <a class='bildnavi'>
|
||
|
<xsl:attribute name="href"><xsl:text>javascript:setHeaderExpanded('</xsl:text>
|
||
|
<xsl:value-of select="/ergebnisse/@jsessionid"/><xsl:text>',</xsl:text><xsl:value-of select="/ergebnisse/ergebnis/maskenname/@id" />
|
||
|
<xsl:text>,</xsl:text><xsl:value-of select="@id"/><xsl:text>,true);</xsl:text></xsl:attribute>
|
||
|
<img border='0' src='/superx/xml/bil/images/folder_bil.png'/> 
|
||
|
<xsl:call-template name="removeBackslashN" >
|
||
|
<xsl:with-param name="derwert"><xsl:value-of select="." /></xsl:with-param>
|
||
|
<xsl:with-param name="format"><xsl:value-of select="'html'" /></xsl:with-param>
|
||
|
</xsl:call-template>
|
||
|
</a> -->  
|
||
|
</xsl:when>
|
||
|
|
||
|
<xsl:otherwise>
|
||
|
<xsl:call-template name="removeBackslashN" >
|
||
|
<xsl:with-param name="derwert"><xsl:value-of select="." /></xsl:with-param>
|
||
|
<!--<xsl:with-param name="derwert"><xsl:value-of select="@f_name" /></xsl:with-param>-->
|
||
|
<xsl:with-param name="format"><xsl:value-of select="'html'" /></xsl:with-param>
|
||
|
</xsl:call-template>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
</th>
|
||
|
|
||
|
</xsl:for-each>
|
||
|
</tr>
|
||
|
</xsl:for-each>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<!-- alt Normale headers -->
|
||
|
<xsl:variable name="headers_str">
|
||
|
<!-- BM: Spalte Ebene ausblenden -->
|
||
|
<!-- <xsl:for-each select="sqlerg/headers/header[not (starts-with(f_name,'hidden')) and not (f_name= 'ebene')]"> -->
|
||
|
<!-- BMU <xsl:for-each select="sqlerg/headers/header[not (starts-with(f_name,'hidden')) and not (starts-with(f_name,'ebene'))]"> -->
|
||
|
<xsl:for-each select="sqlerg/headers/header[not (starts-with(f_name,'hidden'))]">
|
||
|
<!-- BMU -->
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="f_name='nummer'">
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:value-of select="concat('^',wert)" />
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
</xsl:for-each>
|
||
|
</xsl:variable>
|
||
|
<xsl:value-of select="HtmlUtils:headers2html($headers_str)" disable-output-escaping="yes"/>
|
||
|
|
||
|
<!--<xsl:call-template name="removeBackslashN" >
|
||
|
<xsl:with-param name="derwert"><xsl:value-of select="." /></xsl:with-param>
|
||
|
<xsl:with-param name="format"><xsl:value-of select="'html'" /></xsl:with-param>
|
||
|
</xsl:call-template>
|
||
|
<tr>
|
||
|
<xsl:for-each select="sqlerg/headers/header">
|
||
|
<th class="header" scope="col">
|
||
|
<xsl:call-template name="removeBackslashN" >
|
||
|
<xsl:with-param name="derwert"><xsl:value-of select="wert" /></xsl:with-param>
|
||
|
<xsl:with-param name="format"><xsl:value-of select="'html'" /></xsl:with-param>
|
||
|
</xsl:call-template>
|
||
|
</th>
|
||
|
</xsl:for-each>
|
||
|
</tr>-->
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
</xsl:template>
|
||
|
|
||
|
<xsl:template name="tablebody">
|
||
|
|
||
|
|
||
|
|
||
|
<xsl:variable name="erglevelmax"><xsl:text>5</xsl:text>
|
||
|
<!-- todo: auch bei treetable variable Zeilenebenen
|
||
|
<xsl:if test="count(sqlerg/row/col [ f_name = 'ebene' ]) > 0">
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="count(sqlerg/row/col [ f_name = 'ebene' ] /wert [ . = '4']) > 0">
|
||
|
<xsl:text>4</xsl:text>
|
||
|
</xsl:when>
|
||
|
<xsl:when test="count(sqlerg/row/col [ f_name = 'ebene' ] /wert [ . = '3']) > 0">
|
||
|
<xsl:text>3</xsl:text>
|
||
|
</xsl:when>
|
||
|
<xsl:when test="count(sqlerg/row/col [ f_name = 'ebene' ] /wert [ . = '2']) > 0">
|
||
|
<xsl:text>2</xsl:text>
|
||
|
</xsl:when>
|
||
|
<xsl:when test="count(sqlerg/row/col [ f_name = 'ebene' ] /wert [ . = '1']) > 0">
|
||
|
<xsl:text>1</xsl:text>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:text>5</xsl:text>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
</xsl:if>-->
|
||
|
</xsl:variable>
|
||
|
|
||
|
|
||
|
|
||
|
<xsl:for-each select="sqlerg/row">
|
||
|
<!-- MB ausgelagert nach resultset.xsl-->
|
||
|
<xsl:call-template name="resultrow">
|
||
|
|
||
|
<xsl:with-param name="row" select="."/>
|
||
|
<xsl:with-param name="erglevelmax" select="$erglevelmax"/>
|
||
|
<!-- Ausschluss der Spalte 'ebene'
|
||
|
<xsl:with-param name="excludecols" select="col[f_name = 'ebene' ]/f_name"/>
|
||
|
-->
|
||
|
</xsl:call-template>
|
||
|
</xsl:for-each>
|
||
|
|
||
|
</xsl:template>
|
||
|
<!-- end singleTable-->
|
||
|
<!-- start DOJO Dialoge-->
|
||
|
<xsl:template name="tableDialogs">
|
||
|
<xsl:if test="/ergebnisse/@isMakro!='true'">
|
||
|
<!-- start configdlg-->
|
||
|
<div dojoType="dialog" id="configdlg" bgColor="darkgray" bgOpacity="0.7" toggle="fade" toggleDuration="250" closeNode="ok" style="display:none">
|
||
|
|
||
|
<form name="configform" onsubmit="return false;">
|
||
|
|
||
|
<table style="font-size:10pt">
|
||
|
<tr><td align="center"><h3>Spaltenreihenfolge</h3></td><td align="center" valign="top"><h3>Sortierung der Ergebnisse</h3></td></tr>
|
||
|
<tr><td align="left">
|
||
|
<div style="height:250px;width:300px;overflow:scroll"><!-- IE needs non-dojo div vor scrolling-->
|
||
|
<ul id="spaltenliste">
|
||
|
<li>Keine Spalteninformation gefunden</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<!--
|
||
|
<p align="center"><b>MÜLLEIMER</b></p>
|
||
|
<div style="height:80px;width:350px;overflow:scroll">-->
|
||
|
<!-- IE needs non-dojo div vor scrolling-->
|
||
|
<!--
|
||
|
<ul id="spaltentrash"><li>nicht dargestellte Spalten</li></ul>
|
||
|
</div>
|
||
|
-->
|
||
|
<label> <![CDATA[Sie können einen Eintrag anklicken und ]]><br/>
|
||
|
<![CDATA[ bei gedrückter li. Maustaste verschieben]]> <br/>
|
||
|
<![CDATA[die schwarze Hilfslinie zeigt das Ziel an.]]><br/>
|
||
|
<![CDATA[ Entfernen Sie das Häkchen bei "anzeigen",]]><br/>
|
||
|
<![CDATA[ um Spalten auszublenden]]><br/>
|
||
|
<!-- <![CDATA[ in den Mülleimer ziehen.]]> -->
|
||
|
</label>
|
||
|
</td>
|
||
|
<td>
|
||
|
<p>Sortieren nach Spalte</p>
|
||
|
<div id="sortierspalten">
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<p align="center">
|
||
|
<input type="button" id="ok" class="clsButtonStyle" onclick="tableReload('','');" value="OK"></input> 
|
||
|
|
||
|
<input type="button" id="restore" class="clsButtonStyle" onclick="tableReload('restore','restore');" value="Alles zurücksetzen"></input> 
|
||
|
<input type="button" id="abbrechen" class="clsButtonStyle" onclick="configdlg.hide()" value="Abbrechen"></input> 
|
||
|
</p>
|
||
|
|
||
|
</form>
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<!-- end configdlg -->
|
||
|
<!-- start export dlg dojoType="dialog" -->
|
||
|
<div dojoType="dialog" id="ttexdlg" bgColor="darkgray" bgOpacity="0.7" toggle="fade" toggleDuration="250" closeNode="hidettexdlg" style="display:none">
|
||
|
<form name="treetableexportform" onsubmit="return false;">
|
||
|
<p align="center"><b>EXPORT</b></p>
|
||
|
<p align="center">Welche Daten sollen exportiert werden?<br/>
|
||
|
<input type="button" id="treesomedata" class="clsButtonStyle" onclick="exportandhidedlg('some rows');startExport" value="Nur die sichtbaren Tabellenzeilen"></input> 
|
||
|
<input type="button" id="treealldata" class="clsButtonStyle" onclick="exportandhidedlg('all rows')" value="Alle Daten"></input> 
|
||
|
<br/><br/>
|
||
|
<input id="hidettexdlg" class="clsButtonStyle" type="button" value="Abbrechen"></input>
|
||
|
</p>
|
||
|
</form>
|
||
|
</div>
|
||
|
<!-- end export dlg -->
|
||
|
</xsl:if>
|
||
|
|
||
|
<!-- start lesezeichen -->
|
||
|
<div dojoType="dialog" id="lesezeichendlg" bgColor="darkgray" bgOpacity="0.7" toggle="fade" toggleDuration="250" closeNode="hidelesezeichen" style="display:none">
|
||
|
<form name="lesezeichenform" onsubmit="return false;">
|
||
|
<h1 align="center">Lesezeichen erstellen</h1>
|
||
|
<div id="lesezeichenlinkdiv">
|
||
|
<p align="center"> Hier Ihr Lesezeichen-Link:</p>
|
||
|
<h3 align="center"><a id="lesezeichenlink"></a></h3>
|
||
|
<p align="center" id="lesezeicheninfoIE"> Klicken Sie mit der <b><font color="red">rechten Maustaste</font></b> auf den obigen Link und wählen Sie <br/><br/><b>"Zu Favoriten hinzufügen"</b><br/>
|
||
|
<br/>
|
||
|
Es folgt ein Sicherheitshinweis <br/>"Sie fügen einen Favoriten hinzu, der möglicherweise nicht sicher ist"<br/>
|
||
|
Den können Sie bestätigen, da SuperX-Lesezeichen nur harmloses JavaScript verwenden.<br/><br/>
|
||
|
Hinweis: Damit SuperX-Lesezeichen im IE7 aufgerufen werden können, muss vorher eine beliebige andere Seite angezeigt werden.</p>
|
||
|
<p align="center" id="lesezeicheninfoFF"> Klicken Sie mit der <b><font color="red">rechten Maustaste</font></b> auf den obigen Link und wählen Sie <br/><b>"Lesezeichen für diesen Link hinzufügen"</b>
|
||
|
</p>
|
||
|
<br/><br/><br/><br/><br/><br/><br/>
|
||
|
<p align="center"><input id="hidelesezeichen" class="clsButtonStyle" type="button" value="Dialog schließen"></input></p>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<!-- end lesezeichen-->
|
||
|
</xsl:template>
|
||
|
<!-- end DOjo dialoge-->
|
||
|
<!-- start obsolet -->
|
||
|
<xsl:template name="tabwert">
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="wert/@type='numeric'"><xsl:value-of select="wert" />
|
||
|
<!--<xsl:value-of select="format-number(wert,'#.###.##0,00','de_DE')" />-->
|
||
|
</xsl:when>
|
||
|
|
||
|
<xsl:otherwise><xsl:value-of select="wert" /></xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
</xsl:template>
|
||
|
<xsl:template name="create_url">
|
||
|
<xsl:param name="stylesheet"/>
|
||
|
<xsl:text>../servlet/SuperXmlTabelle?</xsl:text>
|
||
|
<xsl:text>tid=</xsl:text><xsl:value-of select="/ergebnisse/ergebnis/maskenname/@id" />
|
||
|
<xsl:if test="$stylesheet!=''"><xsl:text>&stylesheet=</xsl:text><xsl:value-of select="$stylesheet" />
|
||
|
</xsl:if>
|
||
|
|
||
|
<xsl:for-each select="/ergebnis/tabelle/felder/feld">
|
||
|
<xsl:if test="wert/value !=''">
|
||
|
<xsl:text>&</xsl:text><xsl:value-of select="wert/@varname" /><xsl:text>=</xsl:text><xsl:value-of select="wert/value" />
|
||
|
</xsl:if>
|
||
|
</xsl:for-each>
|
||
|
</xsl:template>
|
||
|
<!-- end -->
|
||
|
<!-- start customize standard ist leer, kann von Spezialstylesheets überlagert werden -->
|
||
|
<xsl:template name="tablecustomize">
|
||
|
<xsl:param name="position"/>
|
||
|
</xsl:template>
|
||
|
|
||
|
<!-- end customize-->
|
||
|
</xsl:stylesheet>
|