1 | <?php |
---|
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
3 | global $template, $conf, $user; |
---|
4 | include_once(PHPWG_ROOT_PATH .'admin/include/tabsheet.class.php'); |
---|
5 | load_language('plugin.lang', ADDINFO_PATH); |
---|
6 | $my_base_url = get_admin_plugin_menu_link(__FILE__); |
---|
7 | |
---|
8 | // +-----------------------------------------------------------------------+ |
---|
9 | // | Check Access and exit when user status is not ok | |
---|
10 | // +-----------------------------------------------------------------------+ |
---|
11 | check_status(ACCESS_ADMINISTRATOR); |
---|
12 | |
---|
13 | //-------------------------------------------------------- sections definitions |
---|
14 | |
---|
15 | // Gestion des onglets |
---|
16 | if (!isset($_GET['tab'])) |
---|
17 | $page['tab'] = 'explication'; |
---|
18 | else |
---|
19 | $page['tab'] = $_GET['tab']; |
---|
20 | |
---|
21 | $tabsheet = new tabsheet(); |
---|
22 | $tabsheet->add('explication', |
---|
23 | l10n('addinfo_explication'), |
---|
24 | $my_base_url.'&tab=explication'); |
---|
25 | $tabsheet->select($page['tab']); |
---|
26 | $tabsheet->assign(); |
---|
27 | |
---|
28 | switch ($page['tab']) |
---|
29 | { |
---|
30 | // tab help |
---|
31 | case 'explication': |
---|
32 | $explication = 'explication'; |
---|
33 | $template->assign( |
---|
34 | $explication, |
---|
35 | array( |
---|
36 | 'meta'=>l10n('meta_name'), |
---|
37 | )); |
---|
38 | |
---|
39 | break; |
---|
40 | |
---|
41 | } |
---|
42 | |
---|
43 | $template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) . '/admin.tpl')); |
---|
44 | $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); |
---|
45 | ?> |
---|