aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions_waiting.inc.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-02-28 23:41:47 +0000
committerrub <rub@piwigo.org>2008-02-28 23:41:47 +0000
commit4621be1005ddab4d3a380ab05a124f99f3e36bea (patch)
treea97ca3808e62d07687508a635ef1bfe3bd5cee4e /admin/include/functions_waiting.inc.php
parent7818a7715b95c1912a71057ee0e050f30865298c (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/include/functions_waiting.inc.php28
1 files changed, 9 insertions, 19 deletions
diff --git a/admin/include/functions_waiting.inc.php b/admin/include/functions_waiting.inc.php
index 640991c00..7a00486b5 100644
--- a/admin/include/functions_waiting.inc.php
+++ b/admin/include/functions_waiting.inc.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 |
// +-----------------------------------------------------------------------+
// | 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();
}
?>