Last change
on this file since 9885 was
9745,
checked in by mistic100, 13 years ago
|
[extensions] Contest Results
- New bloc for PWG Stuffs
- Use new admin links and javascript implementation
- Distinguish pending and running contests (both pending before)
|
File size:
1.4 KB
|
Line | |
---|
1 | <?php |
---|
2 | if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | // +-----------------------------------------------------------------------+ |
---|
5 | // Tabsheet |
---|
6 | // +-----------------------------------------------------------------------+ |
---|
7 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
8 | $page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'manage'; |
---|
9 | |
---|
10 | $tabsheet = new tabsheet(); |
---|
11 | $tabsheet->add('manage', l10n('CR_manage_tab'), CR_ADMIN . '-manage'); // Gestion des concours |
---|
12 | $tabsheet->add('new', l10n('CR_new_tab'), CR_ADMIN . '-new'); // Ajouter un nouveau concours |
---|
13 | if (isset($_GET['contest_id'])) { // Editer le concours | Résultats du concours |
---|
14 | $tabsheet->add($page['tab'], l10n('CR_'.$page['tab'].'_tab'), CR_ADMIN . '-' . $page['tab'] . '&contest_id=' . $_GET['contest_id']); |
---|
15 | } |
---|
16 | $tabsheet->add('config', l10n('Configuration'), CR_ADMIN . '-config'); // Configuration |
---|
17 | $tabsheet->select($page['tab']); |
---|
18 | $tabsheet->assign(); |
---|
19 | |
---|
20 | // +-----------------------------------------------------------------------+ |
---|
21 | // Template |
---|
22 | // +-----------------------------------------------------------------------+ |
---|
23 | $template->assign(array( |
---|
24 | 'CR_VERSION' => CR_NAME . ' ' . CR_VERSION, |
---|
25 | 'CR_PATH' => CR_PATH, |
---|
26 | 'CR_ADMIN' => CR_ADMIN, |
---|
27 | )); |
---|
28 | |
---|
29 | if ($page['tab'] == 'edit') { $page['tab'] = 'new'; } // L'édition se fait sur la page de création |
---|
30 | include(CR_PATH.'admin/' . $page['tab'] . '.php'); |
---|
31 | |
---|
32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.