Ignore:
Timestamp:
Oct 8, 2010, 3:02:29 AM (13 years ago)
Author:
grum
Message:

Connect the plugin to the RBuilder component + fixe some small bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GMaps/gmaps_aip.class.inc.php

    r7125 r7128  
    5353    $this->tabsheet->add('kml_files',
    5454                          l10n('gmaps_kml_files_management'),
    55                           $this->getAdminLink()."&fGMaps_tabsheet=kml_files");
     55                          $this->getAdminLink()."&fGMaps_tabsheet=kml_files"); */
    5656    $this->tabsheet->add('search',
    5757                          l10n('gmaps_search'),
    5858                          $this->getAdminLink()."&fGMaps_tabsheet=search");
    59     $this->tabsheet->add('help',
     59/*    $this->tabsheet->add('help',
    6060                          l10n('gmaps_help'),
    6161                          $this->getAdminLink()."&fGMaps_tabsheet=help");
     
    7474  public function initEvents()
    7575  {
     76    parent::initEvents();
     77
     78    if($_REQUEST['fGMaps_tabsheet']=='search')
     79    {
     80      // load request builder JS only on the search page
     81      GPCRequestBuilder::loadJSandCSS();
     82    }
    7683    add_event_handler('loc_end_page_header', array(&$this->css, 'applyCSS'));
    7784    GPCCss::applyGpcCss();
    78 
    79     parent::initEvents();
    8085  }
    8186
     
    254259    global $template;
    255260
    256     /*$template->set_filename('body_page',
    257                 dirname($this->getFileLocation()).'/admin/plugin_admin_maps.tpl');
    258 
    259 
    260     $template->assign_var_from_handle('GMAPS_BODY_PAGE', 'body_page');*/
     261    $template->set_filename('body_page',
     262                dirname($this->getFileLocation()).'/admin/gmaps_search.tpl');
     263
     264    $template->assign('gmaps_search_page', GPCRequestBuilder::displaySearchPage($this->getPluginName()));
     265
     266    $template->assign_var_from_handle('GMAPS_BODY_PAGE', 'body_page');
    261267  }
    262268
Note: See TracChangeset for help on using the changeset viewer.