[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] api/skins/default account_mgr.xsl, 1.1.2.15, 1.1.2.16
From: |
Joseph Engo <address@hidden> |
Subject: |
[Phpgroupware-cvs] api/skins/default account_mgr.xsl, 1.1.2.15, 1.1.2.16 msgbox.xsl, 1.1.1.1.2.5, 1.1.1.1.2.6 |
Date: |
Sat, 15 Nov 2003 04:09:09 +0000 |
Update of /cvsroot/phpgroupware/api/skins/default
In directory subversions:/tmp/cvs-serv12408/api/skins/default
Modified Files:
Tag: proposal-branch
account_mgr.xsl msgbox.xsl
Log Message:
- Added login / logout history
Creating the XSLT for this was even more of a bitch then the normal history
ones :P
- For some ODD reason, using ##REQUIRED## in the "doc array" will make PHP run
out of memory ... need to talk to Seek3r about WTF this could be
Index: msgbox.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/api/skins/default/msgbox.xsl,v
retrieving revision 1.1.1.1.2.5
retrieving revision 1.1.1.1.2.6
diff -C2 -d -r1.1.1.1.2.5 -r1.1.1.1.2.6
*** msgbox.xsl 28 Oct 2003 05:58:42 -0000 1.1.1.1.2.5
--- msgbox.xsl 15 Nov 2003 04:09:07 -0000 1.1.1.1.2.6
***************
*** 44,47 ****
--- 44,50 ----
</tr>
<tr bgcolor="#e6e6e6">
+ <td><xsl:value-of select="file"
/>:<xsl:value-of select="line" /></td>
+ </tr>
+ <tr bgcolor="#e6e6e6">
<td align="center"><img
width="300" height="0" src="api/skins/default/images/spacer.png" alt="" /></td>
</tr>
Index: account_mgr.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/api/skins/default/Attic/account_mgr.xsl,v
retrieving revision 1.1.2.15
retrieving revision 1.1.2.16
diff -C2 -d -r1.1.2.15 -r1.1.2.16
*** account_mgr.xsl 14 Nov 2003 08:23:59 -0000 1.1.2.15
--- account_mgr.xsl 15 Nov 2003 04:09:07 -0000 1.1.2.16
***************
*** 1,8 ****
<?xml version="1.0"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
- <xsl:output indent="yes"/>
<!-- $Id$ -->
<!-- $Source$ -->
<xsl:template match="APP[action_type='accounts']">
<br />
--- 1,10 ----
<?xml version="1.0"?>
<!-- $Id$ -->
<!-- $Source$ -->
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
+ <xsl:output indent="yes"/>
+ <xsl:key name="key_login_history" match="history_data_item"
use="concat(field, ':', new_value)" />
+
<xsl:template match="APP[action_type='accounts']">
<br />
***************
*** 248,252 ****
<tr>
<td
vAlign="top" align="center"><font color="#ff9933">*</font></td>
! <td
width="100%" height="20" align="left" vAlign="top"><a
href="{$baseurl}&op=api.base.history&location=api.login.{id}">View
login history</a></td>
</tr>
<tr>
--- 250,254 ----
<tr>
<td
vAlign="top" align="center"><font color="#ff9933">*</font></td>
! <td
width="100%" height="20" align="left" vAlign="top"><a
href="{$baseurl}&op=api.account_mgr.login_history&account_id={id}">View
login history</a></td>
</tr>
<tr>
***************
*** 331,334 ****
--- 333,398 ----
<p> </p>
</xsl:if>
+ </xsl:template>
+
+ <xsl:template match="APP[action_type='login_history']">
+ <br />
+ <table class="normalbox" cellSpacing="1" cellPadding="0" width="95%"
border="0">
+ <tr>
+ <td class="sideboxtitle" align="center" height="28"
width="100%">
+
+ <table border="0" width="100%" cellspacing="0"
cellpadding="0" class="normalbox_title">
+ <tr>
+ <td width="22%">Date</td>
+ <td width="10%">Action</td>
+ <td width="*">IP Address</td>
+ <td width="*">Session ID</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td class="sideboxcontent" bgColor="#efefef">
+ <table class="sideboxtext" cellSpacing="0"
cellPadding="0" width="100%" border="0" valign="top">
+
+ <xsl:if
test="count(history_data/history_data_item) = 0">
+ <tr class="sideboxtext">
+ <td colspan="6"
align="center"><font color="#000000">History for this record not
found</font></td>
+ </tr>
+ </xsl:if>
+
+ <xsl:for-each
select="history_data/history_data_item[count(.|key('key_login_history',concat(field,
':', new_value))[1]) = 1 and field='sessionid']">
+ <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_login_history',concat(field, ':', new_value))">
+ <xsl:sort
select="timestamp" order="descending" />
+ <xsl:variable
name="field" select="field" />
+ <xsl:variable
name="timestamp" select="timestamp" />
+ <xsl:variable
name="new_value" select="new_value" />
+ <xsl:variable
name="action" select="action" />
+
+ <tr class="{$class}">
+ <td
width="22%"><font color="#000000"><xsl:value-of select="timestamp"
/></font></td>
+ <td
width="10%"><font color="#000000"><xsl:value-of select="action" /></font></td>
+
+ <xsl:for-each
select="/PHPGW/APP/history_data/history_data_item">
+ <xsl:if
test="field='IP Address' and timestamp=$timestamp and $action=$action">
+
<td width="*"><font color="#000000"><xsl:value-of select="new_value"
/></font></td>
+
</xsl:if>
+ </xsl:for-each>
+
+ <td
width="*"><font color="#000000"><xsl:value-of select="new_value" /></font></td>
+ </tr>
+ </xsl:for-each>
+ </xsl:for-each>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <p> </p>
</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] api/skins/default account_mgr.xsl, 1.1.2.15, 1.1.2.16 msgbox.xsl, 1.1.1.1.2.5, 1.1.1.1.2.6,
Joseph Engo <address@hidden> <=