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.
311 lines
10 KiB
311 lines
10 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">
|
||
|
<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="resultset_html.xsl" />
|
||
|
<xsl:import href="interLinks_html.xsl" />
|
||
|
<xsl:decimal-format name="German" grouping-separator="." NaN="" zero-digit ="0" decimal-separator="," />
|
||
|
|
||
|
<xml:output method="html" />
|
||
|
<xsl:template match="/">
|
||
|
|
||
|
<html>
|
||
|
<xsl:call-template name="head" >
|
||
|
<xsl:with-param name="title" select="concat('Ergebnis ',/ergebnisse/ergebnis/maskenname)" />
|
||
|
</xsl:call-template>
|
||
|
<body onload="isReady=true">
|
||
|
<xsl:call-template name="topbar_table" />
|
||
|
<form name="Weiterverarbeitung" method="post" target="_self"><xsl:attribute name="action"><xsl:value-of select="'SuperXmlTabelle'" /></xsl:attribute>
|
||
|
<table border="0"><tr><td align="left"><input type="hidden" name="UserID">
|
||
|
|
||
|
<xsl:attribute name="value"><xsl:value-of select="/ergebnisse/userID" /></xsl:attribute>
|
||
|
</input>
|
||
|
|
||
|
<input type="hidden" name="reuseresult" value="false"/> <!-- gecachte Ergebnis benutzen-->
|
||
|
<!--<input type="hidden" name="maxoffset" value=""/> im Normalfall wird Servleteinstellung genutzt - nur Druckversion übergibt Wert-->
|
||
|
<input type="hidden" name="stylesheet" value="tabelle_html_gang_bearb.xsl" />
|
||
|
<input type="hidden" name="contenttype" 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="printsaveButtons" />
|
||
|
</td>
|
||
|
<td align="right"><xsl:call-template name="exportButtons" />
|
||
|
</td></tr></table>
|
||
|
<xsl:choose>
|
||
|
<!--MB -->
|
||
|
<xsl:when test="/ergebnisse/makro/@id !=''">
|
||
|
<h1><xsl:value-of select="/ergebnisse/makro/name" /></h1>
|
||
|
<p><input type="hidden" name="tid">
|
||
|
<xsl:attribute name="value"><xsl:value-of select="/ergebnisse/makro/@id" /></xsl:attribute>
|
||
|
</input>
|
||
|
</p></xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<p><input type="hidden" name="tid">
|
||
|
<xsl:attribute name="value"><xsl:value-of select="/ergebnisse/ergebnis/maskenname/@id" /></xsl:attribute>
|
||
|
</input></p>
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
<!--<xsl:call-template name="legende" />-->
|
||
|
<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'">
|
||
|
|
||
|
<p class="maskentitel"><xsl:value-of select="../maskenname" /></p>
|
||
|
<!-- MB legende bei jeder Tabelle -->
|
||
|
<p class="legende">
|
||
|
<xsl:for-each select="../felder/feld">
|
||
|
<xsl:if test="value !='' and @varname != 'rs' and @varname != 'sort' and @varname != 'maxoffset'">
|
||
|
<!-- -->
|
||
|
|
||
|
<span class="feldname">
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="string-length(caption_short) > 0 and caption_short != 'null'" >
|
||
|
<xsl:value-of select="caption_short" />
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:value-of select="@varname" />
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose></span>: 
|
||
|
<xsl:if test="string-length(wert/caption) < 50">
|
||
|
<!-- MB 22.12.04 statt caption value_caption-->
|
||
|
<span class="feldwert"><xsl:value-of select="value_caption" /></span>
|
||
|
</xsl:if>
|
||
|
<!-- MB 22.12.04 statt caption value_caption-->
|
||
|
<xsl:if test="string-length(wert/caption) > 49">
|
||
|
<span class="feldwert"><xsl:value-of select="substring(value_caption,0,50)" />...</span>
|
||
|
</xsl:if>
|
||
|
;
|
||
|
</xsl:if>
|
||
|
|
||
|
</xsl:for-each>
|
||
|
|
||
|
Stand: <xsl:value-of select="../stand" /></p>
|
||
|
|
||
|
|
||
|
|
||
|
<table class="ergtabelle">
|
||
|
<tr>
|
||
|
<xsl:for-each select="sqlerg/headers/header ">
|
||
|
<!--[ @id > 0 ]-->
|
||
|
|
||
|
<th class="header" scope="col">
|
||
|
<!--max. 2 Umbrüche pro Zelle -->
|
||
|
|
||
|
|
||
|
<xsl:copy-of select="wert" />
|
||
|
|
||
|
</th>
|
||
|
|
||
|
</xsl:for-each>
|
||
|
<!--<td></td>-->
|
||
|
</tr>
|
||
|
<xsl:for-each select="sqlerg/row">
|
||
|
<tr>
|
||
|
<xsl:variable name="rownr"><xsl:value-of select="position()" /></xsl:variable>
|
||
|
|
||
|
<xsl:for-each select="col ">
|
||
|
<!--[ @id > 0 ]-->
|
||
|
<td class="ergfeld">
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="@id='0'">
|
||
|
<xsl:attribute name="class">themenspalte</xsl:attribute>
|
||
|
<input type="checkbox" name="{concat('b_',$rownr)}" onclick="me.checked=false" value="{wert}"/>
|
||
|
|
||
|
</xsl:when>
|
||
|
<!--<xsl:when test="@typ='1'">
|
||
|
<xsl:attribute name="class">string</xsl:attribute>
|
||
|
<xsl:value-of select="wert" />
|
||
|
</xsl:when>-->
|
||
|
<xsl:when test="@typ='2' or @typ='8' or @typ='3'"> <!-- DecimalFormat -->
|
||
|
<xsl:attribute name="class">decimal</xsl:attribute>
|
||
|
<!--<xsl:value-of select="wert" />-->
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="wert != ''">
|
||
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,00','German')" />
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:value-of select="' '" />
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
</xsl:when>
|
||
|
<xsl:when test="@typ='4'"> <!-- Integer -->
|
||
|
<xsl:attribute name="class">integer</xsl:attribute>
|
||
|
<!--<xsl:value-of select="wert" />-->
|
||
|
<xsl:choose>
|
||
|
<xsl:when test="wert != ''">
|
||
|
<xsl:value-of select="format-number(wert,'###.###.###.###.###','German')" />
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:value-of select="' '" />
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
</xsl:when>
|
||
|
<xsl:when test="f_name='nextmask'">
|
||
|
<xsl:variable name="derwert" select="wert"/>
|
||
|
<xsl:if test="(($derwert != 'null') and ($derwert != ''))">
|
||
|
<div align="center"><a title="Kopieren"><xsl:attribute name="href">
|
||
|
<xsl:value-of select="'SuperXmlMaske'" />
|
||
|
<xsl:text>?tid=</xsl:text><xsl:value-of select="$derwert" />
|
||
|
</xsl:attribute>
|
||
|
<img src="../applet/images/punkt.gif" border="0" alt="Kopieren" />
|
||
|
</a></div>
|
||
|
</xsl:if>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<!--Typ=1 ist string und wird defaultmäßig behandelt -->
|
||
|
<xsl:call-template name="field_type" />
|
||
|
<xsl:variable name="zs">
|
||
|
<xsl:call-template name="field_value">
|
||
|
</xsl:call-template>
|
||
|
</xsl:variable>
|
||
|
<xsl:variable name="zs3">
|
||
|
<xsl:call-template name="resultsetLink">
|
||
|
<xsl:with-param name="zs2" select="$zs" />
|
||
|
</xsl:call-template>
|
||
|
</xsl:variable>
|
||
|
<!--Ab hier können Benutzerspezifische Transformationen nach Feldnamen oder Typ beginnen
|
||
|
Bei leeren Zellen wird nbsp übergeben, weil
|
||
|
der IE die Zellen sonst ohne Rahmen darstellt.
|
||
|
Standardmmäßig wird der Feldinhalt nur noch kopiert.-->
|
||
|
|
||
|
<xsl:call-template name="get_val_or_nbsp">
|
||
|
<xsl:with-param name="zs4"><xsl:copy-of select="$zs3" /></xsl:with-param>
|
||
|
|
||
|
</xsl:call-template>
|
||
|
|
||
|
|
||
|
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
|
||
|
</td>
|
||
|
</xsl:for-each>
|
||
|
<!--<td></td>-->
|
||
|
</tr>
|
||
|
</xsl:for-each>
|
||
|
<tr><td align="right"><script language="Javascript" >
|
||
|
<xsl:text>
|
||
|
function select_all()
|
||
|
{
|
||
|
var j =document.forms[0].on_off.value;
|
||
|
|
||
|
for (var i=1; i < document.forms[0].elements.length;i++)
|
||
|
{
|
||
|
if(document.forms[0].elements[i].name.indexOf('b_') > -1)
|
||
|
if (j=='off')
|
||
|
document.forms[0].elements[i].checked=true;
|
||
|
if (j=='on')
|
||
|
document.forms[0].elements[i].checked=false;
|
||
|
|
||
|
}
|
||
|
if (j=='off')
|
||
|
document.forms[0].on_off.value='on';
|
||
|
else
|
||
|
document.forms[0].on_off.value='off';
|
||
|
|
||
|
}
|
||
|
function execute()
|
||
|
{
|
||
|
var zs="";
|
||
|
var zaehler=0;
|
||
|
for (var i=1; i < document.forms[0].elements.length;i++)
|
||
|
{
|
||
|
if(document.forms[0].elements[i].name.indexOf('b_') > -1)
|
||
|
if (document.forms[0].elements[i].checked==true)
|
||
|
{
|
||
|
zs += document.forms[0].elements[i].value+ ',';
|
||
|
zaehler++;
|
||
|
}
|
||
|
}
|
||
|
var aktion=document.forms[0].rs_aktion.options[document.forms[0].rs_aktion.selectedIndex].value;
|
||
|
var aktion_text=document.forms[0].rs_aktion.options[document.forms[0].rs_aktion.selectedIndex].text;
|
||
|
if( aktion != '' && zaehler > 0)
|
||
|
{
|
||
|
document.forms[0].elements['Anzahl'].value=zaehler;
|
||
|
document.forms[0].action='</xsl:text><xsl:value-of select="'SuperXmlMaske'" /><xsl:text>';
|
||
|
document.forms[0].Laufnummern.value=zs.substring(0,zs.length-1);
|
||
|
document.forms[0].target='_self'; document.forms[0].tid.value=aktion;document.forms[0].stylesheet.value=''; document.forms[0].submit();
|
||
|
|
||
|
}
|
||
|
}
|
||
|
</xsl:text>
|
||
|
</script>
|
||
|
<input type="hidden" name="Laufnummern" value=""/>
|
||
|
<input type="hidden" name="Anzahl" value=""/>
|
||
|
<input type="hidden" name="on_off" value="off"/>
|
||
|
<input type="button" class="clsButtonStyle" name="Aktion" value="*" title="Alle umschalten">
|
||
|
<xsl:attribute name="onClick"><xsl:text>select_all();</xsl:text></xsl:attribute></input> </td>
|
||
|
<td colspan="4">Aktion: <select name="rs_aktion"><option value="" selected="selected">--Bitte wählen Sie eine Aktion aus--</option>
|
||
|
<option value="25120">Löschen/Status ändern/abwickeln</option>
|
||
|
<option value="25140">Studiengang zuordnen</option>
|
||
|
<option value="25400">Kosten zuordnen</option>
|
||
|
</select>
|
||
|
</td>
|
||
|
<td colspan="6">
|
||
|
<input type="button" class="clsButtonStyle" name="doit" value="Ausführen">
|
||
|
<xsl:attribute name="onClick"><xsl:text>execute();</xsl:text></xsl:attribute></input>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</xsl:when>
|
||
|
<xsl:otherwise>
|
||
|
<xsl:text>
|
||
|
Nicht unterstützter Ergebnistyp </xsl:text><xsl:value-of select="@type" />
|
||
|
</xsl:otherwise>
|
||
|
</xsl:choose>
|
||
|
<xsl:call-template name="navigationsfuss" />
|
||
|
</xsl:for-each>
|
||
|
<!--<div id="inhalt" class="versteckt"><p><TEXTAREA NAME="content" ROWS="40" COLS="80" WRAP="off" READONLY="true">
|
||
|
<ergebnis><xsl:copy-of select="/ergebnis/*|@*|text()" /></ergebnis>
|
||
|
</TEXTAREA>
|
||
|
</p></div>
|
||
|
<script language="Javascript">
|
||
|
versteckeText("inhalt");
|
||
|
</script>--></form>
|
||
|
<xsl:call-template name="bottombar" />
|
||
|
</body>
|
||
|
</html>
|
||
|
</xsl:template>
|
||
|
<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>/superx/servlet/SuperXmlTabelle?</xsl:text>
|
||
|
<xsl:if test="$stylesheet!=''"><xsl:text>stylesheet=</xsl:text><xsl:value-of select="$stylesheet" /><xsl:text>&</xsl:text>
|
||
|
</xsl:if>
|
||
|
<xsl:text>UserID=</xsl:text><xsl:value-of select="/ergebnis/userID" /><xsl:text>&tid=</xsl:text><xsl:value-of select="/ergebnisse/ergebnis/maskenname/@id" />
|
||
|
<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>
|
||
|
</xsl:stylesheet>
|