diff options
author | plegall <plg@piwigo.org> | 2005-08-19 17:00:20 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-08-19 17:00:20 +0000 |
commit | 939c01e410286691fd80029bed811406ede3f1e5 (patch) | |
tree | 881e88676f856217b4b107060fed9fabeeeb93fe /admin | |
parent | ede184cacc411173ba29f05f9b8a12d18a595e0f (diff) |
- improvement : standardization of categories navigation bar on top of
administration screen element_set_(global|unit), cat_modify, cat_list,
cat_perm.
- new : direct link to admin/cat_modify from category.php.
git-svn-id: http://piwigo.org/svn/trunk@834 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r-- | admin/cat_list.php | 15 | ||||
-rw-r--r-- | admin/cat_modify.php | 9 | ||||
-rw-r--r-- | admin/element_set.php | 7 | ||||
-rw-r--r-- | admin/element_set_global.php | 2 | ||||
-rw-r--r-- | admin/element_set_unit.php | 2 |
5 files changed, 21 insertions, 14 deletions
diff --git a/admin/cat_list.php b/admin/cat_list.php index e38d5b4c9..4a66aee12 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -61,8 +61,14 @@ function save_categories_order($categories) // +-----------------------------------------------------------------------+ // | initialization | // +-----------------------------------------------------------------------+ + $categories = array(); -$navigation = $lang['home']; + +$base_url = PHPWG_ROOT_PATH.'admin.php?page=cat_list'; +$navigation = '<a class="" href="'.add_session_id($base_url).'">'; +$navigation.= $lang['home']; +$navigation.= '</a>'; + // +-----------------------------------------------------------------------+ // | virtual categories management | // +-----------------------------------------------------------------------+ @@ -195,16 +201,13 @@ while ($row = mysql_fetch_assoc($result)) $categories[$row['rank']] = $row; $categories[$row['rank']]['nb_subcats'] = 0; } + // +-----------------------------------------------------------------------+ // | Navigation path | // +-----------------------------------------------------------------------+ + if (isset($_GET['parent_id'])) { - $base_url = PHPWG_ROOT_PATH.'admin.php?page=cat_list'; - - $navigation = '<a class="" href="'.add_session_id($base_url).'">'; - $navigation.= $lang['home']; - $navigation.= '</a>'; $navigation.= $conf['level_separator']; $current_category = get_cat_info($_GET['parent_id']); diff --git a/admin/cat_modify.php b/admin/cat_modify.php index 1215b4e73..791dff589 100644 --- a/admin/cat_modify.php +++ b/admin/cat_modify.php @@ -104,13 +104,12 @@ foreach (array('comment','dir','site_id', 'id_uppercat') as $nullable) $category['is_virtual'] = empty($category['dir']) ? true : false; // Navigation path -$url = PHPWG_ROOT_PATH.'admin.php?page=cat_list&parent_id='; -$navigation = '<a class="" href="'.add_session_id(PHPWG_ROOT_PATH.'admin.php?page=cat_list').'">'; -$navigation.= $lang['home'].'</a>'.$conf['level_separator']; +$url = PHPWG_ROOT_PATH.'admin.php?page=cat_modify&cat_id='; -$navigation.= get_cat_display_name_cache( +$navigation = get_cat_display_name_cache( $category['uppercats'], - $url); + PHPWG_ROOT_PATH.'admin.php?page=cat_modify&cat_id=' + ); $form_action = PHPWG_ROOT_PATH.'admin.php?page=cat_modify&cat_id='.$_GET['cat_id']; $status = ($category['status']=='public')?'STATUS_PUBLIC':'STATUS_PRIVATE'; diff --git a/admin/element_set.php b/admin/element_set.php index e4e913b74..82920d9a8 100644 --- a/admin/element_set.php +++ b/admin/element_set.php @@ -104,7 +104,12 @@ DELETE if (is_numeric($_GET['cat'])) { $cat_infos = get_cat_info($_GET['cat']); - $page['title'] = get_cat_display_name($cat_infos['name'], '', false); + $page['title'] = + get_cat_display_name( + $cat_infos['name'], + PHPWG_ROOT_PATH.'admin.php?page=cat_modify&cat_id=', + false + ); $query = ' SELECT image_id diff --git a/admin/element_set_global.php b/admin/element_set_global.php index 33ede7dfc..96386802f 100644 --- a/admin/element_set_global.php +++ b/admin/element_set_global.php @@ -266,7 +266,7 @@ $base_url = PHPWG_ROOT_PATH.'admin.php'; $template->assign_vars( array( - 'CATEGORY_TITLE'=>$page['title'], + 'CATEGORIES_NAV'=>$page['title'], 'L_SUBMIT'=>$lang['submit'], diff --git a/admin/element_set_unit.php b/admin/element_set_unit.php index 74aaf1eb0..15dcd62a3 100644 --- a/admin/element_set_unit.php +++ b/admin/element_set_unit.php @@ -110,7 +110,7 @@ $base_url = PHPWG_ROOT_PATH.'admin.php'; $template->assign_vars( array( - 'CATEGORY_TITLE'=>$page['title'], + 'CATEGORIES_NAV'=>$page['title'], 'L_SUBMIT'=>$lang['submit'], |