source: extensions/header_manager/admin.php @ 24848

Last change on this file since 24848 was 19181, checked in by mistic100, 12 years ago

no error on album admin page when no banners registered

File size: 988 bytes
Line 
1<?php
2if (!defined('HEADER_MANAGER_PATH')) die('Hacking attempt!');
3
4global $template, $page;
5load_language('plugin.lang', HEADER_MANAGER_PATH);
6
7$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'config';
8
9if ($page['tab'] != 'album')
10{
11  // tabsheet
12  include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');   
13  $tabsheet = new tabsheet();
14  $tabsheet->set_id('header_manager');
15  $tabsheet->add('config', l10n('Configuration'), HEADER_MANAGER_ADMIN . '-config');
16  $tabsheet->add('add', l10n('Add a banner'), HEADER_MANAGER_ADMIN . '-add');
17  $tabsheet->select($page['tab']);
18  $tabsheet->assign();
19}
20
21// template
22$template->assign(array(
23  'CONFIG_URL' => HEADER_MANAGER_ADMIN . '-config',
24  'ADD_IMAGE_URL' => HEADER_MANAGER_ADMIN . '-add',
25  ));
26
27// include page
28include(HEADER_MANAGER_PATH . 'admin/' . $page['tab'] . '.php');
29
30$template->assign('HEADER_MANAGER_PATH', HEADER_MANAGER_PATH);
31
32$template->assign_var_from_handle('ADMIN_CONTENT', 'header_manager');
33
34?>
Note: See TracBrowser for help on using the repository browser.