source: extensions/ConcoursPhoto/admin/admin.php @ 3905

Last change on this file since 3905 was 3905, checked in by tiico, 15 years ago

Initial submit for plugin ConcoursPhoto (Possibility to add a competition on category with selected criterias and generation of the competition's result).
Functionnal version. Admin pages must be checked for informations/errors notifications

File size: 1.2 KB
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5global $template, $conf, $user;
6
7load_language('plugin.lang', CONCOURS_PATH);
8include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
9include_once(CONCOURS_PATH . 'admin/functions.inc.php');
10$my_base_url = get_admin_plugin_menu_link(__FILE__);
11
12// +-----------------------------------------------------------------------+
13// |                            Tabsheet
14// +-----------------------------------------------------------------------+
15if (!isset($_GET['tab']))
16    $page['tab'] = 'manage';
17else
18    $page['tab'] = $_GET['tab'];
19
20$tabsheet = new tabsheet();
21$tabsheet->add('manage',
22               l10n('concours_management'),
23               $my_base_url.'&amp;tab=manage');
24
25$tabsheet->add('add_concours',
26               l10n('concours_add'),
27               $my_base_url.'&amp;tab=add_concours&amp;action=new');
28
29$tabsheet->add('config',
30               l10n('concours_config'),
31               $my_base_url.'&amp;tab=config');
32
33$tabsheet->add('params',
34               l10n('concours_params'),
35               $my_base_url.'&amp;tab=params');
36
37$tabsheet->select($page['tab']);
38$tabsheet->assign();
39
40
41// Include file
42include(CONCOURS_PATH.'admin/'.$page['tab'].'.php');
43
44?>
Note: See TracBrowser for help on using the repository browser.