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.14,1.15


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: admin/inc class.uicategories.inc.php,1.14,1.15
Date: Sat, 01 Jun 2002 10:40:32 -0400

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

Modified Files:
        class.uicategories.inc.php 
Log Message:
some changes to be compatible with seek3r new template-system
output is not longer print, but 
$GLOBALS['phpgw']->template->set_var('phpgw_body',$content);

Index: class.uicategories.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/admin/inc/class.uicategories.inc.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** class.uicategories.inc.php  24 May 2002 10:38:02 -0000      1.14
--- class.uicategories.inc.php  1 Jun 2002 14:40:30 -0000       1.15
***************
*** 36,40 ****
                {
                        $this->bo                       = 
CreateObject('admin.bocategories');
-                       $this->template         = $GLOBALS['phpgw']->template;
                        $this->nextmatchs       = 
CreateObject('phpgwapi.nextmatchs');
  
--- 36,39 ----
***************
*** 79,95 ****
                function set_langs()
                {
!                       
$this->template->set_var('th_bg',$GLOBALS['phpgw_info']['theme']['th_bg']);
!                       $this->template->set_var('lang_save',lang('Save'));
!                       $this->template->set_var('lang_search',lang('Search'));
!                       $this->template->set_var('lang_sub',lang('Add sub'));
!                       $this->template->set_var('lang_edit',lang('Edit'));
!                       $this->template->set_var('lang_delete',lang('Delete'));
!                       $this->template->set_var('lang_parent',lang('Parent 
category'));
!                       $this->template->set_var('lang_none',lang('None'));
!                       $this->template->set_var('lang_name',lang('Name'));
!                       
$this->template->set_var('lang_descr',lang('Description'));
!                       $this->template->set_var('lang_add',lang('Add'));
!                       $this->template->set_var('lang_reset',lang('Clear 
Form'));
!                       $this->template->set_var('lang_done',lang('Done'));
                }
  
--- 78,94 ----
                function set_langs()
                {
!                       
$GLOBALS['phpgw']->template->set_var('th_bg',$GLOBALS['phpgw_info']['theme']['th_bg']);
!                       
$GLOBALS['phpgw']->template->set_var('lang_save',lang('Save'));
!                       
$GLOBALS['phpgw']->template->set_var('lang_search',lang('Search'));
!                       
$GLOBALS['phpgw']->template->set_var('lang_sub',lang('Add sub'));
!                       
$GLOBALS['phpgw']->template->set_var('lang_edit',lang('Edit'));
!                       
$GLOBALS['phpgw']->template->set_var('lang_delete',lang('Delete'));
!                       
$GLOBALS['phpgw']->template->set_var('lang_parent',lang('Parent category'));
!                       
$GLOBALS['phpgw']->template->set_var('lang_none',lang('None'));
!                       
$GLOBALS['phpgw']->template->set_var('lang_name',lang('Name'));
!                       
$GLOBALS['phpgw']->template->set_var('lang_descr',lang('Description'));
!                       
$GLOBALS['phpgw']->template->set_var('lang_add',lang('Add'));
!                       
$GLOBALS['phpgw']->template->set_var('lang_reset',lang('Clear Form'));
!                       
$GLOBALS['phpgw']->template->set_var('lang_done',lang('Done'));
                }
  
***************
*** 100,105 ****
                        $GLOBALS['phpgw']->common->phpgw_header();
  
!                       $this->template->set_file(array('cat_list_t' => 
'listcats.tpl'));
!                       
$this->template->set_block('cat_list_t','cat_list','list');
  
                        $this->set_langs();
--- 99,105 ----
                        $GLOBALS['phpgw']->common->phpgw_header();
  
!                       
$GLOBALS['phpgw']->template->set_file(array('cat_list_t' => 'listcats.tpl'));
!                       
$GLOBALS['phpgw']->template->set_block('cat_list_t','cat_list');
!                       
$GLOBALS['phpgw']->template->set_block('cat_list_t','cat_row');
  
                        $this->set_langs();
***************
*** 112,128 ****
                        );
  
!                       $this->template->set_var('lang_action',lang('Category 
list'));
  
                        if ($GLOBALS['appname'])
                        {
!                               
$this->template->set_var('title_categories',lang($GLOBALS['appname']) . 
'&nbsp;' . lang('global categories'));
                        }
                        else
                        {
!                               
$this->template->set_var('title_categories',lang('Global categories'));
                        }
!                       $this->template->set_var('query',$this->query);
!                       
$this->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
!                       
$this->template->set_var('doneurl',$GLOBALS['phpgw']->link('/admin/index.php'));
  
                        if(!$start)
--- 112,128 ----
                        );
  
!                       
$GLOBALS['phpgw']->template->set_var('lang_action',lang('Category list'));
  
                        if ($GLOBALS['appname'])
                        {
!                               
$GLOBALS['phpgw']->template->set_var('title_categories',lang($GLOBALS['appname'])
 . '&nbsp;' . lang('global categories'));
                        }
                        else
                        {
!                               
$GLOBALS['phpgw']->template->set_var('title_categories',lang('Global 
categories'));
                        }
!                       
$GLOBALS['phpgw']->template->set_var('query',$this->query);
!                       
$GLOBALS['phpgw']->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
!                       
$GLOBALS['phpgw']->template->set_var('doneurl',$GLOBALS['phpgw']->link('/admin/index.php'));
  
                        if(!$start)
***************
*** 140,155 ****
                        $left  = 
$this->nextmatchs->left('/index.php',$this->start,$this->bo->cats->total_records,$link_data);
                        $right = 
$this->nextmatchs->right('/index.php',$this->start,$this->bo->cats->total_records,$link_data);
!                       $this->template->set_var('left',$left);
!                       $this->template->set_var('right',$right);
  
!                       
$this->template->set_var('lang_showing',$this->nextmatchs->show_hits($this->bo->cats->total_records,$this->start));
  
!                       
$this->template->set_var('sort_name',$this->nextmatchs->show_sort_order($this->sort,'cat_name',$this->order,'/index.php',lang('Name'),$link_data));
!                       
$this->template->set_var('sort_description',$this->nextmatchs->show_sort_order($this->sort,'cat_description',$this->order,'/index.php',lang('Description'),$link_data));
  
                        for ($i=0;$i<count($categories);$i++)
                        {
                                $tr_color = 
$this->nextmatchs->alternate_row_color($tr_color);
!                               $this->template->set_var(tr_color,$tr_color);
  
                                $id = $categories[$i]['id'];
--- 140,155 ----
                        $left  = 
$this->nextmatchs->left('/index.php',$this->start,$this->bo->cats->total_records,$link_data);
                        $right = 
$this->nextmatchs->right('/index.php',$this->start,$this->bo->cats->total_records,$link_data);
!                       $GLOBALS['phpgw']->template->set_var('left',$left);
!                       $GLOBALS['phpgw']->template->set_var('right',$right);
  
!                       
$GLOBALS['phpgw']->template->set_var('lang_showing',$this->nextmatchs->show_hits($this->bo->cats->total_records,$this->start));
  
!                       
$GLOBALS['phpgw']->template->set_var('sort_name',$this->nextmatchs->show_sort_order($this->sort,'cat_name',$this->order,'/index.php',lang('Name'),$link_data));
!                       
$GLOBALS['phpgw']->template->set_var('sort_description',$this->nextmatchs->show_sort_order($this->sort,'cat_description',$this->order,'/index.php',lang('Description'),$link_data));
  
                        for ($i=0;$i<count($categories);$i++)
                        {
                                $tr_color = 
$this->nextmatchs->alternate_row_color($tr_color);
!                               
$GLOBALS['phpgw']->template->set_var(tr_color,$tr_color);
  
                                $id = $categories[$i]['id'];
***************
*** 182,186 ****
                                }
  
!                               $this->template->set_var(array
                                (
                                        'name' => $cat_name . $appendix,
--- 182,186 ----
                                }
  
!                               $GLOBALS['phpgw']->template->set_var(array
                                (
                                        'name' => $cat_name . $appendix,
***************
*** 190,195 ****
                                $link_data['menuaction'] = 
'admin.uicategories.add';
                                $link_data['cat_parent'] = $id;
!                               
$this->template->set_var('add_sub',$GLOBALS['phpgw']->link('/index.php',$link_data));
!                               
$this->template->set_var('lang_sub_entry',lang('Add sub'));
  
                                if ($GLOBALS['appname'] && 
$categories[$i]['app_name'] == $GLOBALS['appname'])
--- 190,195 ----
                                $link_data['menuaction'] = 
'admin.uicategories.add';
                                $link_data['cat_parent'] = $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'));
  
                                if ($GLOBALS['appname'] && 
$categories[$i]['app_name'] == $GLOBALS['appname'])
***************
*** 210,236 ****
                                        $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);
                        }
  
                        $link_data['menuaction'] = 'admin.uicategories.add';
                        $link_data['cat_parent'] = '';
!                       
$this->template->set_var('add_action',$GLOBALS['phpgw']->link('/index.php',$link_data));
  
                        $this->save_sessiondata();
!                       $this->template->pfp('out','cat_list_t',True);
                }
  
--- 210,236 ----
                                        $link_data['cat_id'] = $id;
                                        $link_data['menuaction'] = 
'admin.uicategories.edit';
!                                       
$GLOBALS['phpgw']->template->set_var('edit',$GLOBALS['phpgw']->link('/index.php',$link_data));
!                                       
$GLOBALS['phpgw']->template->set_var('lang_edit_entry',lang('Edit'));
  
                                        $link_data['menuaction'] = 
'admin.uicategories.delete';
!                                       
$GLOBALS['phpgw']->template->set_var('delete',$GLOBALS['phpgw']->link('/index.php',$link_data));
!                                       
$GLOBALS['phpgw']->template->set_var('lang_delete_entry',lang('Delete'));
                                }
                                else
                                {
!                                       
$GLOBALS['phpgw']->template->set_var('edit','');
!                                       
$GLOBALS['phpgw']->template->set_var('lang_edit_entry','&nbsp;');
!                                       
$GLOBALS['phpgw']->template->set_var('delete','');
!                                       
$GLOBALS['phpgw']->template->set_var('lang_delete_entry','&nbsp;');
                                }
!                               
$GLOBALS['phpgw']->template->fp('rows','cat_row',True);
                        }
  
                        $link_data['menuaction'] = 'admin.uicategories.add';
                        $link_data['cat_parent'] = '';
!                       
$GLOBALS['phpgw']->template->set_var('add_action',$GLOBALS['phpgw']->link('/index.php',$link_data));
  
                        $this->save_sessiondata();
!                       
$GLOBALS['phpgw']->template->fp('phpgw_body','cat_list',True);
                }
  
***************
*** 256,272 ****
                        $cat_description        = 
$GLOBALS['HTTP_POST_VARS']['cat_description'];
  
!                       $this->template->set_file(array('form' => 
'category_form.tpl'));
!                       $this->template->set_block('form','add','addhandle');
!                       $this->template->set_block('form','edit','edithandle');
  
!                       
$this->template->set_var('doneurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
  
                        if ($GLOBALS['appname'])
                        {
!                               
$this->template->set_var('title_categories',lang('Add global category for 
x',lang($GLOBALS['appname'])));
                        }
                        else
                        {
!                               
$this->template->set_var('title_categories',lang('Add global category'));
                        }
  
--- 256,273 ----
                        $cat_description        = 
$GLOBALS['HTTP_POST_VARS']['cat_description'];
  
!                       $GLOBALS['phpgw']->template->set_file(array('cat_form' 
=> 'category_form.tpl'));
!                       
$GLOBALS['phpgw']->template->set_block('cat_form','add');
!                       
$GLOBALS['phpgw']->template->set_block('cat_form','edit');
!                       
$GLOBALS['phpgw']->template->set_block('cat_form','form');
  
!                       
$GLOBALS['phpgw']->template->set_var('doneurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
  
                        if ($GLOBALS['appname'])
                        {
!                               
$GLOBALS['phpgw']->template->set_var('title_categories',lang('Add global 
category for x',lang($GLOBALS['appname'])));
                        }
                        else
                        {
!                               
$GLOBALS['phpgw']->template->set_var('title_categories',lang('Add global 
category'));
                        }
  
***************
*** 289,314 ****
                                if (is_array($error))
                                {
!                                       
$this->template->set_var('message',$GLOBALS['phpgw']->common->error_list($error));
                                }
                                else
                                {
                                        $this->bo->save_cat($values);
!                                       
$this->template->set_var('message',lang('Category x has been added !', 
$cat_name));
                                }
                        }
  
!                       $link_data['menuaction'] = 'admin.uicategories.add';    
                
!                       
$this->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
  
!                       
$this->template->set_var('category_list',$this->bo->formatted_list(array('select'
 => 'select','all' => 'all','cat_parent' => $cat_parent,
                                                                                
                                                                                
                'global_cats' => $global_cats)));
!                       
!                       $this->template->set_var('cat_name',$cat_name);
!                       
$this->template->set_var('cat_description',$cat_description);
! 
!                       $this->template->set_var('edithandle','');
!                       $this->template->set_var('addhandle','');
!                       $this->template->pfp('out','form');
!                       $this->template->pfp('addhandle','add');
                }
  
--- 290,313 ----
                                if (is_array($error))
                                {
!                                       
$GLOBALS['phpgw']->template->set_var('message',$GLOBALS['phpgw']->common->error_list($error));
                                }
                                else
                                {
                                        $this->bo->save_cat($values);
!                                       
$GLOBALS['phpgw']->template->set_var('message',lang('Category x has been added 
!', $cat_name));
                                }
                        }
  
!                       $link_data['menuaction'] = 'admin.uicategories.add';
!                       
$GLOBALS['phpgw']->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
  
!                       
$GLOBALS['phpgw']->template->set_var('category_list',$this->bo->formatted_list(array('select'
 => 'select','all' => 'all','cat_parent' => $cat_parent,
                                                                                
                                                                                
                'global_cats' => $global_cats)));
! 
!                       
$GLOBALS['phpgw']->template->set_var('cat_name',$cat_name);
!                       
$GLOBALS['phpgw']->template->set_var('cat_description',$cat_description);
! 
!                       $GLOBALS['phpgw']->template->parse('buttons','add');
!                       $GLOBALS['phpgw']->template->fp('phpgw_body','form');
                }
  
***************
*** 339,349 ****
                        $cat_description        = 
$GLOBALS['HTTP_POST_VARS']['cat_description'];
  
!                       $this->template->set_file(array('form' => 
'category_form.tpl'));
!                       $this->template->set_block('form','add','addhandle');
!                       $this->template->set_block('form','edit','edithandle');
  
                        $hidden_vars = '<input type="hidden" name="cat_id" 
value="' . $this->cat_id . '">' . "\n";
!                       $this->template->set_var('hidden_vars',$hidden_vars);
!                       
$this->template->set_var('doneurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
  
                        if ($new_parent)
--- 338,350 ----
                        $cat_description        = 
$GLOBALS['HTTP_POST_VARS']['cat_description'];
  
!                       $GLOBALS['phpgw']->template->set_file(array('cat_form' 
=> 'category_form.tpl'));
!                       
$GLOBALS['phpgw']->template->set_block('cat_form','add');
!                       
$GLOBALS['phpgw']->template->set_block('cat_form','edit');
!                       
$GLOBALS['phpgw']->template->set_block('cat_form','form');
! 
  
                        $hidden_vars = '<input type="hidden" name="cat_id" 
value="' . $this->cat_id . '">' . "\n";
!                       
$GLOBALS['phpgw']->template->set_var('hidden_vars',$hidden_vars);
!                       
$GLOBALS['phpgw']->template->set_var('doneurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
  
                        if ($new_parent)
***************
*** 366,375 ****
                                if (is_array($error))
                                {
!                                       
$this->template->set_var('message',$GLOBALS['phpgw']->common->error_list($error));
                                }
                                else
                                {
                                        $this->bo->save_cat($values);
!                                       
$this->template->set_var('message',lang('Category x has been updated 
!',$cat_name));
                                }
                        }
--- 367,376 ----
                                if (is_array($error))
                                {
!                                       
$GLOBALS['phpgw']->template->set_var('message',$GLOBALS['phpgw']->common->error_list($error));
                                }
                                else
                                {
                                        $this->bo->save_cat($values);
!                                       
$GLOBALS['phpgw']->template->set_var('message',lang('Category x has been 
updated !',$cat_name));
                                }
                        }
***************
*** 379,404 ****
                        if ($GLOBALS['appname'])
                        {
!                               
$this->template->set_var('title_categories',lang('Edit global category for 
x',lang($GLOBALS['appname'])));
                        }
                        else
                        {
!                               
$this->template->set_var('title_categories',lang('Edit global category'));
                        }
  
!                       $link_data['menuaction']        = 
'admin.uicategories.edit'; 
!                       $link_data['cat_id']            = $this->cat_id; 
!                       
$this->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
!                       $link_data['menuaction']        = 
'admin.uicategories.delete'; 
!                       
$this->template->set_var('deleteurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
! 
!                       
$this->template->set_var('cat_name',$GLOBALS['phpgw']->strip_html($cats[0]['name']));
!                       
$this->template->set_var('cat_description',$GLOBALS['phpgw']->strip_html($cats[0]['description']));
!                       
$this->template->set_var('category_list',$this->bo->formatted_list(array('select'
 => 'select','all' => 'all','cat_parent' => $cats[0]['parent'],
                                                                                
                                                                                
        'global_cats' => $global_cats)));
  
!                       $this->template->set_var('edithandle','');
!                       $this->template->set_var('addhandle','');
!                       $this->template->pfp('out','form');
!                       $this->template->pfp('edithandle','edit');
                }
  
--- 380,403 ----
                        if ($GLOBALS['appname'])
                        {
!                               
$GLOBALS['phpgw']->template->set_var('title_categories',lang('Edit global 
category for x',lang($GLOBALS['appname'])));
                        }
                        else
                        {
!                               
$GLOBALS['phpgw']->template->set_var('title_categories',lang('Edit global 
category'));
                        }
  
!                       $link_data['menuaction']        = 
'admin.uicategories.edit';
!                       $link_data['cat_id']            = $this->cat_id;
!                       
$GLOBALS['phpgw']->template->set_var('actionurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
!                       $link_data['menuaction']        = 
'admin.uicategories.delete';
!                       
$GLOBALS['phpgw']->template->set_var('deleteurl',$GLOBALS['phpgw']->link('/index.php',$link_data));
! 
!                       
$GLOBALS['phpgw']->template->set_var('cat_name',$GLOBALS['phpgw']->strip_html($cats[0]['name']));
!                       
$GLOBALS['phpgw']->template->set_var('cat_description',$GLOBALS['phpgw']->strip_html($cats[0]['description']));
!                       
$GLOBALS['phpgw']->template->set_var('category_list',$this->bo->formatted_list(array('select'
 => 'select','all' => 'all','cat_parent' => $cats[0]['parent'],
                                                                                
                                                                                
        'global_cats' => $global_cats)));
  
!                       $GLOBALS['phpgw']->template->parse('buttons','edit');
!                       $GLOBALS['phpgw']->template->fp('phpgw_body','form');
                }
  
***************
*** 406,410 ****
                {
                        $global_cats = 
$GLOBALS['HTTP_POST_VARS']['global_cats'] ? 
$GLOBALS['HTTP_POST_VARS']['global_cats'] : 
$GLOBALS['HTTP_GET_VARS']['global_cats'];
!       
                        $link_data = array
                        (
--- 405,409 ----
                {
                        $global_cats = 
$GLOBALS['HTTP_POST_VARS']['global_cats'] ? 
$GLOBALS['HTTP_POST_VARS']['global_cats'] : 
$GLOBALS['HTTP_GET_VARS']['global_cats'];
! 
                        $link_data = array
                        (
***************
*** 433,439 ****
                        else
                        {
!                               
$this->template->set_file(array('category_delete' => 'delete_cat.tpl'));
!                               
$this->template->set_block('category_delete','delete','deletehandle');
!                               
$this->template->set_block('category_delete','done','donehandle');
  
                                $nolink = 
$GLOBALS['phpgw']->link('/index.php',$link_data);
--- 432,436 ----
                        else
                        {
!                               
$GLOBALS['phpgw']->template->set_file(array('category_delete' => 
'delete_cat.tpl'));
  
                                $nolink = 
$GLOBALS['phpgw']->link('/index.php',$link_data);
***************
*** 449,470 ****
  
                                $hidden_vars = '<input type="hidden" 
name="cat_id" value="' . $this->cat_id . '">' . "\n";
!                               
$this->template->set_var('hidden_vars',$hidden_vars);
  
                                if ($apps_cats)
                                {
!                                       
$this->template->set_var('messages',lang('This category is currently being used 
by applications as a parent category') . '<br>'
                                                . lang('You will need to remove 
the subcategories before you can delete this category'));
  
!                                       
$this->template->set_var('lang_subs','');
!                                       $this->template->set_var('subs','');
!                                       
$this->template->set_var('nolink',$nolink);
!                                       
$this->template->set_var('deletehandle','');
!                                       
$this->template->set_var('donehandle','');
!                                       
$this->template->pfp('out','category_delete');
!                                       
$this->template->pfp('donehandle','done');
                                }
                                else
                                {
!                                       
$this->template->set_var('messages',lang('Are you sure you want to delete this 
category ?'));
  
                                        $exists = $this->bo->exists(array
--- 446,467 ----
  
                                $hidden_vars = '<input type="hidden" 
name="cat_id" value="' . $this->cat_id . '">' . "\n";
!                               
$GLOBALS['phpgw']->template->set_var('hidden_vars',$hidden_vars);
  
                                if ($apps_cats)
                                {
!                                       
$GLOBALS['phpgw']->template->set_var('messages',lang('This category is 
currently being used by applications as a parent category') . '<br>'
                                                . lang('You will need to remove 
the subcategories before you can delete this category'));
  
!                                       
$GLOBALS['phpgw']->template->set_var('lang_subs','');
!                                       
$GLOBALS['phpgw']->template->set_var('subs','');
!                                       
$GLOBALS['phpgw']->template->set_var('nolink',$nolink);
!                                       
$GLOBALS['phpgw']->template->set_var('deletehandle','');
!                                       
$GLOBALS['phpgw']->template->set_var('donehandle','');
!                                       
$GLOBALS['phpgw']->template->pfp('out','category_delete');
!                                       
$GLOBALS['phpgw']->template->pfp('donehandle','done');
                                }
                                else
                                {
!                                       
$GLOBALS['phpgw']->template->set_var('messages',lang('Are you sure you want to 
delete this category ?'));
  
                                        $exists = $this->bo->exists(array
***************
*** 477,500 ****
                                        if ($exists)
                                        {
!                                               
$this->template->set_var('lang_subs',lang('Do you also want to delete all 
global subcategories ?'));
!                                               
$this->template->set_var('subs','<input type="checkbox" name="subs" 
value="True">');
                                        }
                                        else
                                        {
!                                               
$this->template->set_var('lang_subs','');
!                                               
$this->template->set_var('subs', '');
                                        }
  
!                                       
$this->template->set_var('nolink',$nolink);
!                                       
$this->template->set_var('lang_no',lang('No'));
  
                                        $link_data['menuaction'] = 
'admin.uicategories.delete';
                                        $link_data['cat_id'] = $this->cat_id;
!                                       
$this->template->set_var('action_url',$GLOBALS['phpgw']->link('/index.php',$link_data));
!                                       
$this->template->set_var('lang_yes',lang('Yes'));
!                                       
$this->template->set_var('deletehandle','');
!                                       
$this->template->set_var('donehandle','');
!                                       
$this->template->pfp('out','category_delete');
!                                       
$this->template->pfp('deletehandle','delete');
                                }
                        }
--- 474,495 ----
                                        if ($exists)
                                        {
!                                               
$GLOBALS['phpgw']->template->set_var('lang_subs',lang('Do you also want to 
delete all global subcategories ?'));
!                                               
$GLOBALS['phpgw']->template->set_var('subs','<input type="checkbox" name="subs" 
value="True">');
                                        }
                                        else
                                        {
!                                               
$GLOBALS['phpgw']->template->set_var('lang_subs','');
!                                               
$GLOBALS['phpgw']->template->set_var('subs', '');
                                        }
  
!                                       
$GLOBALS['phpgw']->template->set_var('nolink',$nolink);
!                                       
$GLOBALS['phpgw']->template->set_var('lang_no',lang('No'));
  
                                        $link_data['menuaction'] = 
'admin.uicategories.delete';
                                        $link_data['cat_id'] = $this->cat_id;
!                                       
$GLOBALS['phpgw']->template->set_var('action_url',$GLOBALS['phpgw']->link('/index.php',$link_data));
!                                       
$GLOBALS['phpgw']->template->set_var('lang_yes',lang('Yes'));
! 
!                                       
$GLOBALS['phpgw']->template->fp('phpgw_body','category_delete');
                                }
                        }




reply via email to

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