egroupware_official/phpgwapi/templates/default/cat_select.xsl

23 lines
978 B
XML
Raw Normal View History

2002-09-25 06:00:53 +02:00
<!-- $Id$ -->
<xsl:template name="cat_select">
2002-10-21 00:01:21 +02:00
<xsl:variable name="lang_cat_statustext"><xsl:value-of select="lang_cat_statustext"/></xsl:variable>
<xsl:variable name="select_name"><xsl:value-of select="select_name"/></xsl:variable>
<select name="{$select_name}" class="forms" onMouseover="window.status='{$lang_cat_statustext}'; return true;" onMouseout="window.status='';return true;">
<option value=""><xsl:value-of select="lang_no_cat"/></option>
<xsl:apply-templates select="cat_list"/>
</select>
2002-09-25 06:00:53 +02:00
</xsl:template>
<xsl:template match="cat_list">
<xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
<xsl:choose>
2002-09-26 06:01:49 +02:00
<xsl:when test="selected">
2002-10-13 00:33:24 +02:00
<option value="{$id}" selected="selected"><xsl:value-of disable-output-escaping="yes" select="name"/></option>
2002-09-25 06:00:53 +02:00
</xsl:when>
<xsl:otherwise>
2002-10-13 00:33:24 +02:00
<option value="{$id}"><xsl:value-of disable-output-escaping="yes" select="name"/></option>
2002-09-25 06:00:53 +02:00
</xsl:otherwise>
</xsl:choose>
</xsl:template>