source: extensions/UserCollections/admin.php @ 25715

Last change on this file since 25715 was 25678, checked in by mistic100, 11 years ago

very big update for Piwigo 2.6

File size: 989 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');
Note: See TracBrowser for help on using the repository browser.