phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: preferences/inc class.uicategories.inc.php,1.18,


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: preferences/inc class.uicategories.inc.php,1.18,1.19
Date: Sat, 12 Oct 2002 16:45:15 -0400

Update of /cvsroot/phpgroupware/preferences/inc
In directory subversions:/tmp/cvs-serv14719/inc

Modified Files:
        class.uicategories.inc.php 
Log Message:
update edit_cats to move the subtree with the cat if the parent changes

Index: class.uicategories.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/preferences/inc/class.uicategories.inc.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** class.uicategories.inc.php  12 Oct 2002 18:43:44 -0000      1.18
--- class.uicategories.inc.php  12 Oct 2002 20:45:12 -0000      1.19
***************
*** 219,222 ****
--- 219,223 ----
                                        {
                                                $link_data['menuaction'] = 
'preferences.uicategories.add';
+                                               $link_data['parent'] = 
$cats[$i]['cat_id'];
                                                
$GLOBALS['phpgw']->template->set_var('add_sub',$GLOBALS['phpgw']->link('/index.php',$link_data));
                                                
$GLOBALS['phpgw']->template->set_var('lang_sub_entry',lang('Add sub'));
***************
*** 251,254 ****
--- 252,256 ----
                        }
                        $link_data['menuaction'] = 
'preferences.uicategories.add';
+                       $link_data['parent'] = '';
                        
$GLOBALS['phpgw']->template->set_var('add_action',$GLOBALS['phpgw']->link('/index.php',$link_data));
                        $this->save_sessiondata($cats_app);
***************
*** 274,277 ****
--- 276,280 ----
  
                        $values         = get_var('values',array('POST'));
+                       $parent         = get_var('parent',array('GET'));
                        $cat_data       = get_var('cat_data',array('POST'));
  
***************
*** 329,333 ****
                        }
  
!                       
$GLOBALS['phpgw']->template->set_var('category_list',$this->bo->cats->formated_list('select',$type,$values['parent'],$global_cats));
                        
$GLOBALS['phpgw']->template->set_var('cat_name',$values['name']);
                        
$GLOBALS['phpgw']->template->set_var('cat_description',$values['descr']);
--- 332,344 ----
                        }
  
!                       if ($values['parent'])
!                       {
!                               $parent = $values['parent'];
!                       }
! 
!                       
$GLOBALS['phpgw']->template->set_var('category_list',$this->bo->cats->formatted_list(array('format'
     => 'select',
!                                                                               
                                                                                
                                'type'          => $type,
!                                                                               
                                                                                
                                'selected'      => $parent,
!                                                                               
                                                                                
                                'globals'       => $global_cats)));
                        
$GLOBALS['phpgw']->template->set_var('cat_name',$values['name']);
                        
$GLOBALS['phpgw']->template->set_var('cat_description',$values['descr']);
***************
*** 340,344 ****
                                for($i=0;$i<count($edata);$i++)
                                {
!                                       
$GLOBALS['phpgw']->template->set_var('td_data','<input name="cat_data[' . 
$edata[$i] . ']" size="50" value="' . $cat_data[$edata[$i]] . '">');
                                        
$GLOBALS['phpgw']->template->set_var('lang_data',lang($edata[$i]));
                                        
$GLOBALS['phpgw']->template->fp('rows','data_row',True);
--- 351,355 ----
                                for($i=0;$i<count($edata);$i++)
                                {
!                                       
$GLOBALS['phpgw']->template->set_var('td_data$categories[$i]['cat_id']$categories[$i]['cat_id']','<input
 name="cat_data[' . $edata[$i] . ']" size="50" value="' . $cat_data[$edata[$i]] 
. '">');
                                        
$GLOBALS['phpgw']->template->set_var('lang_data',lang($edata[$i]));
                                        
$GLOBALS['phpgw']->template->fp('rows','data_row',True);





reply via email to

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