phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] admin/templates/base custom.xsl select_location...


From: Sigurd Nes
Subject: [Phpgroupware-cvs] admin/templates/base custom.xsl select_location...
Date: Mon, 09 Oct 2006 11:50:34 +0000

CVSROOT:        /sources/phpgroupware
Module name:    admin
Changes by:     Sigurd Nes <sigurdne>   06/10/09 11:50:34

Modified files:
        templates/base : custom.xsl 
Added files:
        templates/base : select_location.xsl 

Log message:
        Select location within apps

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/admin/templates/base/custom.xsl?cvsroot=phpgroupware&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/admin/templates/base/select_location.xsl?cvsroot=phpgroupware&rev=1.1

Patches:
Index: custom.xsl
===================================================================
RCS file: /sources/phpgroupware/admin/templates/base/custom.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- custom.xsl  3 Apr 2006 19:18:41 -0000       1.2
+++ custom.xsl  9 Oct 2006 11:50:34 -0000       1.3
@@ -1,4 +1,4 @@
-<!-- $Id: custom.xsl,v 1.2 2006/04/03 19:18:41 sigurdne Exp $ -->
+<!-- $Id: custom.xsl,v 1.3 2006/10/09 11:50:34 sigurdne Exp $ -->
 
        <xsl:template name="custom">
                <xsl:choose>
@@ -207,8 +207,8 @@
                                <td class="th_text" align="left">
                                        <xsl:value-of select="lang_location"/>
                                </td>
-                               <td class="th_text" align="left">
-                                       <xsl:value-of select="location"/>
+                               <td align="left">
+                                       <xsl:call-template 
name="select_location"/>
                                </td>
                        </tr>
                        <xsl:choose>

Index: select_location.xsl
===================================================================
RCS file: select_location.xsl
diff -N select_location.xsl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ select_location.xsl 9 Oct 2006 11:50:34 -0000       1.1
@@ -0,0 +1,24 @@
+<!-- $Id: select_location.xsl,v 1.1 2006/10/09 11:50:34 sigurdne Exp $ -->
+       <xsl:template name="select_location">
+               <xsl:variable name="select_name_location"><xsl:value-of 
select="select_name_location"/></xsl:variable>
+                       <select name="{$select_name_location}" 
onMouseout="window.status='';return true;">
+                               <xsl:attribute name="onMouseover">
+                                       <xsl:text>window.status='</xsl:text>
+                                               <xsl:value-of 
select="lang_location_statustext"/>
+                                       <xsl:text>'; return true;</xsl:text>
+                               </xsl:attribute>
+                               <option value=""><xsl:value-of 
select="lang_no_location"/></option>
+                                       <xsl:apply-templates 
select="location_list"/>
+                       </select>
+       </xsl:template>
+
+       <xsl:template match="location_list">
+               <xsl:choose>
+                       <xsl:when test="selected">
+                               <option value="{id}" 
selected="selected"><xsl:value-of disable-output-escaping="yes" 
select="descr"/></option>
+                       </xsl:when>
+                       <xsl:otherwise>
+                               <option value="{id}"><xsl:value-of 
disable-output-escaping="yes" select="descr"/></option>
+                       </xsl:otherwise>
+               </xsl:choose>
+       </xsl:template>




reply via email to

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