added level_value to categories_preferences

This commit is contained in:
bettina 2001-04-28 00:03:18 +00:00
parent 3593fadc84
commit 08145fcd38
3 changed files with 10 additions and 10 deletions

View File

@ -39,14 +39,14 @@
if (! $start) { $start = 0; } if (! $start) { $start = 0; }
if($phpgw_info["user"]["preferences"]["common"]["maxmatchs"] && $phpgw_info["user"]["preferences"]["common"]["maxmatchs"] > 0) { if($phpgw_info['user']['preferences']['common']['maxmatchs'] && $phpgw_info['user']['preferences']['common']['maxmatchs'] > 0) {
$limit = $phpgw_info["user"]["preferences"]["common"]["maxmatchs"]; $limit = $phpgw_info['user']['preferences']['common']['maxmatchs'];
} }
else { $limit = 15; } else { $limit = 15; }
$c = CreateObject('phpgwapi.categories'); $c = CreateObject('phpgwapi.categories');
$c->categories($phpgw_info['user']['account_id'],'phpgw'); $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 -------------------------------------------- //--------------------------------- nextmatch --------------------------------------------
@ -65,7 +65,7 @@
//------------------- list header variable template-declarations ------------------------- //------------------- 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_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('sort_description',$phpgw->nextmatchs->show_sort_order($sort,'cat_description',$order,'/admin/categories.php',lang('Description')));
$t->set_var('lang_edit',lang('Edit')); $t->set_var('lang_edit',lang('Edit'));

View File

@ -47,7 +47,7 @@
$cat_description = addslashes($cat_description); $cat_description = addslashes($cat_description);
$cat_access = 'public'; $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)); } 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_edit',lang('Edit'));
$t->set_var('lang_delete',lang('Delete')); $t->set_var('lang_delete',lang('Delete'));
$cat_main = $cats[0]['main'];
$t->set_var('lang_main',lang('Main category')); $t->set_var('lang_main',lang('Main category'));
$t->set_var('lang_new_main',lang('New 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_id = $cats[0]['id'];
$cat_parent = $cats[0]['parent'];
$t->set_var('cat_name',$phpgw->strip_html($cats[0]['name'])); $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('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('edithandle','');
$t->set_var('addhandle',''); $t->set_var('addhandle','');