source: extensions/rv_autocomplete/admin.php @ 22246

Last change on this file since 22246 was 22201, checked in by rvelices, 11 years ago

rv autocomplete svn first commit

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