phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/inc class.historylog.inc.php


From: Dave Hall
Subject: [Phpgroupware-cvs] phpgwapi/inc class.historylog.inc.php
Date: Thu, 28 Dec 2006 10:23:20 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Dave Hall <skwashd>     06/12/28 10:23:20

Modified files:
        inc            : class.historylog.inc.php 

Log message:
        notice and move more to CSS

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.historylog.inc.php?cvsroot=phpgwapi&r1=1.15&r2=1.16

Patches:
Index: class.historylog.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.historylog.inc.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- class.historylog.inc.php    14 Oct 2006 05:41:56 -0000      1.15
+++ class.historylog.inc.php    28 Dec 2006 10:23:20 -0000      1.16
@@ -6,7 +6,7 @@
        * @license http://www.fsf.org/licenses/lgpl.html GNU Lesser General 
Public License
        * @package phpgwapi
        * @subpackage application
-       * @version $Id: class.historylog.inc.php,v 1.15 2006/10/14 05:41:56 
skwashd Exp $
+       * @version $Id: class.historylog.inc.php,v 1.16 2006/12/28 10:23:20 
skwashd Exp $
        */
 
        /**
@@ -136,7 +136,6 @@
                        $this->template->set_var('lang_action',lang('Action'));
                        $this->template->set_var('lang_new_value',lang('New 
Value'));
 
-                       
$this->template->set_var('th_bg',$GLOBALS['phpgw_info']['theme']['th_bg']);
                        $this->template->set_var('sort_date',lang('Date'));
                        $this->template->set_var('sort_owner',lang('User'));
                        $this->template->set_var('sort_status',lang('Status'));
@@ -144,18 +143,19 @@
                        $this->template->set_var('sort_old_value',lang('Old 
value'));
 
                        $values = 
$this->return_array($filter_out,array(),$orderby,$sort,$record_id);
+                       echo '<pre>' . print_r($values, true). '</pre>';
 
                        if (! is_array($values))
                        {
-                               
$this->template->set_var('tr_color',$GLOBALS['phpgw_info']['theme']['row_off']);
                                
$this->template->set_var('lang_no_history',lang('No history for this record'));
                                $this->template->fp('rows','row_no_history');
                                return $this->template->fp('out','list');
                        }
 
-                       while (list(,$value) = each($values))
+                       $i = 0;
+                       foreach ( $values as $value )
                        {
-                               
$this->nextmatchs->template_alternate_row_color($this->template);
+                               $this->template->set_var('tr_class', 
$this->nextmatchs->alternate_row_class($i));
 
                                
$this->template->set_var('row_date',$GLOBALS['phpgw']->common->show_date($value['datetime']));
                                
$this->template->set_var('row_owner',$value['owner']);




reply via email to

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