phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] api/skins/default admin.xsl, 1.1.2.1, 1.1.2.2 phpgw.x


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] api/skins/default admin.xsl, 1.1.2.1, 1.1.2.2 phpgw.xsl, 1.1.1.1.2.22, 1.1.1.1.2.23 widgets.xsl, 1.1.1.1.2.9, 1.1.1.1.2.10
Date: Sun, 09 Nov 2003 15:47:45 +0000

Update of /cvsroot/phpgroupware/api/skins/default
In directory subversions:/tmp/cvs-serv30293/api/skins/default

Modified Files:
      Tag: proposal-branch
        admin.xsl phpgw.xsl widgets.xsl 
Log Message:
- Started working on the current users screen
  Some of the code needs to be moved to the sessions class, I will try to get 
to that later on in the day
- Kill session isn't finished


Index: widgets.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/api/skins/default/widgets.xsl,v
retrieving revision 1.1.1.1.2.9
retrieving revision 1.1.1.1.2.10
diff -C2 -d -r1.1.1.1.2.9 -r1.1.1.1.2.10
*** widgets.xsl 29 Oct 2003 11:09:27 -0000      1.1.1.1.2.9
--- widgets.xsl 9 Nov 2003 15:47:42 -0000       1.1.1.1.2.10
***************
*** 9,12 ****
--- 9,28 ----
  </xsl:template>
  
+ <xsl:template name="nextmatchs_left">
+       <xsl:param name="first_start" />
+       <xsl:param name="prev_start" />
+ 
+       <img src="{$api_image_path}/first-grey.gif" />
+       <img src="{$api_image_path}/prev-grey.gif" />
+ </xsl:template>
+ 
+ <xsl:template name="nextmatchs_right">
+       <xsl:param name="last_start" />
+       <xsl:param name="next_start" />
+ 
+       <img src="{$api_image_path}/next-grey.gif" />
+       <img src="{$api_image_path}/last-grey.gif" />
+ </xsl:template>
+ 
  <xsl:template name="widget_dialog_yesno">
        <xsl:param name="op"/>

Index: phpgw.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/api/skins/default/phpgw.xsl,v
retrieving revision 1.1.1.1.2.22
retrieving revision 1.1.1.1.2.23
diff -C2 -d -r1.1.1.1.2.22 -r1.1.1.1.2.23
*** phpgw.xsl   3 Nov 2003 17:15:50 -0000       1.1.1.1.2.22
--- phpgw.xsl   9 Nov 2003 15:47:42 -0000       1.1.1.1.2.23
***************
*** 34,43 ****
                                                                                
<xsl:choose>
                                                                                
        <xsl:when test="/PHPGW/API/form_lock = 1">
!                                                                               
                <td align="center" width="10%"><img height="60" 
border="0"><xsl:attribute name="src"><xsl:value-of select="name" 
/>/skins/<xsl:value-of select="/PHPGW/API/prefs/api.skin" 
/>/images/icon.png</xsl:attribute></img></td>                                   
                                                     </xsl:when>
                                                                                
        <xsl:otherwise>
  <td align="center" width="10%"><a 
href="{$baseurl}&amp;op={name}.base.start"><img height="60" 
border="0"><xsl:attribute name="src"><xsl:value-of select="name" 
/>/skins/<xsl:value-of select="/PHPGW/API/prefs/api.skin" 
/>/images/icon.png</xsl:attribute></img></a></td>                               
                                                     </xsl:otherwise>
                                                                                
</xsl:choose>
                                                                        
</xsl:for-each>
!                                                               <td 
width="1%">&#160;</td>
                                                        </tr>
                                                        <tr valign="top" 
bgcolor="#FFFFFF">
--- 34,44 ----
                                                                                
<xsl:choose>
                                                                                
        <xsl:when test="/PHPGW/API/form_lock = 1">
!                                                                               
                <td align="center" width="10%"><img height="60" 
border="0"><xsl:attribute name="src"><xsl:value-of select="name" 
/>/skins/<xsl:value-of select="/PHPGW/API/prefs/api.skin" 
/>/images/icon.png</xsl:attribute></img></td>
!                                                                               
        </xsl:when>
                                                                                
        <xsl:otherwise>
  <td align="center" width="10%"><a 
href="{$baseurl}&amp;op={name}.base.start"><img height="60" 
border="0"><xsl:attribute name="src"><xsl:value-of select="name" 
/>/skins/<xsl:value-of select="/PHPGW/API/prefs/api.skin" 
/>/images/icon.png</xsl:attribute></img></a></td>                               
                                                     </xsl:otherwise>
                                                                                
</xsl:choose>
                                                                        
</xsl:for-each>
!                                                               <td 
width="*">&#160;</td>
                                                        </tr>
                                                        <tr valign="top" 
bgcolor="#FFFFFF">
***************
*** 54,58 ****
                                                                                
</xsl:choose>
                                                                        
