|
|
<?xml version="1.0" encoding="ISO-8859-1" ?> |
|
|
<xsl:stylesheet version="1.0" |
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
|
<xsl:import href="interLinks_html.xsl" /> |
|
|
<xsl:import href="xsl_functions.xsl" /> |
|
|
<xsl:template name="legende"> |
|
|
<p class="legende"> |
|
|
<xsl:for-each select="../felder/feld"> |
|
|
<xsl:if test="(value !='' or sicht/@isFirstInGroup='false' or @isstandtoday='false') and @varname != 'sort' and @varname != 'maxoffset'"> |
|
|
|
|
|
<span class="feldname"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="string-length(caption_short) > 0 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></span>:  |
|
|
<xsl:if test="string-length(value_caption) < 50"> |
|
|
<span class="feldwert"><xsl:value-of select="value_caption" /><![CDATA[]]></span> |
|
|
</xsl:if> |
|
|
<xsl:if test="string-length(value_caption) > 49"> |
|
|
<span class="feldwert"><![CDATA[]]><xsl:value-of select="substring(value_caption,0,50)" /><![CDATA[]]>...</span> |
|
|
</xsl:if> |
|
|
<xsl:if test="sicht!=''"> |
|
|
<span><![CDATA[ (]]><xsl:value-of select="sicht" /> |
|
|
<xsl:if test="@stand!=''"><xsl:text> - Stand:</xsl:text><xsl:value-of select="@stand"/></xsl:if> |
|
|
<xsl:text><![CDATA[)]]> </xsl:text></span> |
|
|
|
|
|
</xsl:if> |
|
|
; |
|
|
</xsl:if> |
|
|
|
|
|
</xsl:for-each> |
|
|
User: <xsl:value-of select="/ergebnisse/user"/>  |
|
|
Stand: <xsl:value-of select="../stand" /></p> |
|
|
<xsl:if test="../hinweis != ''"> |
|
|
<!-- 11.3.09 MB --> |
|
|
<xsl:call-template name="newline_to_br"> |
|
|
<xsl:with-param name="string" select="../hinweis" /> |
|
|
</xsl:call-template> |
|
|
</xsl:if> |
|
|
|
|
|
</xsl:template> |
|
|
|
|
|
<!-- |
|
|
<xsl:template name="header"> |
|
|
<xsl:param name="derwert" /> |
|
|
<th class="header" scope="col"> |
|
|
<xsl:call-template name="removeBackslashN" > |
|
|
<xsl:with-param name="derwert"><xsl:value-of select="$derwert" /></xsl:with-param> |
|
|
<xsl:with-param name="format"><xsl:value-of select="'html'" /></xsl:with-param> |
|
|
</xsl:call-template> |
|
|
|
|
|
</th> |
|
|
</xsl:template> |
|
|
--> |
|
|
|
|
|
<xsl:template name="removeBackslashN"> |
|
|
<xsl:param name="derwert" /> |
|
|
<xsl:param name="format" select="'html'" /> |
|
|
|
|
|
<!--max. 2 Umbrüche pro Zelle --> |
|
|
<xsl:variable name="header1"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="(contains(string($derwert),'\n'))"> |
|
|
|
|
|
<xsl:value-of select="substring-before($derwert,'\n') "/> |
|
|
<xsl:call-template name="umbruch" > |
|
|
<xsl:with-param name="format"><xsl:value-of select="$format" /></xsl:with-param> |
|
|
</xsl:call-template> |
|
|
<xsl:value-of select="substring-after($derwert,'\n') "/> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="$derwert" /> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:variable> |
|
|
<xsl:variable name="header2"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="(contains(string($header1),'\n'))"> |
|
|
<xsl:value-of select="substring-before($header1,'\n') "/> |
|
|
<xsl:call-template name="umbruch" > |
|
|
<xsl:with-param name="format"><xsl:value-of select="$format" /></xsl:with-param> |
|
|
</xsl:call-template> |
|
|
<xsl:value-of select="substring-after($header1,'\n') "/> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="$header1" /> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:variable> |
|
|
<xsl:choose> |
|
|
<xsl:when test="(contains(string($header2),'\000'))"> |
|
|
<xsl:value-of select="substring-before($header2,'\000') "/> |
|
|
<xsl:call-template name="umbruch" > |
|
|
<xsl:with-param name="format"><xsl:value-of select="$format" /></xsl:with-param> |
|
|
</xsl:call-template> |
|
|
<xsl:value-of select="substring-after($header2,'\000') "/> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="$header2" /> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:template> |
|
|
<xsl:template name="umbruch"> |
|
|
<xsl:param name="format" select="'html'" /> |
|
|
<xsl:choose> |
|
|
<xsl:when test="$format='xslfo'"> |
|
|
<xsl:text> </xsl:text> |
|
|
</xsl:when> |
|
|
<xsl:when test="$format='html'" > |
|
|
<!-- klappt derzeit noch nicht:--> |
|
|
<br />  |
|
|
</xsl:when> |
|
|
<xsl:when test="$format='xls'"> |
|
|
<xsl:text> </xsl:text> |
|
|
</xsl:when> |
|
|
<xsl:otherwise > |
|
|
<xsl:text> </xsl:text> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:template> |
|
|
|
|
|
<xsl:template name="printheader"> |
|
|
<xsl:param name="derwert" /> |
|
|
<th class="printheader"> |
|
|
<!--max. 2 Umbrüche pro Zelle --> |
|
|
<xsl:variable name="header1"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="(contains(string($derwert),'\n'))"> |
|
|
<xsl:value-of select="substring-before($derwert,'\n') "/> |
|
|
<br /> |
|
|
<xsl:value-of select="substring-after($derwert,'\n') "/> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="$derwert" /> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:variable> |
|
|
<xsl:variable name="header2"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="(contains(string($header1),'\n'))"> |
|
|
<xsl:value-of select="substring-before($header1,'\n') "/> |
|
|
<br /> |
|
|
<xsl:value-of select="substring-after($header1,'\n') "/> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="$header1" /> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:variable> |
|
|
<xsl:choose> |
|
|
<xsl:when test="(contains(string($header2),'\000'))"> |
|
|
<xsl:value-of select="substring-before($header2,'\000') "/> |
|
|
<br /> |
|
|
<xsl:value-of select="substring-after($header2,'\000') "/> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="$header2" /> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
|
|
|
</th> |
|
|
</xsl:template> |
|
|
|
|
|
<xsl:template name="navigationsmenue"> |
|
|
<p class="dontprint"> |
|
|
|
|
|
<xsl:variable name="stylesheet"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="/ergebnisse/stylesheets/stylesheet/filename !='tabelle_html.xsl'"> |
|
|
<xsl:value-of select="/ergebnisse/stylesheets/stylesheet/filename" /> |
|
|
</xsl:when> |
|
|
<xsl:otherwise>tabelle_html.xsl</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:variable> |
|
|
|
|
|
<xsl:if test="(sqlerg/@offset > 0)"> |
|
|
<a title="Erste Seite" onMouseOver="window.status='Navigation starten';return true" onFocus="window.status='Navigation starten';return true" onMouseOut="window.status='Navigation starten';return true"> |
|
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='0';document.forms[0].stylesheet.value='<xsl:value-of select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
|
</xsl:attribute> |
|
|
<img src="../images/first.png" border="0" alt="Zur ersten Seite" /></a> |
|
|
<a title="Vorherige Seite" onMouseOver="window.status='Navigation starten';return true" onFocus="window.status='Navigation starten';return true" onMouseOut="window.status='Navigation starten';return true"> |
|
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of select="((sqlerg/@offset) - (sqlerg/@maxOffset))" />';document.forms[0].stylesheet.value='<xsl:value-of select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
|
</xsl:attribute> |
|
|
<img src="../images/prev.png" border="0" alt="Zur vorherigen Seite" /></a> |
|
|
</xsl:if> |
|
|
<xsl:call-template name="datensatzzaehler" /> |
|
|
<xsl:if test="(sqlerg/@offset + sqlerg/@maxOffset) < sqlerg/@max"> |
|
|
<a title="Nächste Seite" onMouseOver="window.status='Navigation starten';return true" onFocus="window.status='Navigation starten';return true" onMouseOut="window.status='Navigation starten';return true" > |
|
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of select="((sqlerg/@offset) + (sqlerg/@maxOffset))" />'; document.forms[0].stylesheet.value='<xsl:value-of select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
|
</xsl:attribute> |
|
|
<img src="../images/next.png" border="0" alt="Nächste Seite" /></a> |
|
|
<a title="Letzte Seite" onMouseOver="window.status='Navigation starten';return true" onFocus="window.status='Navigation starten';return true" onMouseOut="window.status='Navigation starten';return true"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="(sqlerg/@max) mod (sqlerg/@maxOffset) = 0"> |
|
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of select="sqlerg/@max - sqlerg/@maxOffset" />';document.forms[0].stylesheet.value='<xsl:value-of select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
|
</xsl:attribute> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:attribute name="href">javascript:document.forms[0].target='_self'; document.forms[0].offset.value='<xsl:value-of select="sqlerg/@max - ((sqlerg/@max) mod (sqlerg/@maxOffset))" />';document.forms[0].stylesheet.value='<xsl:value-of select="$stylesheet" />';document.forms[0].contenttype.value='text/html'; document.forms[0].submit(); |
|
|
</xsl:attribute> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
<img src="../images/last.png" border="0" alt="Letzte Seite" /> |
|
|
</a> |
|
|
</xsl:if> |
|
|
</p> |
|
|
</xsl:template> |
|
|
|
|
|
<xsl:template name="navigationsfuss"> |
|
|
<input type="hidden" name="offset"> |
|
|
<xsl:attribute name="value"><xsl:value-of select="sqlerg/@offset" /></xsl:attribute> |
|
|
</input> |
|
|
<p class="klein"><!--<xsl:value-of select="sqlerg/msg" /><br />--> |
|
|
<xsl:for-each select="felder/msgs/msg"> |
|
|
<xsl:value-of select="wert" /> |
|
|
<br /> |
|
|
</xsl:for-each> |
|
|
</p> |
|
|
<xsl:call-template name="navigationsmenue"/> |
|
|
<!-- erstmal noch nicht |
|
|
<xsl:variable name="stylesheet"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="/ergebnisse/stylesheets/stylesheet/filename !='tabelle_html.xsl'"> |
|
|
<xsl:value-of select="/ergebnisse/stylesheets/stylesheet/filename" /> |
|
|
</xsl:when> |
|
|
<xsl:otherwise>tabelle_html.xsl</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:variable> |
|
|
<p style="margin:1px;padding:1px;"><a style="cursor:pointer;color:blue" onClick="javascript:document.getElementById('hidden_navi').style.visibility='visible'">Schrittweite ändern</a> |
|
|
<span class="hidden_navi" id="hidden_navi" style="visibility:hidden"> von <input name="newOffset" type="text" size="5" value="{sqlerg/@offset+1}" /> bis <input name="newMaxOffset" type="text" size="5" value="{sqlerg/@offset+sqlerg/@maxOffset}" /><a> |
|
|
<xsl:attribute name="href"><xsl:text>javascript:document.forms[0].target='_self'; document.forms[0].offset.value=document.forms[0].newOffset.value-1;document.forms[0].maxoffset.value=(document.forms[0].newMaxOffset.value-document.forms[0].newOffset.value+1);document.forms[0].stylesheet.value='</xsl:text> |
|
|
<xsl:value-of select="$stylesheet" /><xsl:text>';document.forms[0].contenttype.value='text/html'; document.forms[0].submit();</xsl:text></xsl:attribute> |
|
|
<xsl:text> anzeigen</xsl:text></a> |
|
|
</span></p>--> |
|
|
<xsl:if test="errmsg !=''"><p class="errmsg"><xsl:copy-of select="errmsg" /></p></xsl:if> |
|
|
</xsl:template> |
|
|
<xsl:template name="field_type"> |
|
|
|
|
|
<xsl:choose> |
|
|
<!--<xsl:when test="@id='0'"> |
|
|
<xsl:attribute name="class">themenspalte</xsl:attribute> |
|
|
</xsl:when>--> |
|
|
|
|
|
<xsl:when test="@typ='3'"> <!-- DecimalFormat --> |
|
|
<xsl:attribute name="class">decimal</xsl:attribute> |
|
|
</xsl:when> |
|
|
<xsl:when test="@typ='4' or @typ='-5'"> <!-- Integer --> |
|
|
<xsl:attribute name="class">integer</xsl:attribute> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<!--Typ=1 ist string und wird defaultmäßig behandelt --> |
|
|
<xsl:attribute name="class">ergfeld</xsl:attribute> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
|
|
|
</xsl:template> |
|
|
<xsl:template name="field_value"> |
|
|
<!--Transformation: |
|
|
3=DecimalFormat |
|
|
4=integer |
|
|
-7=Boolean |
|
|
6=date |
|
|
8=timestamp |
|
|
9=time |
|
|
Default ist |
|
|
1=string--> |
|
|
|
|
|
<xsl:choose> |
|
|
<xsl:when test="@id='0'"> |
|
|
<xsl:value-of select="wert" /> |
|
|
</xsl:when> |
|
|
|
|
|
<xsl:when test="@typ='3'"> <!-- DecimalFormat --> |
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,00','German')" /> |
|
|
</xsl:when> |
|
|
<xsl:when test="@typ='4' or @typ='-5'"> <!-- Integer --> |
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.###','German')" /> |
|
|
</xsl:when> |
|
|
<xsl:when test="@typ='-7'"> <!-- Boolean --> |
|
|
<input type="checkbox" readonly="true"> |
|
|
<xsl:if test="wert = 'true'"> |
|
|
<xsl:attribute name="checked">true</xsl:attribute> |
|
|
</xsl:if> |
|
|
|
|
|
<xsl:attribute name="name"><xsl:value-of select="f_name" /></xsl:attribute> |
|
|
</input> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<!--Typ=1 ist string und wird defaultmäßig behandelt --> |
|
|
<xsl:value-of select="wert" /> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
|
|
|
</xsl:template> |
|
|
<xsl:template name="datensatzzaehler"> |
|
|
<xsl:choose> |
|
|
<xsl:when test="sqlerg/@max=0"> |
|
|
Keinen Satz gefunden |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
Datensatz <xsl:choose> |
|
|
<xsl:when test="sqlerg/@offset=0 and sqlerg/@max=0">0</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="sqlerg/@offset+1"/> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> - |
|
|
<xsl:choose> |
|
|
<xsl:when test="(sqlerg/@offset + sqlerg/@maxOffset) < sqlerg/@max"> |
|
|
<xsl:value-of select="(sqlerg/@offset + sqlerg/@maxOffset)"/> von insgesamt |
|
|
<xsl:choose> |
|
|
<xsl:when test="sqlerg/@max =1 "> |
|
|
<xsl:value-of select="sqlerg/@max"/> Satz |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="sqlerg/@max"/> S<EFBFBD>tzen |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
|
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="sqlerg/@max"/> von insgesamt |
|
|
<xsl:choose> |
|
|
<xsl:when test="sqlerg/@max =1 "> |
|
|
<xsl:value-of select="sqlerg/@max"/> Satz. |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="sqlerg/@max"/> S<EFBFBD>tzen. |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:template> |
|
|
<xsl:template name="get_colvalue"> |
|
|
<xsl:param name="colname"/> |
|
|
<xsl:param name="row"/> |
|
|
<xsl:choose> |
|
|
<xsl:when test="string-length($row) > 0"> |
|
|
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement/sqlerg/row [ position() = $row ] /col"> |
|
|
<xsl:if test="f_name =$colname"> |
|
|
<xsl:value-of select="wert" /> |
|
|
</xsl:if> |
|
|
</xsl:for-each> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:for-each select="/ergebnisse/ergebnis/ergebniselement/sqlerg/row/col"> |
|
|
<xsl:if test="f_name =$colname"> |
|
|
<xsl:value-of select="wert" /> |
|
|
</xsl:if> |
|
|
</xsl:for-each> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:template> |
|
|
<!-- nbsp für für leere Zellen im IE --> |
|
|
<xsl:template name="get_val_or_nbsp"> |
|
|
<xsl:param name="zs4" /> |
|
|
<xsl:copy-of select="$zs4" /><xsl:if test="string-length($zs4)=0"><xsl:text> </xsl:text></xsl:if> |
|
|
</xsl:template> |
|
|
|
|
|
<xsl:template name="explanation"> |
|
|
<p class="dontprint" align="center"><input type="button" class="clsButtonStyle" name="erl" value="Erl<EFBFBD>uterung" > |
|
|
<xsl:attribute name="onClick"><xsl:value-of select="concat('showErlaeuterung',../maskenname/@id,'()')" /></xsl:attribute> |
|
|
</input> |
|
|
</p> |
|
|
<script language = "Javascript"> |
|
|
<xsl:text> |
|
|
function showErlaeuterung</xsl:text><xsl:value-of select="../maskenname/@id" /><xsl:text><![CDATA[() |
|
|
{ |
|
|
neu=window.open("","explanation_window","toolbar=yes,resizable=yes,scrollbars=yes,menubar=yes,location=no"); |
|
|
neu.document.write("<h1>Maske ]]></xsl:text><xsl:value-of select="../maskenname" /><xsl:text><![CDATA[</h1>"); |
|
|
neu.document.write("<p> ]]></xsl:text><xsl:call-template name="remove_linebreaksAndQuot"><xsl:with-param name="volltext"><![CDATA[]]><xsl:value-of select="../explanation" /><![CDATA[]]></xsl:with-param></xsl:call-template><xsl:text><![CDATA[</p><hr /><table border='1'><tr><th>Felderläuterung</th><th>Spaltenerläuterung</th></tr><td valign='top'><ol>"); |
|
|
]]> |
|
|
</xsl:text> |
|
|
<xsl:for-each select="../felder/feld"> |
|
|
<xsl:text><![CDATA[ |
|
|
neu.document.write("<li><b>]]></xsl:text><xsl:value-of select="@varname" /><xsl:text><![CDATA[</b><br />]]></xsl:text> |
|
|
<xsl:if test="string-length(caption_long) > 0 and caption_long != 'null'"> |
|
|
<xsl:call-template name="remove_linebreaksAndQuot"><xsl:with-param name="volltext"><![CDATA[]]><xsl:value-of select="caption_long" /><![CDATA[]]></xsl:with-param></xsl:call-template> |
|
|
</xsl:if><xsl:text><![CDATA[</li>"); |
|
|
]]></xsl:text> |
|
|
</xsl:for-each> |
|
|
<xsl:text><![CDATA[ |
|
|
neu.document.write("</ol></td><td valign='top'><ol>"); |
|
|
]]> |
|
|
</xsl:text> |
|
|
<xsl:for-each select="sqlerg/headers/header [string-length(caption_long) > 1 and caption_long !='null'and starts-with(f_name,'hidden')=false]"> |
|
|
<xsl:text><![CDATA[ |
|
|
neu.document.write("<li>]]></xsl:text><xsl:call-template name="remove_linebreaksAndQuot"><xsl:with-param name="volltext"><![CDATA[]]><xsl:value-of select="caption_long" /><![CDATA[]]></xsl:with-param></xsl:call-template><xsl:text><![CDATA[</li>"); |
|
|
]]></xsl:text> |
|
|
</xsl:for-each> |
|
|
|
|
|
<xsl:text><![CDATA[ |
|
|
neu.document.write("</ol></td></tr></table>"); |
|
|
neu.document.write("<p align='center'><a href='javascript:window.print();'><img src='../applet/images/sx_print.gif' border='0' /></a></p>"); |
|
|
neu.document.write("<p align='center'><a href='javascript:window.close();'>Fenster schließen</a></p>"); |
|
|
neu.document.close(); |
|
|
} |
|
|
]]> |
|
|
</xsl:text> |
|
|
</script> |
|
|
</xsl:template> |
|
|
<!-- MB ausgelagert aus tabelle.html--> |
|
|
<xsl:template name="resultrow"> |
|
|
|
|
|
<xsl:param name="erglevelmax" /> |
|
|
|
|
|
<xsl:param name="row" /> |
|
|
<xsl:param name="excludecols"/> |
|
|
<tr> |
|
|
<!-- wenn tr andere Attribute als class/id erhält kann es beim Nachladen von Tabellenzeilen im IE Probleme geben--> |
|
|
|
|
|
<xsl:choose> |
|
|
<!-- die Zeilen, die nach Aufklappen erscheinen, haben eine treeindent > 1 und sollen einheitlich hinterlegt sein --> |
|
|
<xsl:when test="@treeindent >= 1"> |
|
|
<xsl:attribute name="class"><xsl:text>listRowReloaded</xsl:text></xsl:attribute> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<!-- odd und even --> |
|
|
<xsl:choose> |
|
|
<xsl:when test="position() mod 2 = 1"> |
|
|
<xsl:attribute name="class"><xsl:text>listRowOdd</xsl:text></xsl:attribute> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:attribute name="class"><xsl:text>listRowEven</xsl:text></xsl:attribute> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
|
|
|
<xsl:attribute name="id"><xsl:value-of select="@treetableid" /></xsl:attribute> |
|
|
<!-- MB 5/2011 rowno ist id im XML, fuer Export ausgewaehlter Zeilen nach Excel/PDF benoetigt --> |
|
|
<xsl:attribute name="irowno"><xsl:value-of select="@internalrowno" /></xsl:attribute> |
|
|
|
|
|
<!-- MB 04/2010 hidden und bestimmte Spalte ausblenden--> |
|
|
<xsl:for-each select="col[not (starts-with(f_name,'hidden')) and not (contains($excludecols,f_name))]"> <!-- and not (starts-with(f_name, 'ebene')) --> |
|
|
|
|
|
<xsl:call-template name="tablecell"/> |
|
|
|
|
|
</xsl:for-each> |
|
|
</tr> |
|
|
</xsl:template> |
|
|
<xsl:template name="tablecell"> |
|
|
<td class="ergfeld"> |
|
|
<xsl:choose> |
|
|
<!--<xsl:when test="@id='0'"> |
|
|
<xsl:attribute name="class">themenspalte</xsl:attribute> |
|
|
</xsl:when> |
|
|
<xsl:when test="@typ='1'"> String |
|
|
<xsl:attribute name="class">string</xsl:attribute> |
|
|
<xsl:value-of select="wert" /> |
|
|
</xsl:when>--> |
|
|
<xsl:when test="@typ='3'"> <!-- DecimalFormat --> |
|
|
<xsl:attribute name="class">decimal</xsl:attribute> |
|
|
<!--<xsl:value-of select="wert" />--> |
|
|
<xsl:call-template name="displaydecimal"><xsl:with-param name="checkname"><xsl:value-of select="concat('hidden',f_name,'dp')"/></xsl:with-param></xsl:call-template> |
|
|
|
|
|
|
|
|
</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: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. |
|
|
--> |
|
|
<!-- bm: Aufklappordner in die erste Spalte verschieben --> |
|
|
<xsl:if test="/ergebnisse/@isMakro!='true' and (position()=1 or f_name='bezeichnung')"> <!-- and ../@treeindent >=0 --> |
|
|
<xsl:call-template name="indent"> |
|
|
<xsl:with-param name="i">1</xsl:with-param> |
|
|
<xsl:with-param name="count"><xsl:value-of select="../@treeindent"/></xsl:with-param> |
|
|
</xsl:call-template> |
|
|
<xsl:choose> |
|
|
<xsl:when test="/ergebnisse/@isMakro!='true' and ../@isfolder='true'"> |
|
|
<!-- <a> --> |
|
|
<!-- MB 4.3.09 Attribut mit Sprungzielanker definiert, damit bei großen Tabellen an passende Stelle gesprungen wird--> |
|
|
<!-- <xsl:attribute name="href"><xsl:text>#</xsl:text><xsl:value-of select="../@treetableid"/></xsl:attribute> |
|
|
<xsl:attribute name="onclick"> |
|
|
<xsl:text>ajaxNodeToggle('</xsl:text><xsl:value-of select="../@treetableid"/><xsl:text>','</xsl:text> |
|
|
<xsl:value-of select="../@internalrowno"/><xsl:text>')</xsl:text> |
|
|
</xsl:attribute> |
|
|
<img src="/superx/xml/bil/images/folder_bil.png" class="treebutton" alt="" width="16" height="16" /> |
|
|
</a> -->    |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
  |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:if> |
|
|
<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> |
|
|
|
|
|
<xsl:if test="f_name = 'ebene' and ../@isfolder='true'"> |
|
|
<!-- |
|
|
<xsl:call-template name="indent"> |
|
|
<xsl:with-param name="i">1</xsl:with-param> |
|
|
<xsl:with-param name="count"><xsl:value-of select="../@treeindent"/></xsl:with-param> |
|
|
</xsl:call-template> |
|
|
<a href="#"> |
|
|
<xsl:attribute name="onclick"> |
|
|
<xsl:text>ajaxNodeToggle('</xsl:text><xsl:value-of select="../@treetableid"/><xsl:text>','</xsl:text> |
|
|
<xsl:value-of select="../@internalrowno"/><xsl:text>')</xsl:text> |
|
|
</xsl:attribute> |
|
|
<img src="/superx/xml/folder_green.png" class="treebutton" alt="" width="16" height="16" /> |
|
|
</a> |
|
|
--> |
|
|
</xsl:if> |
|
|
|
|
|
<!-- BM: Aufruf template info_BIL f<EFBFBD>r evtl. vorhandenen Erl<EFBFBD>uterungen --> |
|
|
<xsl:call-template name="infobox_bil"/> |
|
|
|
|
|
</td> |
|
|
</xsl:template> |
|
|
<xsl:template name="displaydecimal"> |
|
|
<xsl:param name="checkname" /> |
|
|
<xsl:choose> |
|
|
<xsl:when test="wert != ''"> |
|
|
|
|
|
<xsl:choose> <!--MB wenn es eine versteckte hidden_decimalpl gibt auswerten--> |
|
|
<xsl:when test="../col[f_name=$checkname]/wert='0'"> |
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.###','German')" /> |
|
|
</xsl:when> |
|
|
<xsl:when test="../col[f_name=$checkname]/wert='1'"> |
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,0','German')" /> |
|
|
</xsl:when> |
|
|
<xsl:when test="../col[f_name=$checkname]/wert='2'"> |
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,00','German')" /> |
|
|
</xsl:when> |
|
|
<xsl:when test="../col[f_name=$checkname]/wert='3'"> |
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,000','German')" /> |
|
|
</xsl:when> |
|
|
<xsl:when test="../col[f_name=$checkname]/wert='4'"> |
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,0000','German')" /> |
|
|
</xsl:when> |
|
|
<xsl:when test="../col[f_name=$checkname]/wert='5'"> |
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,00000','German')" /> |
|
|
</xsl:when> |
|
|
<xsl:when test="../col[f_name=$checkname]/wert='6'"> |
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,000000','German')" /> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="format-number(wert,'###.###.###.###.##0,00','German')" /> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:when> |
|
|
<xsl:otherwise> |
|
|
<xsl:value-of select="' '" /> |
|
|
</xsl:otherwise> |
|
|
</xsl:choose> |
|
|
</xsl:template> |
|
|
|
|
|
<!-- BM: Template Infobox f<EFBFBD>r Erl<EFBFBD>uterungen --> |
|
|
<!-- BM: Template Infobox f<EFBFBD>r Erl<EFBFBD>uterungen --> |
|
|
<xsl:template name="infobox_bil"> |
|
|
|
|
|
<!-- da die Spalte hiddendescription nicht ausgegeben wird, Positionierug des Info-Buttons über die Position/id --> |
|
|
<xsl:if test="(@id=1) and ../col [f_name='hiddendescription' and wert !='']"> |
|
|
|
|
|
<!-- Erl<EFBFBD>uterungen zu einzelnen Kennzahlen in hidden Abschnitten und mit Info-Button --> |
|
|
<input type="hidden" src="/superx/xml/bil/images/info_zahl_kl_bil.png" style="margin-left:10px;" alt="info" value="Helptext" > |
|
|
<xsl:attribute name="type">image</xsl:attribute> |
|
|
<xsl:attribute name="onclick"><xsl:text>if(document.getElementById('</xsl:text><xsl:value-of select="../@internalrowno" /> |
|
|
<xsl:text>').style.display=='none')document.getElementById('</xsl:text><xsl:value-of select="../@internalrowno" /> |
|
|
<xsl:text>').style.display='block'; else document.getElementById('</xsl:text><xsl:value-of select="../@internalrowno" /> |
|
|
<xsl:text>').style.display='none'; return false;</xsl:text></xsl:attribute> |
|
|
</input> |
|
|
|
|
|
<p style="display: none; color:red; font-style:italic;"> |
|
|
<xsl:attribute name="id"><xsl:value-of select="../@internalrowno" /></xsl:attribute> |
|
|
<xsl:for-each select="../col [f_name='hiddendescription' and wert !='']"><xsl:value-of select="wert" disable-output-escaping='yes' /></xsl:for-each> |
|
|
</p> |
|
|
|
|
|
</xsl:if> |
|
|
|
|
|
</xsl:template> |
|
|
|
|
|
</xsl:stylesheet>
|
|
|
|