source: extensions/rv_gmaps/trunk/admin/admin.php @ 17286

Last change on this file since 17286 was 17286, checked in by rvelices, 12 years ago

rv_gmaps: photos are now geotagged in the batch manager instead of a special plugin page

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 1.1 KB
RevLine 
[3447]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'] = 'config';
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( 'config', 'Configuration', add_url_params( $my_base_url, array('tab'=>'config') ) );
16$tabsheet->add( 'sync', 'Synchronize', add_url_params( $my_base_url, array('tab'=>'sync') ) );
17$tabsheet->select($page['tab']);
18
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$template->assign_var_from_handle( 'TAB_DATA', 'tab_data');
25$template->assign_var_from_handle( 'ADMIN_CONTENT', 'plugin_admin_content');
26
[12700]27/*if ( empty($conf['gmaps_api_key']) )
28  $page['infos'][] = 'Please define the Google maps api key';*/
[3447]29
30?>
Note: See TracBrowser for help on using the repository browser.