aboutsummaryrefslogtreecommitdiffstats
path: root/admin/configuration.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-03-08 22:14:14 +0000
committerrub <rub@piwigo.org>2007-03-08 22:14:14 +0000
commitf266c3b4cb4dd517eb4ccf7aa4e5a46936e5ccff (patch)
tree5e6cc9e8cb6c71fedccd7ef0877065373f4bbffc /admin/configuration.php
parenteab3d5e20e3c823b32aa320f6816f3edb6993d95 (diff)
Add tabsheet on administration pages.
Step 3: Tabsheet for configuration & history Change css tabsheet to do like p0w0 for all themes git-svn-id: http://piwigo.org/svn/trunk@1881 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/configuration.php28
1 files changed, 27 insertions, 1 deletions
diff --git a/admin/configuration.php b/admin/configuration.php
index 12235cce6..de9c3b162 100644
--- a/admin/configuration.php
+++ b/admin/configuration.php
@@ -31,6 +31,7 @@ if( !defined("PHPWG_ROOT_PATH") )
}
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
+include_once(PHPWG_ROOT_PATH.'admin/include/functions_tabsheet.inc.php');
// +-----------------------------------------------------------------------+
// | Check Access and exit when user status is not ok |
@@ -159,7 +160,32 @@ UPDATE '.CONFIG_TABLE.'
}
//----------------------------------------------------- template initialization
-$template->set_filenames( array('config'=>'admin/configuration.tpl') );
+$template->set_filename('config', 'admin/configuration.tpl');
+
+// TabSheet initialization
+$page['tabsheet'] = array
+(
+ 'general' => array
+ (
+ 'caption' => l10n('conf_general_title'),
+ 'url' => $conf_link.'general'
+ ),
+ 'comments' => array
+ (
+ 'caption' => l10n('conf_comments_title'),
+ 'url' => $conf_link.'comments'
+ ),
+ 'default' => array
+ (
+ 'caption' => l10n('conf_default'),
+ 'url' => $conf_link.'default'
+ )
+);
+
+$page['tabsheet'][$page['section']]['selected'] = true;
+
+// Assign tabsheet to template
+template_assign_tabsheet();
$action = PHPWG_ROOT_PATH.'admin.php?page=configuration';
$action.= '&amp;section='.$page['section'];