Last change
on this file since 8812 was
8771,
checked in by tiico, 14 years ago
|
First global commit for Piwecard plugin
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | global $template, $conf, $user; |
---|
6 | |
---|
7 | load_language('plugin.lang', ECARD_PATH); |
---|
8 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
9 | //include_once(ECARD_PATH . 'admin/functions.inc.php'); |
---|
10 | $my_base_url = get_admin_plugin_menu_link(__FILE__); |
---|
11 | |
---|
12 | // +-----------------------------------------------------------------------+ |
---|
13 | // | Tabsheet |
---|
14 | // +-----------------------------------------------------------------------+ |
---|
15 | if (!isset($_GET['tab'])) |
---|
16 | $page['tab'] = 'manage'; |
---|
17 | else |
---|
18 | $page['tab'] = $_GET['tab']; |
---|
19 | |
---|
20 | $tabsheet = new tabsheet(); |
---|
21 | $tabsheet->add('manage', |
---|
22 | l10n('ecard_management'), |
---|
23 | $my_base_url.'&tab=manage'); |
---|
24 | $tabsheet->add('params', |
---|
25 | l10n('ecard_params'), |
---|
26 | $my_base_url.'&tab=params'); |
---|
27 | $tabsheet->add('consult', |
---|
28 | l10n('ecard_consult'), |
---|
29 | $my_base_url.'&tab=consult'); |
---|
30 | |
---|
31 | |
---|
32 | $tabsheet->select($page['tab']); |
---|
33 | $tabsheet->assign(); |
---|
34 | |
---|
35 | $template->assign( 'ECARD_VERSION', l10n('ecard')." (<i>Version ".ECARD_VERSION.'</i>)'); |
---|
36 | |
---|
37 | |
---|
38 | // Include file |
---|
39 | include(ECARD_PATH.'admin/'.$page['tab'].'.php'); |
---|
40 | |
---|
41 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.