phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/templates/default location.xsl, 1.22, 1.23


From: Sigurd Nes <address@hidden>
Subject: [Phpgroupware-cvs] property/templates/default location.xsl, 1.22, 1.23
Date: Fri, 14 Nov 2003 19:00:42 +0000

Update of /cvsroot/phpgroupware/property/templates/default
In directory subversions:/tmp/cvs-serv11081/templates/default

Modified Files:
        location.xsl 
Log Message:
no message

Index: location.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/property/templates/default/location.xsl,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** location.xsl        29 Sep 2003 17:53:52 -0000      1.22
--- location.xsl        14 Nov 2003 19:00:38 -0000      1.23
***************
*** 66,71 ****
  
                        </tr>
                        <tr>
!                               <td colspan="4" width="100%">
                                        <xsl:call-template name="nextmatchs"/>
                                        
--- 66,85 ----
  
                        </tr>
+ 
+                       <xsl:choose>
+                               <xsl:when test="status_eco_list!='' and 
lookup!=1">
+                                       <tr>
+                                               <td align="left">
+                                                       <xsl:call-template 
name="status_eco_filter"/>
+                                               </td>
+                                               <td align="left">
+                                                       <xsl:call-template 
name="status_drift_filter"/>
+                                               </td>
+                                       </tr>
+                               </xsl:when>
+                       </xsl:choose>
+ 
                        <tr>
!                               <td colspan="12" width="100%">
                                        <xsl:call-template name="nextmatchs"/>
                                        
***************
*** 628,630 ****
--- 642,708 ----
                        </xsl:choose>
                        </table>
+       </xsl:template>
+ 
+       <xsl:template name="status_eco_filter">
+               <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="status_eco_id" 
onChange="this.form.submit();" onMouseout="window.status='';return true;">
+                               <xsl:attribute name="onMouseover">
+                                       <xsl:text>window.status='</xsl:text>
+                                               <xsl:value-of 
select="lang_status_statustext"/>
+                                       <xsl:text>'; return true;</xsl:text>
+                               </xsl:attribute>
+                               <option value=""><xsl:value-of 
select="lang_no_eco"/></option>
+                                       <xsl:apply-templates 
select="status_eco_list"/>
+                       </select>
+                       <noscript>
+                               <xsl:text> </xsl:text>
+                               <input type="submit" name="submit" 
value="{$lang_submit}"/>
+                       </noscript>
+               </form>
+       </xsl:template>
+ 
+       <xsl:template match="status_eco_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>
+ 
+       <xsl:template name="status_drift_filter">
+               <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="status_drift_id" 
onChange="this.form.submit();" onMouseout="window.status='';return true;">
+                               <xsl:attribute name="onMouseover">
+                                       <xsl:text>window.status='</xsl:text>
+                                               <xsl:value-of 
select="lang_status_statustext"/>
+                                       <xsl:text>'; return true;</xsl:text>
+                               </xsl:attribute>
+                               <option value=""><xsl:value-of 
select="lang_no_drift"/></option>
+                                       <xsl:apply-templates 
select="status_drift_list"/>
+                       </select>
+                       <noscript>
+                               <xsl:text> </xsl:text>
+                               <input type="submit" name="submit" 
value="{$lang_submit}"/>
+                       </noscript>
+               </form>
+       </xsl:template>
+ 
+       <xsl:template match="status_drift_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]