</xsl:for-each>
!                                                               <td width="1%" 
colspan="100">&#160;</td>
                                                        </tr>
                                                </table>
--- 55,59 ----
                                                                                
</xsl:choose>
                                                                        
</xsl:for-each>
!                                                               <td width="*" 
colspan="100">&#160;</td>
                                                        </tr>
                                                </table>

Index: admin.xsl
===================================================================
RCS file: /cvsroot/phpgroupware/api/skins/default/Attic/admin.xsl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** admin.xsl   24 Oct 2003 06:23:05 -0000      1.1.2.1
--- admin.xsl   9 Nov 2003 15:47:42 -0000       1.1.2.2
***************
*** 9,11 ****
--- 9,100 ----
  </xsl:template> 
  
+ <xsl:template match="APP[action_type='current_users']">
+       <br />
+       <table class="normalbox" cellSpacing="0" cellPadding="0" width="97%" 
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="*"><b>Login 
ID</b></td>
+                                               <td 
width="28%"><b>Action</b></td>
+                                               <td width="21%"><b>Login 
time</b></td>
+                                               <td width="16%"><b>IP 
Address</b></td>
+                                               <td width="10%"><b>Idle</b></td>
+                                               <td width="24">&#160;</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:for-each 
select="current_users/current_users_item">
+                                               <xsl:variable name="lid" 
select="lid" />
+                                               <xsl:variable name="sid" 
select="sid" />
+ 
+                                               <tr class="sideboxtext">
+                                                       <xsl:choose>            
                
+                                                               <xsl:when 
test="position() mod 2 = 1">
+                                                                       
<xsl:attribute name="class">row_on</xsl:attribute>
+                                                               </xsl:when>
+                                                               <xsl:otherwise>
+                                                                       
<xsl:attribute name="class">row_off</xsl:attribute>
+                                                               </xsl:otherwise>
+                                                       </xsl:choose>
+                                                       <td width="*"><font 
color="#000000"><a 
href="{$baseurl}&amp;op=api.admin.view_session_data&amp;vsid={$sid}"><xsl:value-of
 select="lid" /></a></font></td>
+                                                       <td width="28%"><font 
color="#000000"><xsl:value-of select="action" /></font></td>
+                                                       <td width="21%"><font 
color="#000000"><xsl:value-of select="login_time" /></font></td>
+                                                       <td width="16%"><font 
color="#000000"><xsl:value-of select="ip" /></font></td>
+                                                       <td width="10%"><font 
color="#000000"><xsl:value-of select="idle" /></font></td>
+                                                       <xsl:choose>
+                                                               <xsl:when 
test="$account_id = /PHPGW/API/user/id or $account_lid = 'anonymous'">
+                                                                       <td 
width="24" align="center"><img alt="Delete" title="Delete" 
src="{$api_image_path}/delete_x.png" border="0" /></td>
+                                                               </xsl:when>
+                                                               <xsl:otherwise>
+                                                                       <td 
width="24" align="center"><a 
href="{$baseurl}&amp;op=api.admin.kill_session&amp;ksid={$sid}"><img 
alt="Delete" title="Delete" src="{$api_image_path}/delete.png" border="0" 
/></a></td>
+                                                               </xsl:otherwise>
+                                                       </xsl:choose>
+                                                       </tr>
+                                       </xsl:for-each>
+                               </table>
+                       </td>
+               </tr>
+       </table>
+       <p>&#160;</p>
+ </xsl:template>
+ 
+ <xsl:template match="APP[action_type='view_session_data']">
+       <br />
+       <table class="normalbox" cellSpacing="0" cellPadding="0" width="97%" 
border="0">
+               <tr> 
+                       <td class="sideboxtitle" align="center" height="28" 
width="100%">Raw session data (Note: serialized_classes was removed)</td>
+               </tr>
+               <tr>
+                       <td class="sideboxcontent" bgColor="#efefef">
+                               <table class="sideboxtext" cellSpacing="0" 
cellPadding="0" width="100%" border="0" valign="top">
+                                       <tr class="sideboxtext">
+                                               <td><pre><xsl:value-of 
select="session_data" /></pre></td>
+                                       </tr>
+                               </table>
+                       </td>
+               </tr>
+       </table>
+       <p>&#160;</p>
+ </xsl:template>
+ 
+ <xsl:template match="APP[action_type='kill_session']">
+       <xsl:if test="count(dialog) > 0">
+       <br />  
+       <xsl:call-template name="widget_dialog_yesno">
+               <xsl:with-param name="question" select="dialog/question" />
+               <xsl:with-param name="yes_op" select="dialog/yes_op" />
+               <xsl:with-param name="no_op" select="dialog/no_op" />
+               <xsl:with-param name="inputs" 
select="dialog/current_inputs/current_inputs_item" />
+       </xsl:call-template>
+       <p>&#160;</p>
+       </xsl:if>
+ </xsl:template>
+ 
  </xsl:stylesheet>





reply via email to

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