source: extensions/UserCollections/admin.php @ 25035

Last change on this file since 25035 was 23551, checked in by mistic100, 11 years ago

many corrections & optimizations + remove useless code + clean

File size: 996 bytes
Line 
1<?php
2if (!defined('USER_COLLEC_PATH')) die('Hacking attempt!');
3
4global $template, $page, $conf;
5
6
7// tabsheet
8include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
9$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'sets';
10 
11$tabsheet = new tabsheet();
12$tabsheet->add('sets', l10n('Collections'), USER_COLLEC_ADMIN . '-sets');
13if ($page['tab'] == 'export')
14{
15  if (isset($_GET['col_id']))
16  {
17    $tabsheet->add('export', l10n('Export image list'), USER_COLLEC_ADMIN . '-export&amp;col_id='.$_GET['col_id']);
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
29include(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  ));
36 
37$template->assign_var_from_handle('ADMIN_CONTENT', 'user_collections');
38
39?>
Note: See TracBrowser for help on using the repository browser.