phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/templates/base location.xsl,1.3


From: sigurdne
Subject: [Phpgroupware-cvs] property/templates/base location.xsl,1.3
Date: Wed, 18 May 2005 18:05:00 +0200

Update of property/templates/base

Modified Files:
     Branch: MAIN
            location.xsl lines: +107 -1

Log Message:
History for locations

====================================================
Index: property/templates/base/location.xsl
diff -u property/templates/base/location.xsl:1.2 
property/templates/base/location.xsl:1.3
--- property/templates/base/location.xsl:1.2    Thu Apr 14 14:49:39 2005
+++ property/templates/base/location.xsl        Wed May 18 16:05:54 2005
@@ -244,6 +244,24 @@
                        </xsl:choose>
                        <xsl:variable name="form_action"><xsl:value-of 
select="form_action"/></xsl:variable>
                        <form method="post" name="form" action="{$form_action}">
+
+                       <xsl:choose>
+                               <xsl:when test="change_type_list != ''">
+                                       <tr>
+                                               <td valign="top">
+                                                       <xsl:value-of 
select="lang_change_type"/>
+                                               </td>
+                                               <td valign="top">
+                                                       <xsl:variable 
name="lang_change_type_statustext"><xsl:value-of 
select="lang_change_type_statustext"/></xsl:variable>
+                                                       <select 
name="change_type" class="forms" 
onMouseover="window.status='{$lang_change_type_statustext}'; return true;" 
onMouseout="window.status='';return true;">
+                                                               <option 
value=""><xsl:value-of select="lang_no_change_type"/></option>
+                                                               
<xsl:apply-templates select="change_type_list"/>
+                                                       </select>
+                                               </td>
+                                       </tr>
+                               </xsl:when>
+                       </xsl:choose>
+
                        <xsl:choose>
                                <xsl:when test="lookup_type='form'">
                                        <xsl:call-template 
name="location_form"/>
@@ -418,7 +436,22 @@
                                                </xsl:attribute>
                                        </input>
                                </td>
+                       <xsl:choose>
+                               <xsl:when test="check_history != ''">
+                               <td>
+                                       <xsl:variable 
name="lang_history"><xsl:value-of select="lang_history"/></xsl:variable>
+                                       <input type="submit" name="get_history" 
value="{$lang_history}" onMouseout="window.status='';return true;">
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                               <xsl:value-of 
select="lang_history_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                       </input>
+                               </td>
+                               </xsl:when>
+                       </xsl:choose>
                        </tr>
+
                        </form>
                        <tr>
                                <td>
@@ -436,6 +469,12 @@
                                </td>
                        </tr>
                </table>
+
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                               <xsl:call-template name="table_header_history"/>
+                               <xsl:call-template name="values_history"/>
+               </table>
+
                </div>

        </xsl:template>
@@ -735,3 +774,70 @@
        </xsl:template>


+<!-- change_type_list -->
+
+       <xsl:template match="change_type_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="table_header_history">
+                       <tr class="th">
+                               <xsl:for-each select="table_header" >
+                                       <td class="th_text" width="{with}" 
align="{align}">
+                                               <xsl:choose>
+                                                       <xsl:when 
test="sort_link!=''">
+                                                               <a 
href="{sort}" onMouseover="window.status='{header}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of select="header"/></a>
+                                                       </xsl:when>
+                                                       <xsl:otherwise>
+                                                               <xsl:value-of 
select="header"/>
+                                                       </xsl:otherwise>
+                                               </xsl:choose>
+                                       </td>
+                               </xsl:for-each>
+                       </tr>
+       </xsl:template>
+
+       <xsl:template name="values_history">
+               <xsl:for-each select="values" >
+                       <tr>
+                       <xsl:attribute name="class">
+                               <xsl:choose>
+                                       <xsl:when test="@class">
+                                               <xsl:value-of select="@class"/>
+                                       </xsl:when>
+                                       <xsl:when test="position() mod 2 = 0">
+                                               <xsl:text>row_off</xsl:text>
+                                       </xsl:when>
+                                       <xsl:otherwise>
+                                               <xsl:text>row_on</xsl:text>
+                                       </xsl:otherwise>
+                               </xsl:choose>
+                       </xsl:attribute>
+                               <xsl:for-each select="row" >
+                                       <xsl:choose>
+                                               <xsl:when test="link">
+                                                       <td class="small_text" 
align="center">
+                                                               <a 
href="{link}" onMouseover="window.status='{statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of select="text"/></a>
+                                                       </td>
+                                               </xsl:when>
+                                               <xsl:otherwise>
+                                                       <td class="small_text" 
align="left">
+                                                               <xsl:value-of 
select="value"/>
+                                                       </td>
+                                               </xsl:otherwise>
+                                       </xsl:choose>
+                               </xsl:for-each>
+                       </tr>
+               </xsl:for-each>
+       </xsl:template>
+






reply via email to

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