2002-09-25 06:00:53 +02:00
|
|
|
<!-- $Id$ -->
|
|
|
|
|
|
|
|
<xsl:template name="cat_select">
|
2002-09-27 02:15:09 +02:00
|
|
|
<xsl:variable name="select_action"><xsl:value-of select="select_action"/></xsl:variable>
|
|
|
|
<xsl:variable name="lang_submit"><xsl:value-of select="lang_submit"/></xsl:variable>
|
|
|
|
<form method="post" action="{$select_action}">
|
|
|
|
<select name="cat_id" class="forms" onChange="this.form.submit();">
|
|
|
|
<option value=""><xsl:value-of select="lang_select_category"/></option>
|
|
|
|
<xsl:apply-templates select="cat_list"/>
|
|
|
|
</select>
|
|
|
|
<noscript>
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<input type="submit" class="forms" name="submit" value="{$lang_submit}"/>
|
|
|
|
</noscript>
|
|
|
|
</form>
|
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-09-25 06:00:53 +02:00
|
|
|
<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>
|