$cats_app, 'enable_nextmatchs_class' => True); if (! $appheader) { $phpgw_info['flags']['noappheader'] = True; } if (! $appfooter) { $phpgw_info['flags']['noappfooter'] = True; } include('../header.inc.php'); $t = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('preferences')); $t->set_file(array('cat_list_t' => 'listcats.tpl', 'cat_list' => 'listcats.tpl')); $t->set_block('cat_list_t','cat_list','list'); $hidden_vars = '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n" . '' . "\n"; $t->set_var('font',$phpgw_info['theme']['font']); $t->set_var('user_name',$phpgw_info['user']['fullname']); $t->set_var('hidden_vars',$hidden_vars); $t->set_var('title_categories',lang('categories for')); $t->set_var('lang_action',lang('Category list')); $t->set_var('add_action',$phpgw->link('/preferences/addcategory.php','cats_app=' . $cats_app . '&extra=' . $extra . '&cats_level=' . $cats_level . '&global_cats=' . $global_cats)); $t->set_var('lang_add',lang('Add')); $t->set_var('lang_search',lang('Search')); $t->set_var('actionurl',$phpgw->link('/preferences/categories.php','cats_app=' . $cats_app . '&extra=' . $extra . '&cats_level=' . $cats_level . '&global_cats=' . $global_cats)); $t->set_var('lang_done',lang('Done')); $t->set_var('doneurl',$phpgw->link('/preferences/index.php')); if (! $start) { $start = 0; } $c = CreateObject('phpgwapi.categories'); $c->app_name = $cats_app; if ($global_cats) { $categories = $c->return_array('all',$start,True,$query,$sort,$order,True); } else { $categories = $c->return_array('all',$start,True,$query,$sort,$order); } //--------------------------------- nextmatch -------------------------------------------- $left = $phpgw->nextmatchs->left('/preferences/categories.php',$start,$c->total_records,'&cats_app=' . $cats_app . '&extra=' . $extra . '&cats_level=' . $cats_level . '&global_cats=' . $global_cats); $right = $phpgw->nextmatchs->right('/preferences/categories.php',$start,$c->total_records,'&cats_app=' . $cats_app . '&extra=' . $extra . '&cats_level=' . $cats_level . '&global_cats=' . $global_cats); $t->set_var('left',$left); $t->set_var('right',$right); $t->set_var('lang_showing',$phpgw->nextmatchs->show_hits($c->total_records,$start)); // ------------------------------ end nextmatch ------------------------------------------ //------------------- list header variable template-declarations ------------------------- $t->set_var('th_bg',$phpgw_info['theme']['th_bg']); $t->set_var('sort_name',$phpgw->nextmatchs->show_sort_order($sort,'cat_name',$order,'/preferences/categories.php',lang('Name'),'&cats_app=' . $cats_app . '&extra=' . $extra . '&cats_level=' . $cats_level . '&global_cats=' . $global_cats)); $t->set_var('sort_description',$phpgw->nextmatchs->show_sort_order($sort,'cat_description',$order,'/preferences/categories.php',lang('Description'),'&cats_app=' . $cats_app . '&extra=' . $extra . '&cats_level=' . $cats_level . '&global_cats=' . $global_cats)); if ($extra) { $t->set_var('sort_data','