SuperX-Kernmodul
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.

147 lines
4.9 KiB

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--<xml:output method="html" />-->
<xsl:import href="pageComponents_html.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="," />
<xsl:template match="/">
<html>
<xsl:call-template name="head" >
<xsl:with-param name="title" select="concat('Ergebnis ',ergebnis/tabelle/maskenname)" />
</xsl:call-template>
<body onload="isReady=true">
<xsl:call-template name="topbar" />
<p align="right"><img src="../images/logo.gif" alt="Logo" /></p>
<form name="Weiterverarbeitung" action="SuperXmlTabelle" method="post" target="_self">
<xsl:if test="/ergebnis/nachricht !=''"><p>
<xsl:copy-of select="/ergebnis/nachricht" /></p>
</xsl:if>
<table border="0"><tr><td align="left"><input type="hidden" name="UserID">
<xsl:attribute name="value"><xsl:value-of select="/ergebnis/userid" /></xsl:attribute>
</input>
<input type="hidden" name="stylesheet" value="" />
<input type="hidden" name="contenttype" value="" />
<xsl:for-each select="/ergebnis/felder/feld">
<input type="hidden">
<xsl:attribute name="name"><xsl:value-of select="wert/@varname" /></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="wert/value" /></xsl:attribute>
</input>
</xsl:for-each>
<xsl:call-template name="printsaveButtons" />
</td>
<td align="right"><!--<xsl:call-template name="exportButtonsDoc" />-->
</td></tr></table>
<xsl:choose>
<xsl:when test="/ergebnis/Makro/@tid !=''">
<p><input type="hidden" name="tid">
<xsl:attribute name="value"><xsl:value-of select="/ergebnis/Makro/@tid" /></xsl:attribute>
</input>
</p></xsl:when>
<xsl:otherwise>
<p><input type="hidden" name="tid">
<xsl:attribute name="value"><xsl:value-of select="/ergebnis/tabelle/@id" /></xsl:attribute>
</input></p>
</xsl:otherwise>
</xsl:choose>
<p class="legende">
<xsl:for-each select="ergebnis/felder/msgs/msg">
<xsl:if test="wert !=''">
<p class="errmsg"><xsl:value-of select="wert" /></p>
</xsl:if>
</xsl:for-each>
</p>
<xsl:for-each select="ergebnis/tabelle">
<table width="100%" class="ergtabelle">
<xsl:for-each select="sqlerg/row">
<xsl:for-each select="col">
<xsl:if test="wert !=''">
<tr><td class="themenspalte" width="20%">&#160;
<xsl:if test="f_name !='funktionsbezeichnung' and f_name != 'Person' and f_name != 'bezeichnung'">
<xsl:value-of select="f_name" />
</xsl:if>
</td>
<td>
<xsl:attribute name="class"><xsl:value-of select="f_name" /></xsl:attribute>
<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">
<xsl:copy-of select="$zs" />
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<!--Ab hier können Benutzerspezifische Transformationen nach Feldnamen oder Typ beginnen
Standardmmäßig wird der Feldinhalt nur noch kopiert.-->
<xsl:choose>
<xsl:when test="f_name='jhg' or f_name='Hhgjlname' or f_name='Kontaktstellen' or f_name='Grundst.Studium' or f_name='Weiterf.Studium' or f_name='Promotionsmöglichkeiten' or f_name='Kooperationen' ">
<xsl:if test="position()=1">
<xsl:copy-of select="$zs3" />
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$zs3" />
</xsl:otherwise>
</xsl:choose>
</td></tr>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</table>
</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 match="@name">
<h2><xsl:value-of select="wert" /></h2>
</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>&amp;</xsl:text>
</xsl:if>
<xsl:text>UserID=</xsl:text><xsl:value-of select="/ergebnis/userid" /><xsl:text>&amp;tid=</xsl:text><xsl:value-of select="/ergebnis/tabelle/@id" />
<xsl:for-each select="/ergebnis/tabelle/felder/feld">
<xsl:if test="wert/value !=''">
<xsl:text>&amp;</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>