<?xml version="1.0" encoding="UTF-8"?> <!-- DQ 11.9.2007 Alte Feldlayouts im template feld wieder reingenommen, wg. Abwärtskomp. --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:import href="xsl_functions.xsl" /> <xsl:variable name="feldbreite_faktor">6</xsl:variable> <!-- start nur für Abwärtskompatibilität--> <xsl:template name="feld"> <xsl:param name="browser" /> <xsl:if test="y='0' and art != '13'"> <p class="umbruch"> </p> </xsl:if> <xsl:call-template name="inputfeld"> <xsl:with-param name="browser" select="$browser" /> </xsl:call-template> </xsl:template> <xsl:template name="inputfeld"> <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 > 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) > 0"> <!-- #198418 Problem bei Feldart 1 Typ SQL Beispiel Zeitraum in COB Maske Kosten und Erlöse (Primär und Sekundär) Attribut value aus default/wert key wird nicht richtig escaped vergl. https://stackoverflow.com/questions/8944513/disable-output-escaping-yes-no-not-working-amp-outputted-twice-in-sharepoint- Versuche mit <option value="{key}"> sind auch fehlgeschlagen, vermutlich weil XSTL bei Attributen keine Änderung des Escapings vorsieht https://stackoverflow.com/questions/7887016/disable-output-escaping-not-working-for-attribute-in-xslt --> <xsl:text disable-output-escaping="yes"><![CDATA[<option class="maskinput" value="]]></xsl:text><xsl:value-of disable-output-escaping="no" select="key"/><xsl:text>" </xsl:text> <xsl:if test="../../defaultwert/name=name"><xsl:text> selected="true"</xsl:text></xsl:if> <xsl:text disable-output-escaping="yes">></xsl:text> <xsl:value-of select="name"/> <xsl:text disable-output-escaping="yes"><![CDATA[</option>]]></xsl:text> </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,' ',' ') " disable-output-escaping="yes"/> </option> </xsl:for-each> </select> <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) > 1 "> <p> Stand: <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) > 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'"> <xsl:value-of select="defaultwert/name"/> </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>   </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,' ',' ') " disable-output-escaping="yes"/> </option> </xsl:for-each> </select> <xsl:if test="string-length(sichten/sicht [ @selected='true' ]/@stand) > 1 or count(sichten/sicht) > 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) > 1 "> <p> Stand: <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) > 1 "> <p>Sicht: <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) > 1 or string-length(sichten/sicht[ @selected='true' ]/@stand) > 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) > 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>  <xsl:value-of select="name"/><br /> </xsl:for-each> </xsl:when> <xsl:when test="art='18'"> </xsl:when> <xsl:when test="art='19'"> <input type="file" size="60"> <xsl:attribute name="name"><xsl:value-of select="name"/></xsl:attribute> </input> </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) > 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> <!-- end Abwärtskomp --> <!-- start V.3.5--> <xsl:template name="sx_field"> <xsl:param name="browser" /> <xsl:param name="zeilenhoehe" /> <!-- rownr-Element im Servlet gesetzt --> <!-- Abwärtskomp. im Applet: Buttonbreite=0 abfangen --> <xsl:variable name="buttonbreite"> <xsl:choose> <xsl:when test="buttonbreite=0 or buttonbreite='null'"> <xsl:value-of select="100" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="buttonbreite"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:attribute name="style"> <xsl:text>position:absolute;overflow:visible;border:none;display:inline;width:</xsl:text><xsl:value-of select="$buttonbreite+feldbreite+150"/><xsl:text>px;</xsl:text> <xsl:text>height:</xsl:text><xsl:value-of select="$zeilenhoehe"/><xsl:text>px;</xsl:text> <xsl:text>top:</xsl:text><xsl:value-of select="$zeilenhoehe * rownr"/><xsl:text>px;</xsl:text> <xsl:text>left:</xsl:text><xsl:value-of select="x*1.2"/><xsl:text>px;</xsl:text> </xsl:attribute> <!-- start Label--> <div class="sx_fieldlabel" dojoType="ContentPane" > <xsl:attribute name="style"><xsl:value-of select="concat('width:',$buttonbreite,'px; min-width:',$buttonbreite,'px')"/></xsl:attribute> <xsl:choose> <!-- start 0--> <xsl:when test="art='0' and zeilenanzahl > 1"> <div name="{concat('btn',name)}" class="sx_buttondiv"> <xsl:attribute name="onclick"><xsl:text>javascript:textareaLaden('</xsl:text><xsl:value-of select="name" /><xsl:text>','</xsl:text><![CDATA[]]><xsl:value-of select="caption_short"/><![CDATA[]]><xsl:text>');</xsl:text></xsl:attribute> <span> <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> </span> </div> </xsl:when> <!-- end 0 --> <!-- start 1,2--> <xsl:when test="(art='1' or art='2') and (@isDynamic='true' or zeilenanzahl > 1)"> <div name="{concat('btn',name)}" class="sx_buttondiv"> <xsl:attribute name="onclick"><xsl:text>javascript:maskeComboLaden(getFieldName(</xsl:text><xsl:value-of select="position()"/><xsl:text>),'</xsl:text><![CDATA[]]><xsl:value-of select="caption_short"/><![CDATA[]]><xsl:text>');</xsl:text></xsl:attribute> <span> <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> </span> </div> </xsl:when> <!-- end 1,2--> <!-- start 4,6,7,12 Sichten --> <xsl:when test="(art='4' or art='6' or art='7' or art='12') and attribut!='hidden' "> <xsl:call-template name="dojosichtBtn" /> </xsl:when> <!-- end--> <!-- start 13/15--> <xsl:when test="art = '13' or art = '15' or art = '18'"> <!--Kein Label bei versteckten Feldern und Hyperlinks--> </xsl:when> <!-- end 13/15--> <!-- start 16 auskommentiert --> <!-- <xsl:when test="art = '16'"> <div name="{concat('btn',name)}" class="sx_buttondiv"> <xsl:attribute name="onclick"><xsl:text>javascript:maskeComboLaden('</xsl:text><xsl:value-of select="name"/><xsl:text>','</xsl:text><![CDATA[]]><xsl:value-of select="caption_short"/><![CDATA[]]><xsl:text>');</xsl:text></xsl:attribute> <xsl:text>);</xsl:text> </xsl:attribute> <span> <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 != ''"> <xsl:value-of select="caption_short"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="name"/> </xsl:otherwise> </xsl:choose> </span> </div> </xsl:when> --> <!-- end 16--> <!-- start otherwise--> <xsl:otherwise> <span> <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> </span> </xsl:otherwise> <!-- end otherwise --> </xsl:choose> </div> <!-- end label--> <!-- start inputfeld --> <div dojoType="ContentPane" class="sx_inputfeld"> <!--<xsl:attribute name="style"> <xsl:text>width:</xsl:text><xsl:value-of select="feldbreite*1.2" /></xsl:attribute>--> <xsl:if test="caption_long != '' and art != '13' "> <div dojoType="tooltip" connectId="{concat('f_',tid)}" style="display:none;z-index:1000"> <!--todo: br-Tags abfangen--> <xsl:call-template name="br_to_newline"> <xsl:with-param name="string"><![CDATA[]]><xsl:value-of select="caption_long"/><![CDATA[]]></xsl:with-param> <xsl:with-param name="search"><br></xsl:with-param> <!--<xsl:with-param name="replace"><xsl:text> </xsl:text></xsl:with-param>--> </xsl:call-template> </div> </xsl:if> <xsl:choose> <!-- start art 0--> <xsl:when test="art='0'"> <xsl:if test="zeilenanzahl='1'"> <input type="text" onchange="resetValidation();"> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="obligatorisch='1'"> <xsl:text>maskinputPflicht</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>maskinput</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:attribute> <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:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template> </xsl:attribute> <xsl:attribute name="MAXLENGTH"> <xsl:value-of select="laenge"/> </xsl:attribute> <xsl:attribute name="VALUE"> <!--<xsl:choose> <xsl:when test="typ='date'"> <xsl:if test="string-length(defaultwert/name) > 0"> <xsl:value-of select="concat(substring(defaultwert/name,7,4),'-',substring(defaultwert/name,4,2),'-',substring(defaultwert/name,1,2))"/> </xsl:if> </xsl:when> <xsl:otherwise>--> <xsl:value-of select="defaultwert/name"/> <!--</xsl:otherwise> </xsl:choose>--> </xsl:attribute> <xsl:attribute name="size"> <xsl:value-of select="feldbreite div $feldbreite_faktor"/> </xsl:attribute> <xsl:if test="typ='date'"> <!-- <xsl:attribute name="dojoType"><xsl:text>dropdowndatepicker</xsl:text> </xsl:attribute> <xsl:attribute name="displayFormat"><xsl:text>dd.MM.yyyy</xsl:text> </xsl:attribute> <xsl:attribute name="saveFormat"><xsl:text>dd.MM.yyyy</xsl:text></xsl:attribute> <xsl:if test="string-length(defaultwert/name) > 0"> <xsl:attribute name="date"><xsl:value-of select="concat(substring(defaultwert/name,7,4),'-',substring(defaultwert/name,4,2),'-',substring(defaultwert/name,1,2))"/></xsl:attribute> </xsl:if>--> <a href="javascript:doNothing()"> <xsl:attribute name="onclick"><xsl:text>calDateFormat='DD.MM.yyyy';setDateField(document.forms['maske'].elements['</xsl:text><xsl:value-of select="name" /><xsl:text>']); top.newWin = window.open('/superx/dbformslib/jscal/calendar.html','cal','width=270,height=280')</xsl:text></xsl:attribute> <img src="/superx/dbformslib/jscal/calendar.svg" class="imageCalendar" border="0" alt="Kalender öffnen"></img></a> </xsl:if> </input> </xsl:if> <xsl:if test="zeilenanzahl!='1'"> <!-- <xsl:call-template name="schluesselfeld" /> <xsl:call-template name="valuelabel" /> Wegen versatz im His1 Layout Leerzeichen gelöscht--> <xsl:call-template name="schluesselfeld" /><xsl:call-template name="valuelabel" /> </xsl:if> </xsl:when> <!-- end art 0--> <!-- start art 1 oder 2 COMBO--> <xsl:when test="art='1' or art='2'"> <!--normale Combo-Box --> <!-- <xsl:call-template name="schluesselfeld" />  Wegen versatz im His1 Layout Leerzeichen gelöscht--> <xsl:call-template name="schluesselfeld" /> <xsl:choose> <!-- start combobox für zeilenzahl 1/nicht-dynamisches Feld--> <xsl:when test="zeilenanzahl=1 and @isDynamic='false'"> <!--Combobox ist nur Auswahlhilfe ausgewertet wird inhalt von Inputfeld!!--> <select > <xsl:attribute name="class"> <xsl:choose> <xsl:when test="obligatorisch='1'"> <xsl:text>maskinputPflicht</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>maskinput</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="id"><xsl:text>select_</xsl:text><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template></xsl:attribute> <xsl:attribute name="NAME"> <xsl:text>select_</xsl:text><xsl:value-of select="name"/> </xsl:attribute> <xsl:attribute name="tabindex"> <xsl:value-of select="100+(nummer*10)+2"/> </xsl:attribute> <xsl:attribute name="onchange"> <xsl:text>c=document.getElementById('</xsl:text> <xsl:text>select_</xsl:text><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template> <xsl:text>');document.getElementById('</xsl:text><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template><xsl:text>').value=c.options[c.selectedIndex].value;resetValidation();</xsl:text> </xsl:attribute> <option /> <xsl:for-each select="relation/item"> <xsl:if test="string-length(name) > 0"> <!-- #198418 Problem bei Feldart 1 Typ SQL Beispiel Zeitraum in COB Maske Kosten und Erlöse (Primär und Sekundär) Attribut value aus default/wert key wird nicht richtig escaped vergl. https://stackoverflow.com/questions/8944513/disable-output-escaping-yes-no-not-working-amp-outputted-twice-in-sharepoint- Versuche mit <option value="{key}"> sind auch fehlgeschlagen, vermutlich weil XSTL bei Attributen keine Änderung des Escapings vorsieht https://stackoverflow.com/questions/7887016/disable-output-escaping-not-working-for-attribute-in-xslt --> <xsl:text disable-output-escaping="yes"><![CDATA[<option class="maskinput" value="]]></xsl:text><xsl:value-of disable-output-escaping="no" select="key"/><xsl:text>" </xsl:text> <xsl:if test="../../defaultwert/name=name"><xsl:text> selected="true"</xsl:text></xsl:if> <xsl:text disable-output-escaping="yes">></xsl:text> <xsl:value-of select="name"/> <xsl:text disable-output-escaping="yes"><![CDATA[</option>]]></xsl:text> </xsl:if> </xsl:for-each> </select> </xsl:when> <!-- end combobox für zeilenzahl 1--> <!-- start Button and Skript für zeilenzahl größer 1 --> <xsl:otherwise> <xsl:call-template name="valuelabel" />  <!-- <script language="JavaScript"> var a=[new Option("testing","testing"), <xsl:for-each select="relation/item"> <xsl:if test="string-length(name) > 0"> <xsl:text>new Option("</xsl:text> <xsl:call-template name="escape-quote"><xsl:with-param name="string" select="name" /></xsl:call-template> <xsl:text>","</xsl:text><xsl:value-of select="key"/><xsl:text>"</xsl:text> <xsl:choose> <xsl:when test="../../defaultwert/name=name"> <xsl:text>,true,true)</xsl:text> </xsl:when> <xsl:otherwise><xsl:text>,false,false)</xsl:text></xsl:otherwise> </xsl:choose> <xsl:if test="position() != last()"><xsl:text>,</xsl:text></xsl:if> </xsl:if> </xsl:for-each> ]; </script>--> </xsl:otherwise> </xsl:choose> <!-- end Button and Skript für zeilenzahl > 1 --> </xsl:when> <!-- end art 1 --> <!-- start 8,5 Kommentar/Label--> <xsl:when test="art='8' or art='5'"> <!--label--> <xsl:value-of select="defaultwert/name"/> </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" > <xsl:attribute name="class"> <xsl:choose> <xsl:when test="obligatorisch='1'"> <xsl:text>maskinputPflicht</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>maskinput</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:attribute> <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> </input>   </xsl:when> <!-- end --> <!-- start art 11 passwort--> <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:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template> </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> </input> </xsl:if> </xsl:when> <!-- end art 11--> <!-- start 4,6,8, 12 Sicht --> <xsl:when test="art='4' or art='6' or art='7' or art='12'"> <xsl:call-template name="dojosichtValue"> </xsl:call-template> </xsl:when> <!-- end 12--> <!-- start 13 hidden--> <xsl:when test="art='13'"> <input type="hidden"> <xsl:attribute name="NAME"> <xsl:value-of select="name"/> </xsl:attribute> <xsl:attribute name="id"> <xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template> </xsl:attribute> <!-- müsste umgestellt werden, falls Feldart=sql und < > etc vorkommt 198418 --> <xsl:attribute name="VALUE"> <xsl:value-of select="defaultwert/key"/> </xsl:attribute> </input> </xsl:when> <!-- end 13 --> <!-- start 14 radiobox--> <xsl:when test="art='14'"> <input type="radio"> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="obligatorisch='1'"> <xsl:text>maskinputPflicht</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>maskinput</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:attribute> <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:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template> </xsl:attribute> <!-- müsste umgestellt werden, falls Feldart=sql und < > etc vorkommt 198418 --> <xsl:attribute name="VALUE"> <xsl:value-of select="defaultwert/name"/> </xsl:attribute> </input> </xsl:when> <!-- end 14--> <!-- start 15 links--> <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:value-of select="name"/> </a> </xsl:if> </xsl:when> <!-- end 15--> <!-- start 16 querabhängig combo ausskommentiert--> <!-- <xsl:when test="art='16'"> <xsl:call-template name="schluesselfeld" /> <xsl:call-template name="valuelabel" />  </xsl:when> --> <!-- end 16--> <xsl:when test="art='17'"> <!--Radio--> <!-- müsste umgestellt werden, falls Feldart=sql und < > etc vorkommt 198418 --> <input name="{name}" id="{name}" type="hidden" value="{defaultwert/key}" /> <xsl:for-each select="relation/item [string-length(name) > 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> <xsl:value-of select="name"/><br /> </xsl:for-each> </xsl:when> <xsl:when test="art='18'"> </xsl:when> <xsl:otherwise>Unbekannte Feldart <xsl:value-of select="art"/></xsl:otherwise> </xsl:choose> </div> </xsl:template> <!-- start dojosicht--> <xsl:template name="dojosichtBtn"> <!--Buttondiv--><div tabindex="{100+(nummer*10)}" name="{concat('btn',name)}" class="sx_buttondiv"> <xsl:attribute name="onclick"><xsl:text>javascript:maskeSichtLaden(getFieldName(</xsl:text><xsl:value-of select="position()"/><xsl:text>),'</xsl:text><![CDATA[]]><xsl:value-of select="caption_short"/><![CDATA[]]><xsl:text>',null);</xsl:text></xsl:attribute> <span> <xsl:choose> <xsl:when test="obligatorisch='1'"> <xsl:attribute name="class">labelPflicht</xsl:attribute><xsl:text>* </xsl:text></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> </span> </div> </xsl:template> <xsl:template name="dojosichtValue"> <xsl:call-template name="schluesselfeld" /> <input type="label" readonly ="true" class="sx_labelRight"> <xsl:attribute name="name"><xsl:text>label_</xsl:text> <xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template></xsl:attribute> <xsl:attribute name="id"><xsl:text>label_</xsl:text> <xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template></xsl:attribute> <xsl:attribute name="tabindex"> <xsl:value-of select="10000+(nummer*10)+2"/> </xsl:attribute> <xsl:attribute name="value"> <xsl:choose> <xsl:when test="defaultwert/key!=''"><xsl:value-of select="defaultwert/name"/></xsl:when> <!-- AK 20.08.2014 von "bitte wählen" nach "nichts gewählt" --> <xsl:otherwise> nichts gewählt </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="onClick"> <xsl:text>javascript:maskeSichtLaden(getFieldName(</xsl:text> <xsl:value-of select="position()"/><xsl:text>),'</xsl:text><![CDATA[]]> <xsl:value-of select="caption_short"/><![CDATA[]]><xsl:text>',null);</xsl:text> </xsl:attribute> </input> </xsl:template> <!-- end dojosicht --> <xsl:template name="escape-quote"> <xsl:param name="string"/> <xsl:variable name="quote"><xsl:text>"</xsl:text></xsl:variable> <xsl:choose> <xsl:when test='contains($string, $quote)'> <xsl:value-of select="substring-before($string,$quote)" /> <xsl:text>\"</xsl:text> <xsl:call-template name="escape-quote"> <xsl:with-param name="string" select="substring-after($string, $quote)" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$string" /> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="treeview"> <!--Das Treeview-Control geht davon aus, dass im sqlerg die Felder wie folgt belegt sind: col0 enthält den Volltext des Eintrags, col1 die nr bzw. key_apnr beim Organigramm col2 den parent-Knoten --> <!--zum Debuggen: <xsl:copy-of select="relation" /> --> <select> <xsl:attribute name="name"> <xsl:value-of select="name"/> </xsl:attribute> <!--Meikel muss Trennzeichen fuer Treeview noch freischalten <xsl:if test="zeilenanzahl > 1"> <xsl:attribute name="size"> <xsl:value-of select="zeilenanzahl"/> </xsl:attribute> <xsl:attribute name="multiple"> multiple </xsl:attribute> </xsl:if> --> <option class="maskinput"></option> <xsl:variable name="t_root"/> <xsl:for-each select="relation/item"> <xsl:if test="((parent='null') or (parent=''))"> <!--Zuerst wird root eingefügt, und dann alle Kinder von Root --> <option class="option_0"> <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="name"/> </option> <xsl:call-template name="suche_kinder"> <xsl:with-param name="elter" select="key"/> <!--MB--> <xsl:with-param name="ausgewaehlt" select="../../defaultwert/key"/> <xsl:with-param name="ebene" select="0"/> </xsl:call-template> </xsl:if> </xsl:for-each> </select> </xsl:template> <xsl:template name="suche_kinder"> <xsl:param name="elter"/> <xsl:param name="ausgewaehlt"/> <xsl:param name="ebene"/> <!--MB statt row hier jetzt item--> <xsl:for-each select="../item"> <xsl:sort select="name"/> <xsl:variable name="i" select="parent"/> <xsl:if test="$i=$elter"> <option> <xsl:attribute name="class"> <xsl:value-of select="concat('option_',$ebene)"/> </xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select="key"/> </xsl:attribute> <xsl:if test="$ausgewaehlt=key"> <xsl:attribute name="selected"> true </xsl:attribute> </xsl:if> <xsl:call-template name="levels"> <xsl:with-param name="ebene" select="$ebene"/> </xsl:call-template> <xsl:value-of select="name"/> </option> <xsl:call-template name="suche_kinder"> <xsl:with-param name="elter" select="key"/> <xsl:with-param name="ausgewaehlt" select="$ausgewaehlt"/> <xsl:with-param name="ebene" select="$ebene+1"/> </xsl:call-template> </xsl:if> </xsl:for-each> </xsl:template> <xsl:template name="navi_btn"> <xsl:param name="browser" /> <xsl:if test="y='0' and art != '13'"> <br style="line-height:30px" /> </xsl:if> <span id="fld" class="fld"><span id="input" class="input"> <xsl:if test="defaultwert/name != ''"> <a class="feldlink"> <xsl:attribute name="href"> <xsl:choose> <xsl:when test="starts-with(defaultwert/name,'www')"> <xsl:value-of select="concat('http://',defaultwert/name)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="defaultwert/name"/> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:value-of select="name"/> </a> </xsl:if> | </span></span> </xsl:template> <xsl:template name="get_field"> <xsl:param name="f_name" /> <xsl:for-each select="/maske/felder/feld [ name = $f_name ]"> <xsl:call-template name="feld"> <xsl:with-param name="browser" select="$useragent" /> </xsl:call-template> <!--<xsl:if test="y='0'"></tr></xsl:if>--> </xsl:for-each> </xsl:template> <!-- ################################################################ --> <xsl:template name="schluesselfeld"> <!-- #198418 Problem bei Feldart 1 Typ SQL Beispiel Zeitraum in COB Maske Kosten und Erlöse (Primär und Sekundär) Attribut value aus default/wert key wird nicht richtig escaped vergl. https://stackoverflow.com/questions/8944513/disable-output-escaping-yes-no-not-working-amp-outputted-twice-in-sharepoint- Versuche mit <option value="{key}"> sind auch fehlgeschlagen, vermutlich weil XSTL bei Attributen keine Änderung des Escapings vorsieht https://stackoverflow.com/questions/7887016/disable-output-escaping-not-working-for-attribute-in-xslt hier wichtig, wenn z.B. sql-Feld einen Defaultwert hat... Alter Code: <input class="schluesselfeld" type="text" size="15" style="display:none"> <xsl:attribute name="id"><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template></xsl:attribute> <xsl:attribute name="name"><xsl:value-of select="name"/></xsl:attribute> <xsl:attribute name="tabindex"> <xsl:value-of select="100+(nummer*10)+1"/> </xsl:attribute> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="typ='sql'">schluesselfeld_invisible</xsl:when> <xsl:otherwise>schluesselfeld</xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:if test="defaultwert/key!=''"> <xsl:attribute name="value"><xsl:value-of select="defaultwert/key"/></xsl:attribute> </xsl:if> <xsl:choose> <xsl:when test="(art=1 or art=2) and (zeilenanzahl=1 and @isDynamic='false')"> - select-box deaktivieren- <xsl:attribute name="onfocus"> <xsl:text>document.forms[0].elements['select_</xsl:text><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template><xsl:text>'].selectedIndex =-1;</xsl:text> </xsl:attribute> </xsl:when> <xsl:otherwise> - Labelfeld leeren- <xsl:attribute name="onfocus"><xsl:text>document.forms[0].elements['label_</xsl:text><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template><xsl:text>'].value ='';</xsl:text></xsl:attribute> <xsl:attribute name="onblur"><xsl:text>document.forms[0].elements['label_</xsl:text><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template><xsl:text>'].value =this.value;</xsl:text></xsl:attribute> </xsl:otherwise> </xsl:choose> </input>  Neu mit text-Workaround --> <xsl:text disable-output-escaping="yes"><![CDATA[ <input class="schluesselfeld" type="text" size="15" style="display:none" onchange="resetValidation();"]]></xsl:text> <xsl:text><![CDATA[ id="]]></xsl:text><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template><xsl:text>" </xsl:text> <xsl:text><![CDATA[ name="]]></xsl:text><xsl:value-of select="name"/><xsl:text>" </xsl:text> <xsl:text><![CDATA[ tabindex="]]></xsl:text><xsl:value-of select="100+(nummer*10)+1"/><xsl:text>" </xsl:text> <xsl:text><![CDATA[ class="]]></xsl:text> <xsl:choose> <xsl:when test="typ='sql'">schluesselfeld_invisible</xsl:when> <xsl:otherwise>schluesselfeld</xsl:otherwise> </xsl:choose> <xsl:text>" </xsl:text> <xsl:if test="defaultwert/key!=''"> <xsl:text><![CDATA[ value="]]></xsl:text><xsl:value-of select="defaultwert/key"/><xsl:text>" </xsl:text> </xsl:if> <xsl:choose> <xsl:when test="(art=1 or art=2) and (zeilenanzahl=1 and @isDynamic='false')"> <!-- select-box deaktivieren--> <xsl:text><![CDATA[ onfocus="]]></xsl:text> <xsl:text>document.forms[0].elements['select_</xsl:text><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template><xsl:text>'].selectedIndex =-1;" </xsl:text> </xsl:when> <xsl:otherwise> <!-- Labelfeld leeren--> <xsl:text><![CDATA[ onfocus="]]></xsl:text><xsl:text>document.forms[0].elements['label_</xsl:text><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template><xsl:text>'].value ='';"</xsl:text> <xsl:text><![CDATA[ onblur="]]></xsl:text><xsl:text>document.forms[0].elements['label_</xsl:text><xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template><xsl:text>'].value =this.value;" </xsl:text> </xsl:otherwise> </xsl:choose> <xsl:text disable-output-escaping="yes"><![CDATA[ </input>  ]]></xsl:text> </xsl:template> <xsl:template name="valuelabel"> <input type="label" readonly ="true" class="sx_labelRight"> <xsl:attribute name="name"><xsl:text>label_</xsl:text> <xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template></xsl:attribute> <xsl:attribute name="id"><xsl:text>label_</xsl:text> <xsl:call-template name="create_varname"><xsl:with-param name="string"><xsl:value-of select="name"/></xsl:with-param></xsl:call-template></xsl:attribute> <xsl:attribute name="tabindex"> <xsl:value-of select="10000+(nummer*10)+2"/> </xsl:attribute> <xsl:attribute name="value"> <xsl:choose> <xsl:when test="defaultwert/key!=''"><xsl:value-of select="defaultwert/name"/></xsl:when> <!-- AK 20.08.2014 von "bitte wählen" nach "nichts gewählt" --> <xsl:otherwise> nichts gewählt </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="onClick"> <xsl:text>javascript:maskeComboLaden(getFieldName(</xsl:text> <xsl:value-of select="position()" /><xsl:text>),'</xsl:text><![CDATA[]]> <xsl:value-of select="caption_short" /><![CDATA[]]><xsl:text>');</xsl:text> </xsl:attribute> </input> </xsl:template> <xsl:template name="javascript"> <script src="../xml/js/jquery/jquery-1.12.4.min.js"></script> <script> jQuery.ajaxPrefilter( function( s ) { if ( s.crossDomain ) { s.contents.script = false; } } ); </script> <script language="javascript" src="/superx/dbformslib/jscal/calendar.js"></script> <script type="text/javascript" src="/superx/xml/js/memtext/sx_functions.js"></script> <script type="text/javascript"> djConfig = { bindEncoding: "UTF-8", isDebug: false, debugAtAllCosts:false, debugContainerId:"dojoDebug" }; <xsl:call-template name="disableBackButton" /> <xsl:call-template name="jsHis1Pinger" /> </script> <script type="text/javascript" src="/superx/xml/js/dojo/dojo.js"></script> <xsl:text disable-output-escaping="yes"><![CDATA[<script type="text/javascript"> dojo.require("dojo.widget.Dialog"); dojo.require("dojo.widget.Button"); dojo.require("dojo.event.*"); dojo.require("dojo.io.*"); dojo.require("dojo.widget.*"); dojo.require("dojo.html.selection"); dojo.require("dojo.widget.ContentPane"); dojo.require("dojo.widget.TreeV3"); dojo.require("dojo.widget.TreeNodeV3"); dojo.require("dojo.widget.TreeBasicController"); dojo.require("dojo.widget.TreeSelectorV3"); dojo.require("dojo.widget.TreeEmphasizeOnSelect"); dojo.require("dojo.widget.Tooltip"); dojo.require("dojo.widget.DropdownDatePicker"); dojo.registerModulePath("memtext", "../memtext"); dojo.require("memtext.widget.MemTree"); dojo.require("memtext.widget.TreeLoadingControllerSx"); dojo.hostenv.writeIncludes(); var sichtdlg; var combodlg; var textareadlg; var lesezeichendlg; var sichtauswahl; var selector; var Feldname=null; var caption; var jsessionid=']]></xsl:text><xsl:value-of select="/maske/@jsessionid"/><xsl:text>'; var maskentid=</xsl:text><xsl:value-of select="/maske/@tid"/><xsl:text>; var maskenname='</xsl:text><xsl:value-of select="substring(/maske/@name,0,40)" /><xsl:text>'; var mandantenID='</xsl:text><xsl:value-of select="/maske/@MandantenID"/><xsl:text>'; var felder = new Array(); </xsl:text> <xsl:for-each select="maske/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>]["tid"]='</xsl:text><xsl:value-of select="tid" /><xsl:text>'; felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]["attribut"]='</xsl:text><xsl:value-of select="attribut" /><xsl:text>'; felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]["htmlname"]='</xsl:text><xsl:value-of select="name"/><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="name"/></xsl:with-param></xsl:call-template><xsl:text>'; felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]["caption_short"]='</xsl:text><xsl:call-template name="ohne_umlaut"> <xsl:with-param name="s1"><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> </xsl:with-param></xsl:call-template><xsl:text>'; felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]["art"]='</xsl:text><xsl:value-of select="art"/><xsl:text>'; felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]["zeilenanzahl"]='</xsl:text><xsl:value-of select="zeilenanzahl"/><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="name"/></xsl:with-param></xsl:call-template><xsl:text>'; felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]["obligatorisch"]='</xsl:text><xsl:value-of select="obligatorisch"/><xsl:text>'; felder[</xsl:text><xsl:value-of select="position()" /><xsl:text>]["hasDefaultDbValue"]='</xsl:text><xsl:value-of select="defaultwert/@hasDbValue"/><xsl:text>'; </xsl:text> </xsl:for-each> dojo.addOnLoad(initMaske); <xsl:text disable-output-escaping="yes"><![CDATA[</script>]]></xsl:text> <script type="text/javascript"> <![CDATA[ function getUrlVars() { var vars = {}; var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { vars[key] = value; }); return vars; } ]]> <xsl:text>function applyMerkmale(merkmale) { url=location.protocol+'//'+location.host+"/superx/servlet/SuperXmlMaske"; </xsl:text> <![CDATA[ url+="?tid=" +maskentid +"&cachingcontrol=reusemask&MandantenID="+escape(mandantenID); url += "&navi=true"; 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:"'); //alert(merkmale6) var m=purgeval(merkmale6); //alert(m); 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--> for(var i1=1;i1<= felder.length-1; i1++) { var merkmalvorhanden=false; if (document.forms['maske'].elements[felder[i1]["name"]] && document.forms['maske'].elements[felder[i1]["name"]].value!='') { for (i=0;i<m.length;i++) { if (getEncoded(m[i].n)==getEncoded(felder[i1]["htmlname"])) merkmalvorhanden=true; } if (!merkmalvorhanden) url+="&"+getEncoded(felder[i1]["htmlname"])+"="+getEncoded(document.forms['maske'].elements[felder[i1]["name"]].value); } } ]]> document.getElementById('progressbar').style.display=""; //alert(url); location.href=url; } </script> </xsl:template> <!-- end javascript--> <!-- start DOJO maskDialogs ******************************************************************************* --> <xsl:template name="maskDialogs"> <!-- start Lesezeichen DLG --> <div dojoType="dialog" id="lesezeichendlg" bgColor="darkgray" bgOpacity="0.7" toggle="fade" toggleDuration="100" closeNode="lesezeichen_abbrechen" style="z-index:1010;display:none"> <script type="text/javascript"> $(function() { $('#lesezeichenlink').click(function() { if (window.sidebar && window.sidebar.addPanel) { // Mozilla Firefox Bookmark window.sidebar.addPanel(document.title, window.location.href, ''); } else if (window.external && ('AddFavorite' in window.external)) { // IE Favorite window.external.AddFavorite(location.href, document.title); } else if (window.opera && window.print) { // Opera Hotlist this.title = document.title; return true; } //else { // webkit - safari/chrome // alert('Es öffnet sich ein neues Fenster. Drücken Sie ' + (navigator.userAgent.toLowerCase().indexOf('mac') != -1 ? 'Command/Cmd' : 'STRG') + ' + D in diesem Fenster um ein Lesezeichen hinzuzufügen.'); // } }); }); </script> <form name="lesezeichenform" onsubmit="return false;"> <h1 align="center">Lesezeichen erstellen</h1> <div id="lesezeichen_konfig"> <p>Bitte wählen Sie aus, ob die aktuelle Auswahl bei den<br/> folgenden Feldern, mit im Lesezeichen hinterlegt werden soll.</p> <div id="lesezeichen_checkboxen" style="height:250px;overflow:scroll"> </div> <table><tr><td valign="center">Dieses Lesezeichen soll</td><td><input type="radio" name="lesezeichenart" id="lesezeichen_maske" value="maske" checked="true">speziell für diese Maske gelten</input></td></tr> <tr><td></td><td><input type="radio" id="lesezeichen_vorlage" name="lesezeichenart" value="vorlage">eine Merkmalsvorlage sein (<a href="javascript:dojo.widget.byId('merkmalsvorlageinfo').show();">Was ist das?</a>)</input></td></tr> </table> </div> <div id="lesezeichenlinkdiv"> <p align="center"> Hier Ihr Lesezeichen-Link:</p> <h3 align="center"><a id="lesezeichenlink" rel="sidebar" target="_blank"></a></h3> <p align="center" id="lesezeicheninfoChrome"> Klicken Sie mit der <b><font color="red">rechten Maustaste</font></b> auf den obigen Link und wählen Sie "Adresse des Links kopieren". Dann gehen Sie ins Burgermenü zu <br/><br/><b>"Lesezeichen-Manager"</b><br/> <br/>Dann erzeugen Sie ein neues Lesezeichen, und speichern den Inhalt der Zwischenablage im Adressfeld URL.</p> <p align="center" id="lesezeicheninfoIE"> Klicken Sie mit der <b><font color="red">linken Maustaste</font></b> auf den obigen Link und wählen Sie <br/><br/><b>"Zu Favoriten hinzufügen"</b><br/> <br/></p> <p align="center" id="lesezeicheninfoFF"> Um das Lesezeichen zu erstellen, klicken Sie mit der <b><font color="#f17c00">rechten Maustaste</font></b> auf den obigen Link und wählen Sie <br/><b>"Lesezeichen hinzufügen"</b> </p> <p align="center" id="lesezeicheninfoOther"> Klicken Sie mit der linken Maustaste auf den Link, dann öffnet sich ein neues Fenster mit der Maske, die Sie dann als Lesezeichen hinzufügen können.</p> <br/><br/><br/><br/><br/><br/><br/> <p align="center"><input id="hidelesezeichen" type="button" class="clsButtonStyle" onclick="lesezeichendlg.hide();zeigeCombosIE6();" value="Dialog schließen"></input></p> </div> <p align="center"> <input type="button" class="clsButtonStyle" id="lesezeichen_abbrechen" onclick="lesezeichendlg.hide();zeigeCombosIE6();" value="Abbrechen"></input>  <input type="button" class="clsButtonStyle" id="lesezeichen_ok" onclick="prepareLesezeichenLink2();" value="OK"></input>  </p> </form> </div> <!-- end Lesezeichen DLG--> <!-- start combodlg braucht nur angezeigt werden, wenn mind 1 combobox--> <div dojoType="dialog" id="combodlg" bgColor="darkgray" bgOpacity="0.7" toggle="fade" toggleDuration="100" closeNode="ok" style="z-index:1011;display:none"> <form name="comboform" onsubmit="return false;"> <h3 id="comboElementName" align="center">Auswahl</h3> <br/> <div id="comboload" style="display:none"> <br/><br/><br/> <h3 align="center"><font color="red">Daten werden geladen</font><br/> <img src="/superx/images/progress_bar.gif"></img></h3> </div> <p align="center"> <select id="comboselect" name="comboselect"> <option value="1">1-ja</option> <option>keine Auswahl möglich</option> </select> <br/> <br/> <label id="multiselecthint">Sie können einen oder mehrere Werte auswählen (<a href="javascript:alert('Halten Sie beim Anklicken Strg gedrückt,um einzelne Elemete auszuwählen,\noder die Umschalttaste um einen ganzen Block auszuwählen');">Hinweis</a>)</label> <br/> <br/> <input type="button" class="clsButtonStyle" onclick="document.getElementById('suchok').style.display='';document.getElementById('suchselect').style.display='none';document.getElementById('suchuebernehmen').style.display='none';dojo.widget.byId('suchdlg').show();" value="Suchen"></input> <br/><br/> <input type="button" id="abbrechen" class="clsButtonStyle" onclick="combodlg.hide();zeigeCombosIE6();" value="Abbrechen"></input>  <input type="button" id="ok" class="clsButtonStyle" onclick="maskeComboauswahlUebernehmen();" value="OK"></input>      <input type="button" id="leeren" class="clsButtonStyle" onclick="document.forms['comboform'].comboselect.selectedIndex=-1;maskeComboauswahlUebernehmen();combodlg.hide()" value="Leeren"></input> </p> </form> </div> <!-- end combo --> <!-- start sicht Definition des Sichtauswahl DLGs braucht nur eingebaut werden wenn mind 1 Sichtfeld--> <div dojoType="dialog" id="sichtdlg" bgColor="darkgray" bgOpacity="0.7" toggle="fade" toggleDuration="100" closeNode="ok" style="z-index:1012;display:none"> <form name="treedlgform" onsubmit="return false;"> <center> <table align="center" cellpadding="0"> <tr><td colspan="2" class="header" id="sichtElementName" align="center">Auswahl</td></tr> <tr> <td id="sicht" class="sichtstand" align="center"><b>Sicht:</b> ausgewählte Sicht</td><td id="sichtbutton" class="sichtstand"><input class="submit_pencil" id="Sichtauswahl" type="button" value="Sichtauswahl" onclick="sichtauswahl.show()"></input></td> </tr> <tr><td id="stand" class="sichtstand" align="center"><b>Stand:</b> 1.1.2007</td><td id="standbutton" class="sichtstand"><input class="submit_pencil" id="Standauswahl" type="button" value="ändern" onclick="dojo.widget.byId('Standeingabedlg').show();"></input></td> </tr> </table> </center> <div dojoType="TreeSelectorV3" widgetId="treeSelector" allowedMulti="false" id="treeSelector" eventNames="select:nodeSelected"> <xsl:text> </xsl:text> </div> <div dojoType="TreeEmphasizeOnSelect" selector="treeSelector"></div> <div dojoType="memtext:TreeLoadingControllerSx" id="treeLoadingController" widgetId="treeLoadingController"> <xsl:attribute name="RPCUrl">/superx/servlet/SuperXmlMaske?tid=<xsl:value-of select="/maske/@tid"/></xsl:attribute> </div> <div style="height:325px;overflow:scroll"><!-- IE needs non-dojo div vor scrolling--> <div dojoType="memtext:MemTree" widgetId="selTree" id="selTree" listeners="treeLoadingController;treeSelector"> <div dojoType="TreeNodeV3" title="keine Auswahl möglich" ></div> </div> </div> <br/> <center> <label id="sichthintmulti">Sie können einen oder mehrere Einträge auswählen (<a href="javascript:alert('Halten Sie beim Anklicken Strg gedrückt, um mehrere Einträge auszuwählen.');">Hinweis</a>)</label> <p align="center"> <input type="button" class="submit" onclick="document.getElementById('suchok').style.display='';document.getElementById('suchselect').style.display='none';document.getElementById('suchuebernehmen').style.display='none';dojo.widget.byId('suchdlg').show();" value="Suchen"></input>  </p> <p align="center"> <input type="button" id="abbrechen" class="submit" onclick="sichtdlg.hide();zeigeCombosIE6();" value="Abbrechen"></input>  <input type="button" id="ok" class="submit" onclick="maskeSichtauswahlUebernehmen();" value="OK"></input>      <input type="button" id="leeren" class="submit" onclick="dojo.widget.byId('treeSelector').deselectAll();maskeSichtauswahlUebernehmen();sichtdlg.hide();" value="Leeren"></input> </p> </center> </form> </div> <div dojoType="dialog" id="sichtauswahl" bgColor="darkgray" bgOpacity="0.7" toggle="fade" toggleDuration="100" closeNode="ok" style="z-index:1014;display:none"> <h3 align="center">Sicht auswählen</h3> <form name="sichtauswahlform"> <p align="center"> <select name="sichtselect"> <option value="-999">keine Auswahl möglich</option> </select> </p> <p align="center"> <input type="button" class="clsButtonStyle" id="abbrechen2" onclick="sichtauswahl.hide()" value="Abbrechen"> </input> <input type="button" id="ok2" class="clsButtonStyle" onclick="maskeSichtAendern()" value="OK"></input> </p> </form> </div> <!-- end sicht --> <!-- start suchdlg --> <div dojoType="dialog" id="suchdlg" bgColor="darkgray" bgOpacity="0.7" toggle="fade" toggleDuration="100" style="z-index:1015;display:none"> <h3 align="center">Suche</h3> <form name="suchform" onsubmit="return false;"> <!-- theoretisch könnte man form sogar weglassen, weil gar nicht gepostet werden soll --> <p align="center"> <input type="text" id="suchtext" onkeypress="enterClicksButton('suchok',event)"></input> </p> <p align="center"> <select id="suchselect" size="10"> </select> </p> <p align="center"> <input type="button" class="clsButtonStyle" id="abbrechen" onclick="dojo.widget.byId('suchdlg').hide();" value="Abbrechen"> </input> <input type="button" id="suchok" class="clsButtonStyle" onclick="sichtEintraegeSuchen(document.getElementById('suchtext').value);" value="OK"></input> <input type="button" id="suchuebernehmen" class="clsButtonStyle" onclick="dojo.widget.byId('suchdlg').hide();combodlg.hide();sichtdlg.hide();suchauswahlUebernehmen();" value="Übernehmen"></input> </p> </form> </div> <!-- end suchdlg --> <!-- start Standeingabe Dlg --> <div dojoType="dialog" id="Standeingabedlg" bgColor="darkgray" bgOpacity="0.7" toggle="fade" toggleDuration="100" closeNode="lesezeichen_abbrechen" style="z-index:1100;display:none"> <form name="Standeingabeform" onsubmit="return false;"> <h3 align="center">Geben Sie den gewünschten Stand ein</h3> <p align="center"> <input type="text" id="gewuenschterStand" length="11" onkeypress="enterClicksButton('stand_ok',event)"></input> </p> <p align="center"> <input type="button" class="clsButtonStyle" id="stand_abbrechen" onclick="document.getElementById('gewuenschterStand').value=''; dojo.widget.byId('Standeingabedlg').hide();" value="Abbrechen"></input>  <input type="button" class="clsButtonStyle" id="stand_ok" onclick="dojo.widget.byId('Standeingabedlg').hide();maskeSichtstandAendern();" value="OK"></input>  </p> </form> </div> <!-- end standeingabe --> <!-- start images --> <div style="display:none"> <!-- IE has a bug: it reloads all dynamically resolved images, no matter, is it new Image() or CSS background. If you don't specify images like that, it will reload them every time a new node is created --> <img src="/superx/xml/js/dojo/src/widget/templates/images/TreeV3/i.gif"/> <img src="/superx/xml/js/dojo/src/widget/templates/images/TreeV3/i_half.gif"/> <img src="/superx/xml/js/dojo/src/widget/templates/images/TreeV3/expand_minus.gif"/> <img src="/superx/xml/js/dojo/src/widget/templates/images/TreeV3/expand_plus.gif"/> <img src="/superx/xml/js/dojo/src/widget/templates/images/TreeV3/expand_leaf.gif"/> <img src="/superx/xml/js/dojo/src/widget/templates/images/TreeV3/i_long.gif"/> <img src="/superx/xml/js/dojo/src/widget/templates/images/TreeV3/document.gif"/> <img src="/superx/xml/js/dojo/src/widget/templates/images/TreeV3/open.gif"/> <img src="/superx/xml/js/dojo/src/widget/templates/images/TreeV3/closed.gif"/> </div> <!-- end images --> <!-- start textareadlg--> <div dojoType="dialog" id="textareadlg" bgColor="darkgray" bgOpacity="0.7" toggle="fade" toggleDuration="100" closeNode="ok" style="display:none"> <form name="textareaform" onsubmit="return false;"> <h3 id="textareaElementName" align="center">Eingabe</h3> <br/> <p align="center"> <textarea id="textarea_fld" name="textarea_fld" rows="10" cols="30"> keine Auswahl möglich</textarea> <br/> <br/> <br/> <br/> <input type="button" id="abbrechen" class="clsButtonStyle" onclick="textareadlg.hide();zeigeCombosIE6();" value="Abbrechen"></input>  <input type="button" id="ok" class="clsButtonStyle" onclick="maskeTextareaUebernehmen();" value="OK"></input>      <input type="button" id="leeren" class="clsButtonStyle" onclick="document.forms['textareaform'].textarea_fld.value='';maskeTextareaUebernehmen();textareadlg.hide()" value="Leeren"></input> </p> </form> </div> <!-- end textareaDlg --> </xsl:template> <!-- end dojo--> </xsl:stylesheet>