aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-04-16 16:56:32 +0000
committerplegall <plg@piwigo.org>2005-04-16 16:56:32 +0000
commitb63d91c59e084223d419b4861627673821d3b15b (patch)
treeadd112962d09483b6a7ced06cd74fba4fbb538c0 /admin.php
parent41e52d7a8a4086f92fe318c22ed69ef3e6a4047b (diff)
- elements batch management : element_set page becomes the frontend to
element_set_global and element_set_unit, infos_images (after a long time of use) become deprecated : the more powerful element_set is used instead. Consequently, batch management concerns caddie but also "normal categories". - refactoring code in admin.php to include the sub-file (clearer) - caddie : function fill_caddie replaces the code in category.php and can be used in admin/element_set.php - caddie : caddie table is added in delete_elements function git-svn-id: http://piwigo.org/svn/trunk@764 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin.php45
1 files changed, 32 insertions, 13 deletions
diff --git a/admin.php b/admin.php
index b8427258f..185b4f885 100644
--- a/admin.php
+++ b/admin.php
@@ -149,18 +149,18 @@ switch ( $_GET['page'] )
$page_valide = true;
break;
}
- case 'element_set_global' :
- {
- $title = 'batch management';
- $page_valide = true;
- break;
- }
- case 'element_set_unit' :
+ case 'element_set' :
{
$title = 'batch management';
$page_valide = true;
break;
}
+// case 'element_set_unit' :
+// {
+// $title = 'batch management';
+// $page_valide = true;
+// break;
+// }
default:
$title = $lang['title_default']; break;
}
@@ -246,7 +246,7 @@ $template->assign_vars(array(
'U_CAT_UPDATE'=>add_session_id($link_start.'update'),
'U_WAITING'=>add_session_id($link_start.'waiting' ),
'U_COMMENTS'=>add_session_id($link_start.'comments' ),
- 'U_SET'=>add_session_id($link_start.'element_set_global'),
+ 'U_CADDIE'=>add_session_id($link_start.'element_set&amp;cat=caddie'),
'U_THUMBNAILS'=>add_session_id($link_start.'thumbnail' ),
'U_USERS'=>add_session_id($link_start.'profile' ),
'U_GROUPS'=>add_session_id($link_start.'group_list' ),
@@ -259,15 +259,34 @@ $template->assign_vars(array(
//--------------------------------------------------------------------- summary
$link_start = PHPWG_ROOT_PATH.'admin.php?page=';
//------------------------------------------------------------- content display
-if ( $page_valide )
+if ($page_valide)
{
- if ($_GET['page']=='comments') include ( PHPWG_ROOT_PATH.'comments.php');
- elseif ($_GET['page']=='profile') include ( PHPWG_ROOT_PATH.'profile.php');
- else include ( PHPWG_ROOT_PATH.'admin/'.$_GET['page'].'.php' );
+ switch ($_GET['page'])
+ {
+ case 'comments' :
+ {
+ include(PHPWG_ROOT_PATH.'comments.php');
+ break;
+ }
+ case 'profile' :
+ {
+ include(PHPWG_ROOT_PATH.'profile.php');
+ break;
+ }
+ default :
+ {
+ include(PHPWG_ROOT_PATH.'admin/'.$_GET['page'].'.php');
+ }
+ }
}
else
{
- $template->assign_vars(array ('ADMIN_CONTENT'=> '<div style="text-align:center">'.$lang['default_message'].'</div>') );
+ $template->assign_vars(
+ array(
+ 'ADMIN_CONTENT'
+ =>'<div style="text-align:center">'.$lang['default_message'].'</div>'
+ )
+ );
}
$template->parse('admin');
include(PHPWG_ROOT_PATH.'include/page_tail.php');