source: extensions/rv_autocomplete/admin.php @ 22375

Last change on this file since 22375 was 22375, checked in by ddtddt, 12 years ago

[extensions] - rv_autocomplete - localisation step 1

File size: 1018 bytes
Line 
1<?php 
2defined('PHPWG_ROOT_PATH') or die('Hacking attempt!');
3
4include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
5
6load_language('plugin.lang', RVAC_PATH);
7
8if (!isset($_GET['tab']))
9  $page['tab'] = 'config';
10else
11  $page['tab'] = $_GET['tab'];
12
13$my_base_url = 'admin.php?page=plugin-'.basename(dirname(__FILE__));
14
15$tabsheet = new tabsheet();
16$tabsheet->add( 'config', l10n('Configuration'), $my_base_url.'-config');
17$tabsheet->add( 'exclude', l10n('Exclude'), $my_base_url.'-exclude' );
18$tabsheet->add( 'custom', l10n('Custom'), $my_base_url.'-custom' );
19$tabsheet->select($page['tab']);
20
21$tabsheet->assign();
22
23$my_base_url = $tabsheet->sheets[ $page['tab'] ]['url'];
24
25include_once( dirname(__FILE__).'/functions.inc.php');
26include_once( dirname(__FILE__).'/admin/functions.inc.php');
27include_once( dirname(__FILE__).'/admin/'.$page['tab'].'.php');
28
29$template->set_filename( 'rv_ac', dirname(__FILE__).'/admin/'.$page['tab'].'.tpl' );
30$template->assign_var_from_handle( 'ADMIN_CONTENT', 'rv_ac');
31
32?>
Note: See TracBrowser for help on using the repository browser.