mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
added level_value to categories_preferences
This commit is contained in:
parent
3593fadc84
commit
08145fcd38
@ -39,14 +39,14 @@
|
||||
|
||||
if (! $start) { $start = 0; }
|
||||
|
||||
if($phpgw_info["user"]["preferences"]["common"]["maxmatchs"] && $phpgw_info["user"]["preferences"]["common"]["maxmatchs"] > 0) {
|
||||
$limit = $phpgw_info["user"]["preferences"]["common"]["maxmatchs"];
|
||||
if($phpgw_info['user']['preferences']['common']['maxmatchs'] && $phpgw_info['user']['preferences']['common']['maxmatchs'] > 0) {
|
||||
$limit = $phpgw_info['user']['preferences']['common']['maxmatchs'];
|
||||
}
|
||||
else { $limit = 15; }
|
||||
|
||||
$c = CreateObject('phpgwapi.categories');
|
||||
$c->categories($phpgw_info['user']['account_id'],'phpgw');
|
||||
$categories = $c->return_array('all',$start,$limit,$query,$sort,$order,'False');
|
||||
$categories = $c->return_array('all',$start,$limit,$query,$sort,$order);
|
||||
|
||||
//--------------------------------- nextmatch --------------------------------------------
|
||||
|
||||
@ -65,7 +65,7 @@
|
||||
|
||||
//------------------- list header variable template-declarations -------------------------
|
||||
|
||||
$t->set_var('th_bg',$phpgw_info["theme"][th_bg]);
|
||||
$t->set_var('th_bg',$phpgw_info['theme']['th_bg']);
|
||||
$t->set_var('sort_name',$phpgw->nextmatchs->show_sort_order($sort,'cat_name',$order,'/admin/categories.php',lang('Name')));
|
||||
$t->set_var('sort_description',$phpgw->nextmatchs->show_sort_order($sort,'cat_description',$order,'/admin/categories.php',lang('Description')));
|
||||
$t->set_var('lang_edit',lang('Edit'));
|
||||
|
@ -47,7 +47,7 @@
|
||||
$cat_description = addslashes($cat_description);
|
||||
$cat_access = 'public';
|
||||
|
||||
if (! $error) { $c->edit($cat_id,$cat_parent,$cat_name,$cat_description,$cat_data,$cat_access); }
|
||||
if (! $error) { $c->edit($cat_id,$cat_parent,$cat_name,$cat_description,$cat_data,$cat_access,$cat_main); }
|
||||
}
|
||||
|
||||
if ($errorcount) { $t->set_var('message',$phpgw->common->error_list($error)); }
|
||||
@ -70,15 +70,15 @@
|
||||
$t->set_var('lang_edit',lang('Edit'));
|
||||
$t->set_var('lang_delete',lang('Delete'));
|
||||
|
||||
$cat_main = $cats[0]['main'];
|
||||
$t->set_var('lang_main',lang('Main category'));
|
||||
$t->set_var('lang_new_main',lang('New main category'));
|
||||
$t->set_var('main_category_list',$c->formated_list('select','mains',$cat_main));
|
||||
$t->set_var('main_category_list',$c->formated_list('select','mains',$cats[0]['main']));
|
||||
|
||||
$cat_id = $cats[0]['id'];
|
||||
$cat_parent = $cats[0]['parent'];
|
||||
|
||||
$t->set_var('cat_name',$phpgw->strip_html($cats[0]['name']));
|
||||
$t->set_var('cat_description',$phpgw->strip_html($cats[0]['description']));
|
||||
$t->set_var('category_list',$c->formated_list('select','all',$cat_parent));
|
||||
$t->set_var('category_list',$c->formated_list('select','all',$cats[0]['parent']));
|
||||
|
||||
$t->set_var('edithandle','');
|
||||
$t->set_var('addhandle','');
|
||||
|
Loading…
Reference in New Issue
Block a user