source: extensions/rv_autocomplete/admin.php @ 28341

Last change on this file since 28341 was 28153, checked in by rvelices, 11 years ago

autocomplete allows synonims / misspellings, etc ...

File size: 1.1 KB
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', PHPWG_PLUGINS_PATH.RVAC_ID.'/');
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->add( 'variants', l10n('Variants'), $my_base_url.'-variants' );
20$tabsheet->select($page['tab']);
21
22$tabsheet->assign();
23
24$my_base_url = $tabsheet->sheets[ $page['tab'] ]['url'];
25
26include_once( dirname(__FILE__).'/functions.inc.php');
27include_once( dirname(__FILE__).'/admin/functions.inc.php');
28include_once( dirname(__FILE__).'/admin/'.$page['tab'].'.php');
29
30$template->set_filename( 'rv_ac', dirname(__FILE__).'/admin/'.$page['tab'].'.tpl' );
31$template->assign_var_from_handle( 'ADMIN_CONTENT', 'rv_ac');
32
33?>
Note: See TracBrowser for help on using the repository browser.