Last change
on this file since 26860 was
26725,
checked in by mistic100, 11 years ago
|
use external JS with template feature
|
File size:
795 bytes
|
Line | |
---|
1 | <?php |
---|
2 | defined('SMART_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $conf, $template, $page; |
---|
5 | |
---|
6 | $page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'cat_list'; |
---|
7 | |
---|
8 | if ($page['tab'] == 'album') |
---|
9 | { |
---|
10 | include(SMART_PATH . 'admin/album.php'); |
---|
11 | } |
---|
12 | else |
---|
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.