phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] projects/inc/class.uiconfig.inc.php, 1.28


From: nomail
Subject: [Phpgroupware-cvs] projects/inc/class.uiconfig.inc.php, 1.28
Date: Wed, 12 May 2004 23:52:02 +0200

Update of /projects/inc
Modified Files:
        Branch: 
          class.uiconfig.inc.php

date: 2004/05/12 21:52:02;  author: ceb;  state: Exp;  lines: +21 -18

Log Message:
update
=====================================================================
Index: projects/inc/class.uiconfig.inc.php
diff -u projects/inc/class.uiconfig.inc.php:1.27 
projects/inc/class.uiconfig.inc.php:1.28
--- projects/inc/class.uiconfig.inc.php:1.27    Sun May  2 20:56:52 2004
+++ projects/inc/class.uiconfig.inc.php Wed May 12 21:52:02 2004
@@ -316,27 +316,30 @@
                        
$GLOBALS['phpgw']->template->set_var('lang_accounting',lang('accounting'));
 // -------------------------- end header declaration 
--------------------------------------
 
-                       for ($i=0;$i<count($emps);$i++)
+                       if(is_array($emps))
                        {
-                               
$this->nextmatchs->template_alternate_row_color(&$GLOBALS['phpgw']->template);
+                               for ($i=0;$i<count($emps);$i++)
+                               {
+                                       
$this->nextmatchs->template_alternate_row_color(&$GLOBALS['phpgw']->template);
 
-                               $GLOBALS['phpgw']->template->set_var(array
-                               (
-                                       'emp_name'                              
=> $emps[$i]['account_name'],
-                                       'factor'                                
=> $emps[$i]['accounting'],
-                                       'd_factor'                              
=> $emps[$i]['d_accounting'],
-                                       'sdate_formatted'               => 
$emps[$i]['sdate_formatted'],
-                                       'edate_formatted'               => 
$emps[$i]['edate_formatted'],
-                                       'delete_emp'                    => 
$GLOBALS['phpgw']->link('/index.php','menuaction=projects.uiconfig.list_employees&id='
+                                       
$GLOBALS['phpgw']->template->set_var(array
+                                       (
+                                               'emp_name'                      
        => $emps[$i]['account_name'],
+                                               'factor'                        
        => $emps[$i]['accounting'],
+                                               'd_factor'                      
        => $emps[$i]['d_accounting'],
+                                               'sdate_formatted'               
=> $emps[$i]['sdate_formatted'],
+                                               'edate_formatted'               
=> $emps[$i]['edate_formatted'],
+                                               'delete_emp'                    
=> 
$GLOBALS['phpgw']->link('/index.php','menuaction=projects.uiconfig.list_employees&id='
                                                                                
                                                        . $emps[$i]['id'] . 
'&delete=True'),
-                                       'delete_img'                    => 
$GLOBALS['phpgw']->common->image('phpgwapi','delete'),
-                                       'lang_delete_factor'    => lang('delete 
factor'),
-                                       'edit_emp'                              
=> 
$GLOBALS['phpgw']->link('/index.php','menuaction=projects.uiconfig.edit_employee_factor&id='
+                                               'delete_img'                    
=> $GLOBALS['phpgw']->common->image('phpgwapi','delete'),
+                                               'lang_delete_factor'    => 
lang('delete factor'),
+                                               'edit_emp'                      
        => 
$GLOBALS['phpgw']->link('/index.php','menuaction=projects.uiconfig.edit_employee_factor&id='
                                                                                
                                                                . 
$emps[$i]['id']),
-                                       'edit_img'                              
=> $GLOBALS['phpgw']->common->image('phpgwapi','edit'),
-                                       'lang_edit_factor'              => 
lang('edit factor')
-                               ));
-                               
$GLOBALS['phpgw']->template->fp('list','emp_list',True);
+                                               'edit_img'                      
        => $GLOBALS['phpgw']->common->image('phpgwapi','edit'),
+                                               'lang_edit_factor'              
=> lang('edit factor')
+                                       ));
+                                       
$GLOBALS['phpgw']->template->fp('list','emp_list',True);
+                               }
                        }
                        
$GLOBALS['phpgw']->template->set_var('accounting',$values['accounting']);
                        
$GLOBALS['phpgw']->template->set_var('d_accounting',$values['d_accounting']);




reply via email to

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