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
This commit is contained in:
rub
2008-02-28 23:41:47 +00:00
parent 7818a7715b
commit 4621be1005
9 changed files with 208 additions and 198 deletions
+9 -19
View File
@@ -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 |
// +-----------------------------------------------------------------------+
// | file : $Id$
// | last update : $Date$
@@ -24,31 +24,21 @@
// | USA. |
// +-----------------------------------------------------------------------+
include_once(PHPWG_ROOT_PATH.'admin/include/functions_tabsheet.inc.php');
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
function waiting_tabsheet()
{
global $page, $link_start;
// TabSheet
$tabsheet = new tabsheet();
// TabSheet initialization
$page['tabsheet'] = array
(
'comments' => array
(
'caption' => l10n('comments'),
'url' => $link_start.'comments'
),
'upload' => array
(
'caption' => l10n('upload_pictures'),
'url' => $link_start.'upload'
)
);
$page['tabsheet'][$page['page']]['selected'] = true;
$tabsheet->add('comments', l10n('comments'), $link_start.'comments');
$tabsheet->add('upload', l10n('upload_pictures'), $link_start.'upload');
// TabSheet selection
$tabsheet->select($page['page']);
// Assign tabsheet to template
template_assign_tabsheet();
$tabsheet->assign();
}
?>