[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/skins/default widgets.xsl, 1.1.1.1.2.11, 1.1.1.1.
From: |
Joseph Engo <address@hidden> |
Subject: |
[Phpgroupware-cvs] api/skins/default widgets.xsl, 1.1.1.1.2.11, 1.1.1.1.2.12 |
Date: |
Thu, 13 Nov 2003 20:18:23 +0000 |
Update of /cvsroot/phpgroupware/api/skins/default
In directory subversions:/tmp/cvs-serv19537/api/skins/default
Modified Files:
Tag: proposal-branch
widgets.xsl
Log Message:
- Changed how history works, its much cleanier and easier to use
(field_execmethod still needs some work to how it functions)
- History will now group changes using row_on and row_off (Note: This was a
bitch to figure out :P )
- The accounts created durring setup will create the inital entrys for an
accounts history
- If a account_id is not found by the history class, it uses "Unknown" ...
Index: widgets.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/api/skins/default/widgets.xsl,v
retrieving revision 1.1.1.1.2.11
retrieving revision 1.1.1.1.2.12
diff -C2 -d -r1.1.1.1.2.11 -r1.1.1.1.2.12
*** widgets.xsl 9 Nov 2003 18:52:14 -0000 1.1.1.1.2.11
--- widgets.xsl 13 Nov 2003 20:18:21 -0000 1.1.1.1.2.12
***************
*** 6,9 ****
--- 6,11 ----
<xsl:output indent="yes"/>
+ <xsl:key name="key_history_timestamps" match="history_data_item"
use="timestamp" />
+
<xsl:template name="widget_dialog">
</xsl:template>
***************
*** 317,322 ****
<td width="22%">Date</td>
<td width="15%">User</td>
- <td width="20%">Field</td>
<td width="10%">Action</td>
<td width="*">Old value</td>
<td width="*">New value</td>
--- 319,324 ----
<td width="22%">Date</td>
<td width="15%">User</td>
<td width="10%">Action</td>
+ <td width="20%">Field</td>
<td width="*">Old value</td>
<td width="*">New value</td>
***************
*** 335,349 ****
</xsl:if>
! <xsl:for-each
select="history_data/history_data_item">
! <tr class="sideboxtext">
! <td width="22%"><font
color="#000000"><xsl:value-of select="timestamp" /></font></td>
! <td width="15%"><font
color="#000000"><xsl:value-of select="owner" /></font></td>
! <td width="20%"><font
color="#000000"><xsl:value-of select="field" /></font></td>
! <td width="10%"><font
color="#000000"><xsl:value-of select="type" /></font></td>
! <td width="*"><font
color="#000000"><xsl:value-of select="old_value" /></font></td>
! <td width="*"><font
color="#000000"><xsl:value-of select="new_value" /></font></td>
! </tr>
! </xsl:for-each>
</table>
</td>
--- 337,381 ----
</xsl:if>
! <xsl:for-each
select="history_data/history_data_item[count(.|key('key_history_timestamps',timestamp)[1])
= 1]">
! <xsl:variable name="class">
! <xsl:choose>
! <xsl:when
test="position() mod 2 = 1">row_on</xsl:when>
!
<xsl:otherwise>row_off</xsl:otherwise>
! </xsl:choose>
! </xsl:variable>
+ <xsl:for-each
select="key('key_history_timestamps',timestamp)">
+ <tr class="{$class}">
+ <xsl:choose>
+
<xsl:when test="position() = 1">
+
<td width="22%"><font color="#000000"><xsl:value-of select="timestamp"
/></font></td>
+
</xsl:when>
+
<xsl:otherwise><td width="22%"> </td></xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+
<xsl:when test="position() = 1">
+
<td width="15%"><font color="#000000"><xsl:value-of select="owner"
/></font></td>
+
</xsl:when>
+
<xsl:otherwise><td width="15%"> </td></xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+
<xsl:when test="position() = 1">
+
<td width="10%"><font color="#000000"><xsl:value-of select="action"
/></font></td>
+
</xsl:when>
+
<xsl:otherwise><td width="10%"> </td></xsl:otherwise>
+ </xsl:choose>
+ <td
width="20%"><font color="#000000"><xsl:value-of select="field" /></font></td>
+ <xsl:choose>
+
<xsl:when test="old_value != ''">
+
<td width="*"> <font color="#000000"><xsl:value-of select="old_value"
/></font></td>
+
</xsl:when>
+
<xsl:otherwise>
+
<!-- This was done like this on purpose, or alignments get all screawed up -->
+
<td width="*"> <font class="{$class}"><xsl:value-of select="old_value"
/></font></td></xsl:otherwise>
+ </xsl:choose>
+ <td
width="*"><font color="#000000"><xsl:value-of select="new_value" /></font></td>
+ </tr>
+ </xsl:for-each>
+ </xsl:for-each>
</table>
</td>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/skins/default widgets.xsl, 1.1.1.1.2.11, 1.1.1.1.2.12,
Joseph Engo <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] api class.account_mgr.php, 1.1.2.19, 1.1.2.20 class.history.php, 1.1.2.1, 1.1.2.2 class.setup.php, 1.1.1.1.2.10, 1.1.1.1.2.11
- Next by Date:
[Phpgroupware-cvs] api/skins/default account_mgr.xsl, 1.1.2.13, 1.1.2.14
- Previous by thread:
[Phpgroupware-cvs] api class.account_mgr.php, 1.1.2.19, 1.1.2.20 class.history.php, 1.1.2.1, 1.1.2.2 class.setup.php, 1.1.1.1.2.10, 1.1.1.1.2.11
- Next by thread:
[Phpgroupware-cvs] api/skins/default account_mgr.xsl, 1.1.2.13, 1.1.2.14
- Index(es):