diff options
author | rub <rub@piwigo.org> | 2008-02-28 23:41:47 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2008-02-28 23:41:47 +0000 |
commit | 4621be1005ddab4d3a380ab05a124f99f3e36bea (patch) | |
tree | a97ca3808e62d07687508a635ef1bfe3bd5cee4e /admin/configuration.php | |
parent | 7818a7715b95c1912a71057ee0e050f30865298c (diff) |
0000809: Use more php classes implementation
Use class for tabsheet like grum class
Change way for tabsheet
git-svn-id: http://piwigo.org/svn/trunk@2226 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/configuration.php | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/admin/configuration.php b/admin/configuration.php index 4a44efc05..1f96265ec 100644 --- a/admin/configuration.php +++ b/admin/configuration.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | PhpWebGallery - a PHP based picture gallery | // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | -// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net | +// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ // | branch : BSF (Best So Far) // | file : $RCSfile$ @@ -31,7 +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'); +include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); // +-----------------------------------------------------------------------+ // | Check Access and exit when user status is not ok | @@ -157,35 +157,17 @@ WHERE param = \''.$row['param'].'\' //----------------------------------------------------- template initialization $template->set_filename('config', 'admin/configuration.tpl'); +// TabSheet +$tabsheet = new tabsheet(); // TabSheet initialization -$page['tabsheet'] = array -( - 'main' => array - ( - 'caption' => l10n('conf_main_title'), - 'url' => $conf_link.'main' - ), - 'history' => array - ( - 'caption' => l10n('conf_history_title'), - 'url' => $conf_link.'history' - ), - 'comments' => array - ( - 'caption' => l10n('conf_comments_title'), - 'url' => $conf_link.'comments' - ), - 'default' => array - ( - 'caption' => l10n('conf_display'), - 'url' => $conf_link.'default' - ) -); - -$page['tabsheet'][$page['section']]['selected'] = true; - +$tabsheet->add('main', l10n('conf_main_title'), $conf_link.'main'); +$tabsheet->add('history', l10n('conf_history_title'), $conf_link.'history'); +$tabsheet->add('comments', l10n('conf_comments_title'), $conf_link.'comments'); +$tabsheet->add('default', l10n('conf_display'), $conf_link.'default'); +// TabSheet selection +$tabsheet->select($page['section']); // Assign tabsheet to template -template_assign_tabsheet(); +$tabsheet->assign(); $action = PHPWG_ROOT_PATH.'admin.php?page=configuration'; $action.= '&section='.$page['section']; |