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
This commit is contained in:
rub 2007-03-08 22:14:14 +00:00
commit f266c3b4cb
13 changed files with 124 additions and 30 deletions

View file

@ -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.= '&section='.$page['section'];