mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
added xsl for cat_select_box
This commit is contained in:
parent
4e16995d6f
commit
7093aef55a
18
phpgwapi/templates/default/cat_select.xsl
Normal file
18
phpgwapi/templates/default/cat_select.xsl
Normal file
@ -0,0 +1,18 @@
|
||||
<!-- $Id$ -->
|
||||
|
||||
<xsl:template name="cat_select">
|
||||
<option value=""><xsl:value-of select="lang_select_category"/></option>
|
||||
<xsl:apply-templates select="cat_list"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cat_list">
|
||||
<xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="selected_cat">
|
||||
<option value="{$id}" selected="selected"><xsl:value-of select="name"/></option>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<option value="{$id}"><xsl:value-of select="name"/></option>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
Loading…
Reference in New Issue
Block a user