[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/templates/default/filter_member_of.xsl, 1.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] property/templates/default/filter_member_of.xsl, 1.2 |
Date: |
Wed, 2 Jun 2004 21:10:00 +0200 |
Update of /property/templates/default
Added Files:
Branch:
filter_member_of.xsl
date: 2004/06/02 19:10:00; author: sigurdne; state: Exp; lines: +34 -0
Log Message:
no message
=====================================================================
<!-- $Id: filter_member_of.xsl,v 1.2 2004/06/02 19:10:00 sigurdne Exp $ -->
<xsl:template name="filter_member_of">
<xsl:variable name="select_action"><xsl:value-of
select="select_action"/></xsl:variable>
<xsl:variable name="member_of_name"><xsl:value-of
select="member_of_name"/></xsl:variable>
<xsl:variable name="lang_submit"><xsl:value-of
select="lang_submit"/></xsl:variable>
<form method="post" action="{$select_action}">
<select name="{$member_of_name}"
onChange="this.form.submit();" onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
<xsl:value-of
select="lang_cat_statustext"/>
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
<option value=""><xsl:value-of
select="lang_no_member"/></option>
<xsl:apply-templates
select="member_of_list"/>
</select>
<noscript>
<xsl:text> </xsl:text>
<input type="submit" name="submit"
value="{$lang_submit}"/>
</noscript>
</form>
</xsl:template>
<xsl:template match="member_of_list">
<xsl:variable name="cat_id"><xsl:value-of
select="cat_id"/></xsl:variable>
<xsl:choose>
<xsl:when test="selected='selected'">
<option value="{$cat_id}"
selected="selected"><xsl:value-of disable-output-escaping="yes"
select="name"/></option>
</xsl:when>
<xsl:otherwise>
<option value="{$cat_id}"><xsl:value-of
disable-output-escaping="yes" select="name"/></option>
</xsl:otherwise>
</xsl:choose>
</xsl:template>