phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/templates/default/select_district.xsl, 1.2


From: nomail
Subject: [Phpgroupware-cvs] property/templates/default/select_district.xsl, 1.2
Date: Wed, 2 Jun 2004 21:10:44 +0200

Update of /property/templates/default
Added Files:
        Branch: 
          select_district.xsl

date: 2004/06/02 19:10:44;  author: sigurdne;  state: Exp;  lines: +22 -0

Log Message:
no message
=====================================================================
<!-- $Id: select_district.xsl,v 1.2 2004/06/02 19:10:44 sigurdne Exp $ -->

        <xsl:template name="select_district">
        <xsl:variable name="lang_district_statustext"><xsl:value-of 
select="lang_district_statustext"/></xsl:variable>
        <xsl:variable name="select_district_name"><xsl:value-of 
select="select_district_name"/></xsl:variable>
                <select name="{$select_district_name}" class="forms" 
onMouseover="window.status='{$lang_district_statustext}'; return true;" 
onMouseout="window.status='';return true;">
                        <option value=""><xsl:value-of 
select="lang_no_district"/></option>
                                <xsl:apply-templates select="district_list"/>
                </select>
        </xsl:template>

        <xsl:template match="district_list">
        <xsl:variable name="id"><xsl:value-of select="id"/></xsl:variable>
                <xsl:choose>
                        <xsl:when test="selected">
                                <option value="{$id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="name"/></option>
                        </xsl:when>
                        <xsl:otherwise>
                                <option value="{$id}"><xsl:value-of 
disable-output-escaping="yes" select="name"/></option>
                        </xsl:otherwise>
                </xsl:choose>
        </xsl:template>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]