aboutsummaryrefslogtreecommitdiffstats
path: root/admin/notification_by_mail.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/notification_by_mail.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/notification_by_mail.php41
1 files changed, 16 insertions, 25 deletions
diff --git a/admin/notification_by_mail.php b/admin/notification_by_mail.php
index 10c65214e..38fd8cfb6 100644
--- a/admin/notification_by_mail.php
+++ b/admin/notification_by_mail.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$
@@ -35,7 +35,7 @@ if (!defined('PHPWG_ROOT_PATH'))
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
include_once(PHPWG_ROOT_PATH.'admin/include/functions_notification_by_mail.inc.php');
-include_once(PHPWG_ROOT_PATH.'admin/include/functions_tabsheet.inc.php');
+include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
include_once(PHPWG_ROOT_PATH.'include/functions_notification.inc.php');
include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
@@ -610,31 +610,22 @@ $template->assign_vars
if (is_autorize_status(ACCESS_WEBMASTER))
{
+ // TabSheet
+ $tabsheet = new tabsheet();
// TabSheet initialization
- $page['tabsheet'] = array
- (
- 'param' => array
- (
- 'caption' => l10n('nbm_param_mode'),
- 'url' => add_url_params($base_url.get_query_string_diff(array('mode', 'select')),
- array('mode' => 'param'))
- ),
- 'subscribe' => array
- (
- 'caption' => l10n('nbm_subscribe_mode'),
- 'url' => add_url_params($base_url.get_query_string_diff(array('mode', 'select')), array('mode' => 'subscribe')),
- ),
- 'send' => array
- (
- 'caption' => l10n('nbm_send_mode'),
- 'url' => add_url_params($base_url.get_query_string_diff(array('mode', 'select')), array('mode' => 'send'))
- )
- );
-
- $page['tabsheet'][$page['mode']]['selected'] = true;
-
+ $tabsheet->add('param', l10n('nbm_param_mode'),
+ add_url_params($base_url.get_query_string_diff(array('mode', 'select')),
+ array('mode' => 'param')));
+ $tabsheet->add('subscribe', l10n('nbm_subscribe_mode'),
+ add_url_params($base_url.get_query_string_diff(array('mode', 'select')),
+ array('mode' => 'subscribe')));
+ $tabsheet->add('send', l10n('nbm_send_mode'),
+ add_url_params($base_url.get_query_string_diff(array('mode', 'select')),
+ array('mode' => 'send')));
+ // TabSheet selection
+ $tabsheet->select($page['mode']);
// Assign tabsheet to template
- template_assign_tabsheet();
+ $tabsheet->assign();
}
if ($must_repost)