phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: admin/inc class.uicategories.inc.php,1.10,1.11


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: admin/inc class.uicategories.inc.php,1.10,1.11
Date: Wed, 13 Mar 2002 12:24:27 -0500

Update of /cvsroot/phpgroupware/admin/inc
In directory subversions:/tmp/cvs-serv23241/inc

Modified Files:
        class.uicategories.inc.php 
Log Message:
update

Index: class.uicategories.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/admin/inc/class.uicategories.inc.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** class.uicategories.inc.php  13 Mar 2002 17:03:49 -0000      1.10
--- class.uicategories.inc.php  13 Mar 2002 17:24:23 -0000      1.11
***************
*** 114,118 ****
                        if ($GLOBALS['appname'])
                        {
!                               
$this->template->set_var('title_categories',lang('%1 global 
categories',$GLOBALS['phpgw_info']['apps'][$GLOBALS['appname']]['title']));
                        }
                        else
--- 114,118 ----
                        if ($GLOBALS['appname'])
                        {
!                               
$this->template->set_var('title_categories',$GLOBALS['phpgw_info']['apps'][$GLOBALS['appname']]['title']
 . '&nbsp;' . lang('global categories'));
                        }
                        else
***************
*** 186,198 ****
                                
$this->template->set_var('lang_sub_entry',lang('Add sub'));
  
!                               $link_data['cat_id'] = $id;
!                               $link_data['menuaction'] = 
'admin.uicategories.edit';
!                               
$this->template->set_var('edit',$GLOBALS['phpgw']->link('/index.php',$link_data));
!                               
$this->template->set_var('lang_edit_entry',lang('Edit'));
! 
!                               $link_data['menuaction'] = 
'admin.uicategories.delete';
!                               
$this->template->set_var('delete',$GLOBALS['phpgw']->link('/index.php',$link_data));
!                               
$this->template->set_var('lang_delete_entry',lang('Delete'));
  
                                $this->template->fp('list','cat_list',True);
                        }
--- 186,220 ----
                                
$this->template->set_var('lang_sub_entry',lang('Add sub'));
  
!                               if ($GLOBALS['appname'] && 
$categories[$i]['app_name'] == $GLOBALS['appname'])
!                               {
!                                       $show_edit_del = True;
!                               }
!                               elseif(!$GLOBALS['appname'] && 
$categories[$i]['app_name'] == 'phpgw')
!                               {
!                                       $show_edit_del = True;
!                               }
!                               else
!                               {
!                                       $show_edit_del = False;
!                               }
  
+                               if ($show_edit_del)
+                               {
+                                       $link_data['cat_id'] = $id;
+                                       $link_data['menuaction'] = 
'admin.uicategories.edit';
+                                       
$this->template->set_var('edit',$GLOBALS['phpgw']->link('/index.php',$link_data));
+                                       
$this->template->set_var('lang_edit_entry',lang('Edit'));
+ 
+                                       $link_data['menuaction'] = 
'admin.uicategories.delete';
+                                       
$this->template->set_var('delete',$GLOBALS['phpgw']->link('/index.php',$link_data));
+                                       
$this->template->set_var('lang_delete_entry',lang('Delete'));
+                               }
+                               else
+                               {
+                                       $this->template->set_var('edit','');
+                                       
$this->template->set_var('lang_edit_entry','&nbsp;');
+                                       $this->template->set_var('delete','');
+                                       
$this->template->set_var('lang_delete_entry','&nbsp;');
+                               }
                                $this->template->fp('list','cat_list',True);
                        }
***************
*** 233,237 ****
                        if ($GLOBALS['appname'])
                        {
!                               
$this->template->set_var('title_categories',lang('Add global category for 
%1',$GLOBALS['phpgw_info']['apps'][$GLOBALS['appname']]['title']));
                        }
                        else
--- 255,259 ----
                        if ($GLOBALS['appname'])
                        {
!                               
$this->template->set_var('title_categories',lang('Add global category for 
x',$GLOBALS['phpgw_info']['apps'][$GLOBALS['appname']]['title']));
                        }
                        else
***************
*** 344,348 ****
                        if ($GLOBALS['appname'])
                        {
!                               
$this->template->set_var('title_categories',lang('Edit global category for 
%1',$GLOBALS['phpgw_info']['apps'][$GLOBALS['appname']]['title']));
                        }
                        else
--- 366,370 ----
                        if ($GLOBALS['appname'])
                        {
!                               
$this->template->set_var('title_categories',lang('Edit global category for 
x',$GLOBALS['phpgw_info']['apps'][$GLOBALS['appname']]['title']));
                        }
                        else




reply via email to

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