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

Last change on this file since 17761 was 17761, checked in by cljosse, 12 years ago

[extensions] edit_gmaps compatibility 2.4

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