source: extensions/ContestResults/admin/admin.php @ 9200

Last change on this file since 9200 was 9200, checked in by mistic100, 13 years ago

ContestResults :

  • Code revision
  • Add Letton (lv_LV) language, thanks to Aivars Baldone
  • Delete display options
  • Fix languages bugs
  • Improve public appearence
File size: 1.5 KB
Line 
1<?php
2if(!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4load_language('plugin.lang', CR_PATH);
5
6// +-----------------------------------------------------------------------+
7//                              Tabsheet
8// +-----------------------------------------------------------------------+
9include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
10$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'manage';
11       
12$tabsheet = new tabsheet();
13$tabsheet->add('manage', l10n('CR_manage_tab'), CR_ADMIN . '&amp;tab=manage');  // Gestion des concours
14$tabsheet->add('new', l10n('CR_new_tab'), CR_ADMIN . '&amp;tab=new');                   // Ajouter un nouveau concours
15if (isset($_GET['contest_id'])) {                                                                                               // Editer le concours | Résultats du concours
16        $tabsheet->add($page['tab'], l10n('CR_'.$page['tab'].'_tab'), CR_ADMIN . '&amp;tab=' . $page['tab'] . '&amp;contest_id=' . $_GET['contest_id']);
17}
18$tabsheet->add('config', l10n('Configuration'), CR_ADMIN . '&amp;tab=config');  // Configuration
19$tabsheet->select($page['tab']);
20$tabsheet->assign();
21
22// +-----------------------------------------------------------------------+
23//                              Template
24// +-----------------------------------------------------------------------+
25$template->assign('CR_VERSION', CR_NAME . ' ' . CR_VERSION);
26$template->assign('CR_PATH', CR_PATH);
27if ($page['tab'] == 'edit') { $page['tab'] = 'new'; } // L'édition se fait sur la page de création
28include(CR_PATH.'admin/'.$page['tab'].'.php');
29?>
Note: See TracBrowser for help on using the repository browser.