source: extensions/Piwecard/admin/admin.php @ 14510

Last change on this file since 14510 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
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5global $template, $conf, $user;
6
7load_language('plugin.lang', ECARD_PATH);
8include_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// +-----------------------------------------------------------------------+
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('ecard_management'),
23               $my_base_url.'&amp;tab=manage');
24$tabsheet->add('params',
25               l10n('ecard_params'),
26               $my_base_url.'&amp;tab=params');
27$tabsheet->add('consult',
28               l10n('ecard_consult'),
29               $my_base_url.'&amp;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
39include(ECARD_PATH.'admin/'.$page['tab'].'.php');
40
41?>
Note: See TracBrowser for help on using the repository browser.