Rev | Line | |
---|
[20090] | 1 | <?php |
---|
| 2 | if (!defined('USER_COLLEC_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | global $template, $page, $conf; |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | // tabsheet |
---|
| 8 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
| 9 | $page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'sets'; |
---|
[25678] | 10 | |
---|
[20090] | 11 | $tabsheet = new tabsheet(); |
---|
| 12 | $tabsheet->add('sets', l10n('Collections'), USER_COLLEC_ADMIN . '-sets'); |
---|
| 13 | if ($page['tab'] == 'export') |
---|
| 14 | { |
---|
| 15 | if (isset($_GET['col_id'])) |
---|
| 16 | { |
---|
[23551] | 17 | $tabsheet->add('export', l10n('Export image list'), USER_COLLEC_ADMIN . '-export&col_id='.$_GET['col_id']); |
---|
[20090] | 18 | } |
---|
| 19 | else |
---|
| 20 | { |
---|
| 21 | $page['tab'] = 'sets'; |
---|
| 22 | } |
---|
| 23 | } |
---|
| 24 | $tabsheet->add('config', l10n('Configuration'), USER_COLLEC_ADMIN . '-config'); |
---|
| 25 | $tabsheet->select($page['tab']); |
---|
| 26 | $tabsheet->assign(); |
---|
| 27 | |
---|
| 28 | // include page |
---|
| 29 | include(USER_COLLEC_PATH . 'admin/' . $page['tab'] . '.php'); |
---|
| 30 | |
---|
| 31 | // template |
---|
| 32 | $template->assign(array( |
---|
| 33 | 'USER_COLLEC_PATH' => USER_COLLEC_PATH, |
---|
| 34 | 'USER_COLLEC_ADMIN' => USER_COLLEC_ADMIN, |
---|
| 35 | )); |
---|
[25678] | 36 | |
---|
[20090] | 37 | $template->assign_var_from_handle('ADMIN_CONTENT', 'user_collections'); |
---|
Note: See
TracBrowser
for help on using the repository browser.