phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/templates/base attrib_history.xsl


From: Sigurd Nes
Subject: [Phpgroupware-cvs] property/templates/base attrib_history.xsl
Date: Sun, 12 Aug 2007 21:26:35 +0000

CVSROOT:        /sources/phpgroupware
Module name:    property
Changes by:     Sigurd Nes <sigurdne>   07/08/12 21:26:35

Added files:
        templates/base : attrib_history.xsl 

Log message:
        Attribute history

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/property/templates/base/attrib_history.xsl?cvsroot=phpgroupware&rev=1.1

Patches:
Index: attrib_history.xsl
===================================================================
RCS file: attrib_history.xsl
diff -N attrib_history.xsl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ attrib_history.xsl  12 Aug 2007 21:26:35 -0000      1.1
@@ -0,0 +1,76 @@
+<!-- attrib_history -->
+       <xsl:template match="attrib_history">
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                       <xsl:choose>
+                               <xsl:when test="msgbox_data != ''">
+                                       <tr>
+                                               <td align="left" colspan="3">
+                                                       <xsl:call-template 
name="msgbox"/>
+                                               </td>
+                                       </tr>
+                               </xsl:when>
+                       </xsl:choose>
+                       <tr>
+                               <td colspan="3" width="100%">
+                                       <xsl:call-template name="nextmatchs"/>
+                               </td>
+                       </tr>
+               </table>
+               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
+                               <xsl:apply-templates select="table_header"/>
+                               <xsl:apply-templates select="values"/>
+               </table>
+       </xsl:template>
+
+       <xsl:template match="table_header">
+               <xsl:variable name="sort_time_created" 
select="sort_time_created"/>
+               <xsl:variable name="sort_value" select="sort_value"/>
+       
+                       <tr class="th">
+                               <td width="40%">
+                                       <a href="{$sort_value}" 
class="th_text"><xsl:value-of select="lang_value"/></a>
+                               </td>
+                               <td width="10%" align="center">
+                                       <a href="{$sort_time_created}" 
class="th_text"><xsl:value-of select="lang_time_created"/></a>
+                               </td>
+                               <td width="5%" align="center">
+                                       <xsl:value-of select="lang_user"/>
+                               </td>
+                               <td width="5%" align="center">
+                                       <xsl:value-of select="lang_delete"/>
+                               </td>
+                       </tr>
+       </xsl:template>
+
+       <xsl:template match="values">
+               <xsl:variable name="lang_delete_statustext"><xsl:value-of 
select="lang_delete_statustext"/></xsl:variable>
+                       <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>
+
+                               <td align="left">
+                                       <xsl:value-of select="value"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="time_created"/>
+                               </td>
+                               <td align="left">
+                                       <xsl:value-of select="user"/>
+                               </td>
+                               <td align="center">
+                                       <xsl:variable 
name="link_delete"><xsl:value-of select="link_delete"/></xsl:variable>
+                                       <a href="{$link_delete}" 
onMouseover="window.status='{$lang_delete_statustext}';return true;" 
onMouseout="window.status='';return true;"><xsl:value-of 
select="text_delete"/></a>
+                               </td>
+                       </tr>
+       </xsl:template>




reply via email to

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