source: extensions/edit_gmaps/admin/admin.php @ 9445

Last change on this file since 9445 was 9445, checked in by cljosse, 10 years ago

[edit_gmaps] set conformity with rv_gmaps install.

File size: 1013 bytes
Line 
1<?php 
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
4
5
6$template->set_filename('plugin_admin_content', dirname(__FILE__).'/admin.tpl');
7
8if (!isset($_GET['tab']))
9  $page['tab'] = 'edit';
10else
11  $page['tab'] = $_GET['tab'];
12
13$my_base_url = get_admin_plugin_menu_link(__FILE__);
14
15$tabsheet = new tabsheet();
16$tabsheet->add( 'edit', 'Edit', add_url_params( $my_base_url, array('tab'=>'edit') ) );
17//$tabsheet->add( 'edit_meta', 'Edit_meta', add_url_params( $my_base_url, array('tab'=>'edit_meta') ) );
18$tabsheet->select($page['tab']);
19$tabsheet->assign();
20
21$my_base_url = $tabsheet->sheets[ $page['tab'] ]['url'];
22$template->set_filename( 'tab_data', dirname(__FILE__).'/admin_'.$page['tab'].'.tpl' );
23include_once( dirname(__FILE__).'/admin_'.$page['tab'].'.php');
24 
25$template->assign_var_from_handle( 'TAB_DATA', 'tab_data');
26$template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content');
27
28?>
Note: See TracBrowser for help on using the repository browser.