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.
 
 
 
 
 
 

1104 lines
36 KiB

<?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="maskComponents_html.xsl" />
<xsl:import href="levels.xsl" />
<xsl:variable name="useragent" select="'mozilla'" />
<xsl:template match="/">
<html>
<xsl:call-template name="head" >
<xsl:with-param name="title" select="concat('Maske ',maske/felder/feld/maskenname)" />
</xsl:call-template>
<body>
<xsl:call-template name="topbar" />
<!--<xsl:call-template name="maskButtons" />-->
<form name="maske" method="post">
<!--MB jessionid falls nötig-->
<xsl:attribute name="action"><xsl:value-of select="'SuperXmlTabelle'" />
</xsl:attribute>
<input type="hidden" name="UserID">
<xsl:attribute name="value"><xsl:value-of select="/maske/UserID"/></xsl:attribute>
</input><input type="hidden" name="tid">
<xsl:attribute name="value">
<xsl:value-of select="/maske/@tid"/>
</xsl:attribute>
</input><input type="hidden" name="stylesheet" value="" />
<div id="maske" class="maske">
<xsl:if test="/maske/nachricht !=''"><p>
<xsl:copy-of select="/maske/nachricht" /></p>
</xsl:if>
<table border="0"><tr><td>
<p class="maskentitel">
<xsl:value-of select="maske/@name" />
</p>
<p>Bitte schränken Sie Ihre Auswahl ein:</p>
<xsl:text disable-output-escaping="yes">&lt;table class="maske" width="100%"&gt; &lt;tr&gt;
</xsl:text>
<xsl:for-each select="maske/felder">
<xsl:for-each select="feld">
<xsl:call-template name="feld_old_stylesheet">
<xsl:with-param name="browser" select="$useragent" />
</xsl:call-template>
<!--<xsl:if test="y='0'"></tr></xsl:if>-->
</xsl:for-each>
<xsl:text disable-output-escaping="yes"> &lt;/tr&gt; &lt;/table&gt;
</xsl:text>
<!--<SELECT NAME="tabellenformat">
<OPTION VALUE="tabelle_html.xsl" SELECTED="true">Tabelle (html)</OPTION>
<OPTION VALUE="tabelle_pdf.xsl">Tabelle (pdf)</OPTION>
<OPTION VALUE="tabelle_xml.xsl">XML-Datei</OPTION>
<OPTION VALUE="tabelle_svg.xsl">Diagramm (html)</OPTION>
</SELECT>-->
<table class="header" width="100%"><tr><td align="left" class="headerleft">
<div id="submitreset" class="submitreset">
<p align="center">
<input type="submit" value="@@abschicken@@" onClick="javascript:document.forms[0].stylesheet.value='';"/></p>
</div>
</td>
<td class="headermiddle"></td>
<td align="right" class="headerright">
</td></tr></table>
</xsl:for-each>
</td>
</tr></table>
</div>
<xsl:choose>
<xsl:when test="count(/maske/felder/feld[art=18]) &gt; 0">
<div id="maske_infobar" class="maske_infobar">
<div class="weitere_einstellungen_extra" id="dropdownmenu" style="width: 300px;">
<ul>
<li><a href="#" rel="dropmenu1">Weitere Einstellungen:</a></li>
</ul>
</div>
<div id="dropmenu1" class="dropmenudiv">
<xsl:for-each select="/maske/felder/feld[art=18]">
<a target="_blank">
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="contains(defaultwert/key,'|')">
<xsl:value-of select="concat(substring-before(defaultwert/key,'|'),'?',substring-after(defaultwert/key,'|'))"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="defaultwert/key"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="name" />
</a>
</xsl:for-each>
</div>
</div>
<script type="text/javascript">cssdropdown.startdropdown("dropdownmenu")</script>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</form>
<!--<xsl:call-template name="sidebar" />-->
<xsl:call-template name="bottombar_mask" />
<!--Nur für Debugging: -->
<xsl:if test="/maske/UserID/@admin='true'">
<div id="inhalt" class="versteckt"><p><TEXTAREA NAME="content" ROWS="40" COLS="80" WRAP="off" READONLY="true">
<xsl:copy-of select="/maske" />
</TEXTAREA>
</p></div>
<script language="Javascript">
versteckeText("inhalt");
</script>
</xsl:if>
</body>
</html>
</xsl:template>
<xsl:template name="feld_old_stylesheet">
<xsl:param name="browser" />
<xsl:if test="y='0' and art != '13'">
<p class="umbruch"> </p>
</xsl:if>
<xsl:call-template name="inputfeld_old_stylesheet">
<xsl:with-param name="browser" select="$browser" />
</xsl:call-template>
</xsl:template>
<xsl:template name="inputfeld_old_stylesheet">
<xsl:param name="browser" />
<xsl:choose>
<xsl:when test="art = '13' or art = '15' or art = '18'"> <!--keine Labels bei versteckten Feldern und Hyperlinks-->
</xsl:when>
<xsl:otherwise>
<div class="feldlabel">
<xsl:attribute name="style"><xsl:value-of select="concat('width:',buttonbreite,'px; min-width:',buttonbreite,'px')"/></xsl:attribute>
<!--<xsl:choose>
<xsl:when test="art = '15'">
<xsl:attribute name="class">labelHidden</xsl:attribute>
</xsl:when>
<xsl:when test="obligatorisch='1'">
<xsl:attribute name="class">labelPflicht</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">labelNormal</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
-->
<!-- klappt nicht <img src="../xml/spacer.gif" height="1px"><xsl:attribute name="width"><xsl:value-of select="concat(buttonbreite,'px')"/></xsl:attribute></img>-->
<label width="{buttonbreite}">
<xsl:choose>
<xsl:when test="obligatorisch='1'">
<xsl:attribute name="class">labelPflicht</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="class">labelNormal</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="caption_short != ''"><![CDATA[]]><xsl:value-of select="caption_short" /><![CDATA[]]></xsl:when>
<xsl:otherwise>
<xsl:value-of select="name" />
</xsl:otherwise>
</xsl:choose>
</label>
</div>
<!--<xsl:if test="obligatorisch='1'">
<b>
<xsl:value-of select="name"/>
</b>
</xsl:if>
<xsl:if test="obligatorisch='0'">
<xsl:value-of select="name"/>
</xsl:if>-->
<!--</xsl:if>-->
<!--<img src="../xml/spacer.gif" height="1px">
<xsl:attribute name="width"><xsl:value-of select="buttonbreite"/>px</xsl:attribute>
</img>-->
</xsl:otherwise>
</xsl:choose>
<div class="feld">
<!--<xsl:attribute name="style"><xsl:value-of select="concat('width:',feldbreite,'px')"/></xsl:attribute>-->
<!-- start old feldart choose -->
<xsl:choose>
<!-- start 0-10-->
<xsl:when test="art='0'">
<xsl:if test="zeilenanzahl='1'">
<input type="text" class="maskinput">
<xsl:attribute name="NAME">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="tabindex">
<xsl:value-of select="100+(nummer*10)+2"/>
</xsl:attribute>
<xsl:attribute name="id">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="MAXLENGTH">
<xsl:value-of select="laenge"/>
</xsl:attribute>
<xsl:attribute name="VALUE">
<xsl:value-of select="defaultwert/name"/>
</xsl:attribute>
<xsl:attribute name="size">
<xsl:value-of select="feldbreite div $feldbreite_faktor"/>
</xsl:attribute>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
</input>
</xsl:if>
<xsl:if test="zeilenanzahl!='1'">
<textarea WRAP="on" class="maskinput">
<xsl:attribute name="tabindex">
<xsl:value-of select="100+(nummer*10)+2"/>
</xsl:attribute>
<xsl:attribute name="cols">
<xsl:value-of select="feldbreite div 12"/>
</xsl:attribute>
<xsl:attribute name="rows">
<xsl:value-of select="zeilenanzahl"/>
</xsl:attribute>
<xsl:attribute name="NAME">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
<xsl:value-of select="defaultwert/name"/>
</textarea>
</xsl:if>
<!--<xsl:if test="typ='char'">
<a>
<xsl:attribute name="href">javascript:document.forms[0].<xsl:value-of select="name"/>.value='-leer-'; this.focus();</xsl:attribute>
<img src="../xml/leer.gif" border="0" alt="Feld leeren" />
</a>
</xsl:if> -->
</xsl:when>
<xsl:when test="art='1'">
<!--normale Combo-Box -->
<select class="maskinput">
<xsl:attribute name="NAME">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="tabindex">
<xsl:value-of select="100+(nummer*10)+2"/>
</xsl:attribute>
<!--Leider zerschiessen multiple-Seelct-Boxen das Layout
daher erstmal auf Kommentar-->
<xsl:if test="zeilenanzahl &gt; 1">
<xsl:attribute name="size">
<xsl:value-of select="zeilenanzahl"/>
</xsl:attribute>
<xsl:attribute name="multiple">
multiple
</xsl:attribute>
<!-- <xsl:attribute name="style">
<xsl:value-of select="'margin-top:100px'"/>
</xsl:attribute>-->
</xsl:if>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
<option />
<xsl:for-each select="relation/item">
<xsl:if test="string-length(name) &gt; 0">
<option class="maskinput">
<xsl:attribute name="value">
<xsl:value-of select="key"/>
</xsl:attribute>
<!--MB-->
<xsl:if test="../../defaultwert/name=name">
<xsl:attribute name="selected">true</xsl:attribute>
</xsl:if>
<xsl:value-of select="name"/>
</option>
</xsl:if>
</xsl:for-each>
</select>
</xsl:when>
<xsl:when test="art='2'">
<!--Combo-Box mit Stored procedure-->
<select class="maskinput">
<xsl:attribute name="NAME">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
<xsl:attribute name="tabindex">
<xsl:value-of select="100+(nummer*10)+2"/>
</xsl:attribute>
<option/>
<xsl:for-each select="relation/item">
<option class="maskinput">
<xsl:attribute name="value">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:if test="../../defaultwert/key=key">
<xsl:attribute name="selected">true</xsl:attribute>
</xsl:if>
<xsl:value-of select="key"/>
</option>
</xsl:for-each>
</select>
</xsl:when>
<xsl:when test="art='3'">
<input type="file" class="maskinput">
<xsl:attribute name="NAME">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="tabindex">
<xsl:value-of select="100+(nummer*10)+2"/>
</xsl:attribute>
<xsl:attribute name="size">
<xsl:value-of select="feldbreite"/>
</xsl:attribute>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
</input>
</xsl:when>
<xsl:when test="art='4' or art='6' or art='7'">
<select class="maskinput">
<xsl:attribute name="name">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
<option class="maskinput"></option>
<xsl:for-each select="relation/item">
<option>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="starts-with(name,' ')" >
<xsl:text>option_4</xsl:text>
</xsl:when>
<xsl:when test="starts-with(name,' ')" >
<xsl:text>option_3</xsl:text>
</xsl:when>
<xsl:when test="starts-with(name,' ')" >
<xsl:text>option_2</xsl:text>
</xsl:when>
<xsl:when test="starts-with(name,' ')" >
<xsl:text>option_1</xsl:text>
</xsl:when>
<xsl:when test="not(starts-with(name,' '))" >
<xsl:text>option_0</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>maskinput</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="key"/>
</xsl:attribute>
<!--MB-->
<xsl:if test="../../defaultwert/key=key">
<xsl:attribute name="selected">true</xsl:attribute>
</xsl:if>
<xsl:value-of select="translate(name,' ','&#160;') " disable-output-escaping="yes"/>
</option>
</xsl:for-each>
</select>&#160;<input type="button" name="sicht_auswaehlen_{tid}" value=".." class="sichtBtn">
<xsl:attribute name="onClick">javascript:zeigeText('sichtauswahl<xsl:value-of select="tid" />');</xsl:attribute>
</input>
<div class="sichtauswahl">
<xsl:attribute name="id">sichtauswahl<xsl:value-of select="tid" /></xsl:attribute>
<h1 class="sichtauswahl" align="right"> <a title="Schliessen" class="sichtauswahl">
<xsl:attribute name="href"><xsl:text>javascript:versteckeText('sichtauswahl</xsl:text><xsl:value-of select="tid" /><xsl:text>');</xsl:text></xsl:attribute>
<img src="../xml/kreuz.png" alt="Schliessen" /></a></h1>
<xsl:if test="string-length(sichten/sicht [ @selected='true' ]/@stand) &gt; 1 ">
<p>
Stand:&#160;<input type="text" size="10" class="sichtText">
<xsl:attribute name="value">
<xsl:value-of select="sichten/sicht[ @selected='true' ]/@stand"/>
</xsl:attribute>
<xsl:attribute name="name">
<xsl:value-of select="Organigramm-Stand"/>
</xsl:attribute>
</input></p>
</xsl:if>
<!--
Abfrage ob Sicht überhaupt mitkommt:-->
<!--
Aktualisieren-Button, wenn Stand überhaupt mitkommt:-->
<xsl:if test="string-length(sichten/sicht[ @selected='true' ]/@stand) &gt; 1 ">
<p align="center"><input type="submit" class="sichtBtn" value="Aktualisieren">
<xsl:attribute name="name">
<xsl:value-of select="concat(name,'-aktualisieren')"/>
</xsl:attribute>
</input>
</p>
<!--Ende Abfrage ob Sicht überhaupt mitkommt-->
</xsl:if>
</div>
<script language="Javascript">
<xsl:text>versteckeText("sichtauswahl</xsl:text><xsl:value-of select="tid" /><xsl:text>");</xsl:text>
</script>
</xsl:when>
<xsl:when test="art='8' or art='5'">
<!--label-->
<xsl:if test="zeilenanzahl='1'">
<input type="label" readonly ="true" class="label">
<xsl:attribute name="NAME">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="defaultwert/name"/>
</xsl:attribute>
<xsl:attribute name="size">
<xsl:value-of select="feldbreite div $feldbreite_faktor"/>
</xsl:attribute>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
</input>
</xsl:if>
<xsl:if test="zeilenanzahl!='1'">
<textarea WRAP="on" readonly ="true" class="maskinput">
<xsl:attribute name="cols">
<xsl:value-of select="feldbreite div 12"/>
</xsl:attribute>
<xsl:attribute name="rows">
<xsl:value-of select="zeilenanzahl"/>
</xsl:attribute>
<xsl:attribute name="NAME">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
<xsl:value-of select="defaultwert/name"/>
</textarea>
</xsl:if>
</xsl:when>
<xsl:when test="art='9'">
<xsl:call-template name="treeview">
</xsl:call-template>
</xsl:when>
<xsl:when test="art='10'">
<input type="checkbox" value="true" class="maskinput">
<xsl:attribute name="NAME">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="tabindex">
<xsl:value-of select="100+(nummer*10)+2"/>
</xsl:attribute>
<xsl:if test="defaultwert/name != '' and defaultwert/name != 'false'">
<xsl:attribute name="checked">
<xsl:value-of select="defaultwert/name"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="caption_long != ''"><xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
</input> &#160;
</xsl:when>
<!-- end 10 -->
<!-- start 11-->
<xsl:when test="art='11'">
<xsl:if test="zeilenanzahl='1'">
<input type="password">
<xsl:attribute name="NAME">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="tabindex">
<xsl:value-of select="100+(nummer*10)+2"/>
</xsl:attribute>
<xsl:attribute name="id">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="MAXLENGTH">
<xsl:value-of select="laenge"/>
</xsl:attribute>
<xsl:attribute name="VALUE">
<xsl:value-of select="defaultwert/name"/>
</xsl:attribute>
<xsl:attribute name="size">
<xsl:value-of select="feldbreite div 12"/>
</xsl:attribute>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
</input>
</xsl:if>
</xsl:when>
<!-- end 11-->
<!-- start 12-->
<xsl:when test="art='12'"><!--DQ 16.2.2005-->
<!--<xsl:call-template name="treeview">
</xsl:call-template>-->
<select class="maskinput">
<xsl:attribute name="name">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]> </xsl:attribute>
</xsl:if>
<option class="maskinput"></option>
<xsl:for-each select="relation/item">
<option>
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="starts-with(name,' ')" >
<xsl:text>option_4</xsl:text>
</xsl:when>
<xsl:when test="starts-with(name,' ')" >
<xsl:text>option_3</xsl:text>
</xsl:when>
<xsl:when test="starts-with(name,' ')" >
<xsl:text>option_2</xsl:text>
</xsl:when>
<xsl:when test="starts-with(name,' ')" >
<xsl:text>option_1</xsl:text>
</xsl:when>
<xsl:when test="not(starts-with(name,' '))" >
<xsl:text>option_0</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>maskinput</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="key"/>
</xsl:attribute>
<!--MB-->
<xsl:if test="../../defaultwert/key=key">
<xsl:attribute name="selected">true</xsl:attribute>
</xsl:if>
<xsl:value-of select="translate(name,' ','&#160;') " disable-output-escaping="yes"/>
</option>
</xsl:for-each>
</select>&#160;<xsl:if test="string-length(sichten/sicht [ @selected='true' ]/@stand) &gt; 1 or count(sichten/sicht) &gt; 1 "><input type="button" value=".." class="sichtBtn">
<xsl:attribute name="onClick"><xsl:text>javascript:versteckeCombosIE();zeigeText('sichtauswahl</xsl:text><xsl:value-of select="tid" /><xsl:text>');</xsl:text></xsl:attribute>
</input>
<div class="sichtauswahl">
<xsl:attribute name="id">sichtauswahl<xsl:value-of select="tid" /></xsl:attribute>
<h1 class="sichtauswahl" align="right"> <a title="Schliessen" class="sichtauswahl">
<xsl:attribute name="href"><xsl:text>javascript:zeigeCombosIE();versteckeText('sichtauswahl</xsl:text><xsl:value-of select="tid" /><xsl:text>');</xsl:text></xsl:attribute>
<img src="../xml/kreuz.png" alt="Schliessen" /></a></h1>
<xsl:if test="string-length(sichten/sicht [ @selected='true' ]/@stand) &gt; 1 ">
<p>
Stand:&#160;<input type="text" size="10" class="sichtText">
<xsl:attribute name="value">
<xsl:value-of select="sichten/sicht[ @selected='true' ]/@stand"/>
</xsl:attribute>
<xsl:attribute name="name">
<xsl:value-of select="concat(name,'-Stand')"/>
</xsl:attribute>
</input></p>
</xsl:if>
<!--
Abfrage ob Sicht überhaupt mitkommt:-->
<xsl:if test="count(sichten/sicht) &gt; 1 ">
<p>Sicht:&#160;<select class="maskinput">
<xsl:attribute name="name">
<xsl:value-of select="concat(name,'-Sicht')"/>
</xsl:attribute>
<xsl:for-each select="sichten/sicht">
<option class="maskinput">
<xsl:attribute name="value">
<xsl:value-of select="@tid"/>
</xsl:attribute>
<xsl:if test="@selected = 'true'">
<xsl:attribute name="selected">
<xsl:value-of select="@selected"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/></option>
</xsl:for-each>
</select>
</p>
</xsl:if>
<!--
Aktualisieren-Button, wenn Sicht überhaupt mitkommt:-->
<xsl:if test="count(sichten/sicht) &gt; 1 or string-length(sichten/sicht[ @selected='true' ]/@stand) &gt; 1 ">
<p align="center"><input type="submit" class="sichtBtn" value="Aktualisieren">
<xsl:attribute name="name">
<xsl:value-of select="concat(name,'-aktualisieren')"/>
</xsl:attribute>
</input>
</p>
<!--Ende Abfrage ob Sicht überhaupt mitkommt-->
</xsl:if>
</div>
<script language="Javascript">
<xsl:text>versteckeText("sichtauswahl</xsl:text><xsl:value-of select="tid" /><xsl:text>");</xsl:text>
</script>
</xsl:if>
</xsl:when>
<!-- end 12 -->
<!-- start 13-->
<xsl:when test="art='13'">
<input type="hidden">
<xsl:attribute name="NAME">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="id">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="VALUE">
<xsl:value-of select="defaultwert/name"/>
</xsl:attribute>
</input>
</xsl:when>
<!-- end 13-->
<!-- start 14-->
<xsl:when test="art='14'">
<input type="radio" class="maskinput">
<xsl:attribute name="tabindex">
<xsl:value-of select="100+(nummer*10)+2"/>
</xsl:attribute>
<xsl:attribute name="NAME">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="id">
<xsl:value-of select="name"/>
</xsl:attribute>
<xsl:attribute name="VALUE">
<xsl:value-of select="defaultwert/name"/>
</xsl:attribute>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
</input>
</xsl:when>
<!-- end 14-->
<!-- start 15 -->
<xsl:when test="art='15'">
<xsl:if test="defaultwert/name != ''">
<a class="feldlink">
<xsl:attribute name="href">
<xsl:choose>
<!--bei externen Links benötigen wir keine JSESSIONID-->
<xsl:when test="starts-with(defaultwert/name,'www')">
<xsl:value-of select="concat('http://',defaultwert/name)"/>
</xsl:when>
<xsl:when test="starts-with(defaultwert/name,'http') or contains(defaultwert/name,'.htm')">
<xsl:value-of select="defaultwert/name"/>
</xsl:when>
<xsl:when test="starts-with(defaultwert/name,'nexttable:')">
<xsl:value-of select="concat('SuperXmlTabelle','?tid=',substring-after(defaultwert/name,'nexttable:'))"/>
</xsl:when>
<xsl:otherwise>
<!--Default: Link auf andere Maske-->
<xsl:value-of select="concat('SuperXmlMaske','?tid=',defaultwert/name)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="caption_long != ''">
<xsl:attribute name="title"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:attribute>
</xsl:if>
<xsl:value-of select="name"/>
</a>
</xsl:if>
</xsl:when>
<!-- end 15-->
<xsl:when test="art='16'">
</xsl:when>
<xsl:when test="art='17'">
<!--Radio-->
<input name="{name}" id="{name}" type="hidden" value="{defaultwert/name}" />
<xsl:for-each select="relation/item [string-length(name) &gt; 0]">
<input name="{concat(../../name,'Radio')}" id="{concat(../../name,'Radio',position())}" value="{key}" type="radio" >
<xsl:attribute name="onclick"><xsl:text>document.forms[0].elements['</xsl:text><xsl:value-of select="../../name"/>
<xsl:text>'].value='</xsl:text><xsl:value-of select="key"/><xsl:text>';return true;</xsl:text></xsl:attribute>
<xsl:if test="../../defaultwert/name=name">
<xsl:attribute name="checked"><xsl:text>true</xsl:text></xsl:attribute>
</xsl:if>
</input>&#160; <xsl:value-of select="name"/><br />
</xsl:for-each>
</xsl:when>
<xsl:when test="art='18'">
</xsl:when>
<xsl:otherwise>A.Unbekannte Feldart <xsl:value-of select="art"/></xsl:otherwise>
</xsl:choose>
<!-- end choose 1-->
</div>
<!--<xsl:if test="caption_long != ''">
<xsl:choose>
<xsl:when test="string-length(caption_long) &gt; 49">
<td class="caption"><xsl:value-of select="caption_long"/></td>
</xsl:when>
<xsl:otherwise>
<td class="caption"><xsl:value-of select="caption_long"/></td>
</xsl:otherwise>
</xsl:choose>
</xsl:if>-->
</xsl:template>
<xsl:template name="head" >
<xsl:param name="css"/>
<xsl:param name="title"/>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </meta>
<link rel="stylesheet" type="text/css" href="../style/superx.css" />
<link rel="stylesheet" type="text/css" href="../xml/superxml_html.css" />
<xsl:choose>
<xsl:when test="$title != ''">
<xsl:choose>
<xsl:when test="starts-with($title,'Mask') ">
<link rel="stylesheet" type="text/css" href="../xml/maske_html.css" />
</xsl:when>
<xsl:otherwise>
<link rel="stylesheet" type="text/css" href="../xml/tabelle_html.css" />
</xsl:otherwise>
</xsl:choose>
<title><xsl:value-of select="$title" /></title>
</xsl:when>
<xsl:otherwise>
<title><xsl:text>SuperX</xsl:text></title>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="$css != ''">
<link rel="stylesheet" type="text/css" href="$css" />
</xsl:if>
<style type="text/css">
.weitere_einstellungen_extra{
width: 99%;
font-weight: bold;
}
.weitere_einstellungen_extra:after{
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.weitere_einstellungen_extra ul{
width: 100%;
/* background: url(../images/buttonwe.gif) center center repeat-x; */
padding: 4px 0;
margin: 0;
text-align: left;
}
.weitere_einstellungen_extra ul li{
display: inline;
}
.weitere_einstellungen_extra ul li a{
color: #494949;
padding: 4px 7px;
margin: 0;
text-decoration: none;
/* border-right: 0px solid #CCCCFF; */
background-color: #DCDCFF;
border: 1px solid #BBB;
}
.weitere_einstellungen_extra ul li a:hover, .weitere_einstellungen_extra ul li a.selected{
/* background: url(../images/buttonwe_over.gif) center center repeat-x; */
background-color: #CCCCFF;
}
.dropmenudiv{
position:absolute;
top: 0;
border: 1px solid #CCCCFF;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
background-color: white;
width: 200px;
visibility: hidden;
}
.dropmenudiv a{
width: 100%;
display: block;
text-indent: 3px;
border-bottom: 1px solid #CCCCFF;
padding: 2px 0;
text-decoration: none;
font-weight: bold;
color: black;
}
.dropmenudiv a:hover{
background-color: #E3E7FF;
}
</style>
<script type="text/javascript">
<![CDATA[
var cssdropdown={
disappeardelay: 250, // Millisekunden in denen das Menü verschwindet
dropdownindicator: '', //'<img src="../images/down.gif" border="0" />', // Pfeil nach unten nach dem Test im Dropdownmenü
enablereveal: [true, 5], // swipe effect aktivieren? [true/false, stufen (Nummer der Animationsstufen. Integer zwischen 1-20. je kleiner die Zahl, desto schneller öffnet sich das Manü)]
enableiframeshim: 1, // für IE5.5 - IE7? (1=ja, 0=nein)
dropmenuobj: null, asscmenuitem: null, domsupport: document.all || document.getElementById, standardbody: null, iframeshimadded: false, revealtimers: {},
getposOffset:function(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
},
css:function(el, targetclass, action){
var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)", "ig")
if (action=="check")
return needle.test(el.className)
else if (action=="remove")
el.className=el.className.replace(needle, "")
else if (action=="add" && !needle.test(el.className))
el.className+=" "+targetclass
},
showmenu:function(dropmenu, e){
if (this.enablereveal[0]){
if (!dropmenu._trueheight || dropmenu._trueheight<10)
dropmenu._trueheight=dropmenu.offsetHeight
clearTimeout(this.revealtimers[dropmenu.id])
dropmenu.style.height=dropmenu._curheight=0
dropmenu.style.overflow="hidden"
dropmenu.style.visibility="visible"
this.revealtimers[dropmenu.id]=setInterval(function(){cssdropdown.revealmenu(dropmenu)}, 10)
}
else{
dropmenu.style.visibility="visible"
}
this.css(this.asscmenuitem, "selected", "add")
},
revealmenu:function(dropmenu, dir){
var curH=dropmenu._curheight, maxH=dropmenu._trueheight, steps=this.enablereveal[1]
if (curH<maxH){
var newH=Math.min(curH, maxH)
dropmenu.style.height=newH+"px"
dropmenu._curheight= newH + Math.round((maxH-newH)/steps) + 1
}
else{
dropmenu.style.height="auto"
dropmenu.style.overflow="hidden"
clearInterval(this.revealtimers[dropmenu.id])
}
},
clearbrowseredge:function(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=document.all && !window.opera? this.standardbody.scrollLeft+this.standardbody.clientWidth-15 : window.pageXOffset+window.innerWidth-15
var dropmenuW=this.dropmenuobj.offsetWidth
if (windowedge-this.dropmenuobj.x < dropmenuW)
edgeoffset=dropmenuW-obj.offsetWidth
}
else{
var topedge=document.all && !window.opera? this.standardbody.scrollTop : window.pageYOffset
var windowedge=document.all && !window.opera? this.standardbody.scrollTop+this.standardbody.clientHeight-15 : window.pageYOffset+window.innerHeight-18
var dropmenuH=this.dropmenuobj._trueheight
if (windowedge-this.dropmenuobj.y < dropmenuH){
edgeoffset=dropmenuH+obj.offsetHeight
if ((this.dropmenuobj.y-topedge)<dropmenuH)
edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
},
dropit:function(obj, e, dropmenuID){
if (this.dropmenuobj!=null)
this.hidemenu()
this.clearhidemenu()
this.dropmenuobj=document.getElementById(dropmenuID)
this.asscmenuitem=obj
this.showmenu(this.dropmenuobj, e)
this.dropmenuobj.x=this.getposOffset(obj, "left")
this.dropmenuobj.y=this.getposOffset(obj, "top")
this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")+"px"
this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"
this.positionshim()
},
positionshim:function(){
if (this.iframeshimadded){
if (this.dropmenuobj.style.visibility=="visible"){
this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px"
this.shimobject.style.height=this.dropmenuobj._trueheight+"px"
this.shimobject.style.left=parseInt(this.dropmenuobj.style.left)+"px"
this.shimobject.style.top=parseInt(this.dropmenuobj.style.top)+"px"
this.shimobject.style.display="block"
}
}
},
hideshim:function(){
if (this.iframeshimadded)
this.shimobject.style.display='none'
},
isContained:function(m, e){
var e=window.event || e
var c=e.relatedTarget || ((e.type=="mouseover")? e.fromElement : e.toElement)
while (c && c!=m)try {c=c.parentNode} catch(e){c=m}
if (c==m)
return true
else
return false
},
dynamichide:function(m, e){
if (!this.isContained(m, e)){
this.delayhidemenu()
}
},
delayhidemenu:function(){
this.delayhide=setTimeout("cssdropdown.hidemenu()", this.disappeardelay)
},
hidemenu:function(){
this.css(this.asscmenuitem, "selected", "remove")
this.dropmenuobj.style.visibility='hidden'
this.dropmenuobj.style.left=this.dropmenuobj.style.top="-1000px"
this.hideshim()
},
clearhidemenu:function(){
if (this.delayhide!="undefined")
clearTimeout(this.delayhide)
},
addEvent:function(target, functionref, tasktype){
if (target.addEventListener)
target.addEventListener(tasktype, functionref, false);
else if (target.attachEvent)
target.attachEvent('on'+tasktype, function(){return functionref.call(target, window.event)});
},
startdropdown:function(){
if (!this.domsupport)
return
this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
for (var ids=0; ids<arguments.length; ids++){
var menuitems=document.getElementById(arguments[ids]).getElementsByTagName("a")
for (var i=0; i<menuitems.length; i++){
if (menuitems[i].getAttribute("rel")){
var relvalue=menuitems[i].getAttribute("rel")
var asscdropdownmenu=document.getElementById(relvalue)
this.addEvent(asscdropdownmenu, function(){cssdropdown.clearhidemenu()}, "mouseover")
this.addEvent(asscdropdownmenu, function(e){cssdropdown.dynamichide(this, e)}, "mouseout")
this.addEvent(asscdropdownmenu, function(){cssdropdown.delayhidemenu()}, "click")
try{
menuitems[i].innerHTML=menuitems[i].innerHTML+" "+this.dropdownindicator
}catch(e){}
this.addEvent(menuitems[i], function(e){
if (!cssdropdown.isContained(this, e)){
var evtobj=window.event || e
cssdropdown.dropit(this, evtobj, this.getAttribute("rel"))
}
}, "mouseover")
this.addEvent(menuitems[i], function(e){cssdropdown.dynamichide(this, e)}, "mouseout")
this.addEvent(menuitems[i], function(){cssdropdown.delayhidemenu()}, "click")
}
}
}
if (this.enableiframeshim && document.all && !window.XDomainRequest && !this.iframeshimadded){
document.write('<IFRAME id="iframeshim" src="about:blank" frameBorder="0" scrolling="no" style="left:0; top:0; position:absolute; display:none;z-index:90; background: transparent;"></IFRAME>')
this.shimobject=document.getElementById("iframeshim")
this.shimobject.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)'
this.iframeshimadded=true
}
}
}]]></script>
</head>
</xsl:template>
</xsl:stylesheet>