source: extensions/SmartAlbums/admin.php @ 28845

Last change on this file since 28845 was 26725, checked in by mistic100, 11 years ago

use external JS with template feature

File size: 795 bytes
Line 
1<?php
2defined('SMART_PATH') or die('Hacking attempt!');
3
4global $conf, $template, $page;
5
6$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'cat_list';
7
8if ($page['tab'] == 'album')
9{
10  include(SMART_PATH . 'admin/album.php');
11}
12else
13{
14  include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
15  $tabsheet = new tabsheet();
16  $tabsheet->add('cat_list', l10n('All SmartAlbums'), SMART_ADMIN.'-cat_list');
17  $tabsheet->add('config', l10n('Configuration'), SMART_ADMIN.'-config');
18  $tabsheet->select($page['tab']);
19  $tabsheet->assign();
20
21  include(SMART_PATH . 'admin/'.$page['tab'].'.php');
22}
23
24$template->assign(array(
25  'SMART_PATH' => SMART_PATH,
26  'SMART_ABS_PATH' => realpath(SMART_PATH) . '/',
27  ));
28
29$template->assign_var_from_handle('ADMIN_CONTENT', 'SmartAlbums_content');
Note: See TracBrowser for help on using the repository browser.