source: extensions/rv_autocomplete/admin.php @ 26319

Last change on this file since 26319 was 22988, checked in by rvelices, 11 years ago

version update

File size: 1.0 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->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.