phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] projects/inc/class.uiprojects.inc.php, 1.142


From: nomail
Subject: [Phpgroupware-cvs] projects/inc/class.uiprojects.inc.php, 1.142
Date: Mon, 10 May 2004 01:06:53 +0200

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

date: 2004/05/09 23:06:53;  author: ceb;  state: Exp;  lines: +24 -22

Log Message:
update
=====================================================================
Index: projects/inc/class.uiprojects.inc.php
diff -u projects/inc/class.uiprojects.inc.php:1.141 
projects/inc/class.uiprojects.inc.php:1.142
--- projects/inc/class.uiprojects.inc.php:1.141 Sun May  2 00:11:55 2004
+++ projects/inc/class.uiprojects.inc.php       Sun May  9 23:06:53 2004
@@ -1893,35 +1893,37 @@
 
                        $mstones = $this->boprojects->get_mstones($project_id);
 
-                       for($i=0;$i<count($mstones);$i++)
+                       if(is_array($mstones))
                        {
-                               
$this->nextmatchs->template_alternate_row_color(&$GLOBALS['phpgw']->template);
+                               for($i=0;$i<count($mstones);$i++)
+                               {
+                                       
$this->nextmatchs->template_alternate_row_color(&$GLOBALS['phpgw']->template);
 
-                               $link_data['s_id']                      = 
$mstones[$i]['s_id'];
-                               $link_data['edit']                      = True;
+                                       $link_data['s_id']                      
= $mstones[$i]['s_id'];
+                                       $link_data['edit']                      
= True;
 
-                               $GLOBALS['phpgw']->template->set_var(array
-                               (
-                                       'datedue'       => 
$this->boprojects->formatted_edate($mstones[$i]['edate'],True,'ms'),
-                                       'edit_url'      => 
$GLOBALS['phpgw']->link('/index.php',$link_data),
-                                       'title'         => $mstones[$i]['title']
-                               ));
-                               unset($link_data['edit']);
+                                       
$GLOBALS['phpgw']->template->set_var(array
+                                       (
+                                               'datedue'       => 
$this->boprojects->formatted_edate($mstones[$i]['edate'],True,'ms'),
+                                               'edit_url'      => 
$GLOBALS['phpgw']->link('/index.php',$link_data),
+                                               'title'         => 
$mstones[$i]['title']
+                                       ));
+                                       unset($link_data['edit']);
 
-                               if 
($this->boprojects->edit_perms(array('action' => $action,'main' => 
$pro['main'],'parent' => $pro['parent'],'type' => 'delete',
-                                                                               
                                'coordinator' => $pro['coordinator'])))
-                               {
-                                       $link_data['menuaction']        = 
'projects.uiprojects.project_mstones';
-                                       $link_data['delete']            = True;
+                                       if 
($this->boprojects->edit_perms(array('action' => $action,'main' => 
$pro['main'],'parent' => $pro['parent'],'type' => 'delete',
+                                                                               
                                        'coordinator' => $pro['coordinator'])))
+                                       {
+                                               $link_data['menuaction']        
= 'projects.uiprojects.project_mstones';
+                                               $link_data['delete']            
= True;
 
-                                       
$GLOBALS['phpgw']->template->set_var('delete_url',$GLOBALS['phpgw']->link('/index.php',$link_data));
-                                       
$GLOBALS['phpgw']->template->set_var('delete_img','<img src="' . 
$GLOBALS['phpgw']->common->image('phpgwapi','delete')
+                                               
$GLOBALS['phpgw']->template->set_var('delete_url',$GLOBALS['phpgw']->link('/index.php',$link_data));
+                                               
$GLOBALS['phpgw']->template->set_var('delete_img','<img src="' . 
$GLOBALS['phpgw']->common->image('phpgwapi','delete')
                                                                                
                                                                . '" border="0" 
title="' . lang('delete') . '">');
-                                       unset($link_data['delete']);
+                                               unset($link_data['delete']);
+                                       }
+                                       
$GLOBALS['phpgw']->template->parse('list','mstone_list',True);
                                }
-                               
$GLOBALS['phpgw']->template->parse('list','mstone_list',True);
                        }
-
                        
$GLOBALS['phpgw']->template->set_var('old_edate',$values['edate']);
                        
$GLOBALS['phpgw']->template->set_var('s_id',$values['s_id']);
                        
$GLOBALS['phpgw']->template->set_var('lang_new',lang('new milestone'));




reply via email to

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