mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Add tabsheet on administration pages.
Step 2: Regroup categories options into sheet Batch management. On next commit, use of this new method on history and configuration git-svn-id: http://piwigo.org/svn/trunk@1878 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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 |
|
||||
@@ -163,6 +164,46 @@ $template->assign_vars(
|
||||
)
|
||||
);
|
||||
|
||||
// TabSheet initialization
|
||||
$opt_link = $link_start.'cat_options&section=';
|
||||
$page['tabsheet'] = array
|
||||
(
|
||||
'upload' => array
|
||||
(
|
||||
'caption' => l10n('upload'),
|
||||
'url' => $opt_link.'upload'
|
||||
),
|
||||
'comments' => array
|
||||
(
|
||||
'caption' => l10n('comments'),
|
||||
'url' => $opt_link.'comments'
|
||||
),
|
||||
'visible' => array
|
||||
(
|
||||
'caption' => l10n('lock'),
|
||||
'url' => $opt_link.'visible'
|
||||
),
|
||||
'status' => array
|
||||
(
|
||||
'caption' => l10n('cat_security'),
|
||||
'url' => $opt_link.'status'
|
||||
)
|
||||
);
|
||||
|
||||
if ($conf['allow_random_representative'])
|
||||
{
|
||||
$page['tabsheet']['representative'] =
|
||||
array
|
||||
(
|
||||
'caption' => l10n('Representative'),
|
||||
'url' => $opt_link.'representative'
|
||||
);
|
||||
}
|
||||
$page['tabsheet'][$page['section']]['selected'] = true;
|
||||
|
||||
// Assign tabsheet to template
|
||||
template_assign_tabsheet();
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | form display |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user