* HotelGuide is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License 2 * as published by the Free Software Foundation. * HotelGuide is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with HOTELGUIDE; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ defined('_JEXEC') or die('Restricted access'); if ($this->cityname) { $region = "city"; $base = array('lat' => $this->cityname[0]->lat, 'lon' => $this->cityname[0]->lon, 'zoom' => $this->cityname[0]->zoom, 'maptype' => $this->hgconf->maptype); echo hg_html::showmap($this->hgconf, $base, $this->cityname, $region, $this->country->name, false, false, $this->hgconf->map_adsense, $this->hgconf->map_publisher_id, $this->hgconf->map_ad_slot); } if ($this->hgconf->mapheight) { $height = $this->hgconf->mapheight; } else { $height = 450; } if ($this->hgconf->box == 'None') { echo '<div class="clear"></div>' . "\n"; } else { echo hg_html::boxtop(); } echo '<h3 class="title">'; echo JText::_('HG_FIND_CITY_BY_MAP'); echo '</h3>'; echo '<div id="map_container" style="width:100%">';
if ($this->item->lon) { $type = "hotel"; $base = array( 'lat' => $this->item->lat, 'lon' => $this->item->lon, 'zoom' => $this->item->zoom, 'maptype' => $this->item->maptype ); echo hg_html::showmap($this->hgconf, $base, $this->mapdatas, $type, '', false, true, $this->hgconf->map_adsense, $this->hgconf->map_publisher_id, $this->hgconf->map_ad_slot); } */ if ($this->item->lon) { $region = "hotel"; $base = array('lat' => $this->item->lat, 'lon' => $this->item->lon, 'zoom' => $this->item->zoom, 'maptype' => $this->item->maptype); echo hg_html::showmap($this->hgconf, $base, $this->mapdatas, $type, '', false, true, $this->hgconf->map_adsense, $this->hgconf->map_publisher_id, $this->hgconf->map_ad_slot); } /* ?> <style type="text/css"> <?php if ($this->hgconf->box == 'Black') { ?> .qthead-round1 ul.qtabs li { background:#eeeeee url(<?php echo JURI::base()?>components/com_hotelguide/assets/images/round2l.gif) no-repeat scroll 0% 0%; } .qthead-round1 ul.qtabs li span { background: transparent url(<?php echo JURI::base()?>components/com_hotelguide/assets/images/round2r.gif) no-repeat scroll right top; } <?php } else { ?> .qthead-round1 ul.qtabs li { background:#eeeeee url(<?php echo JURI::base()?>components/com_hotelguide/assets/images/round1l.gif) no-repeat scroll 0% 0%;
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with HOTELGUIDE; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ defined('_JEXEC') or die('Restricted access'); if (isset($this->continent) && $this->countryname) { $regione = "continent"; $base = array('lat' => $this->countryname[0]->lat, 'lon' => $this->countryname[0]->lon, 'zoom' => $this->countryname[0]->zoom, 'maptype' => $this->hgconf->maptype); echo hg_html::showmap($this->hgconf, $base, $this->countryname, $regione, $this->continent->name, false, false, $this->hgconf->map_adsense, $this->hgconf->map_publisher_id, $this->hgconf->map_ad_slot); } else { if (isset($this->continents)) { $regione = "continent"; $base = array('lat' => $this->continents[0]->lat, 'lon' => $this->continents[0]->lon, 'zoom' => $this->continents[0]->zoom, 'maptype' => $this->hgconf->maptype); echo hg_html::showmap($this->hgconf, $base, $this->continents, $regione, $this->continents[0]->name, false, false, $this->hgconf->map_adsense, $this->hgconf->map_publisher_id, $this->hgconf->map_ad_slot); } } if ($this->hgconf->mapheight) { $height = $this->hgconf->mapheight; } else { $height = 450; } if ($this->hgconf->box == 'None') { echo '<div style="clear:both;padding-bottom:10px;"></div>' . "\n"; } else { echo hg_html::boxtop(); } echo '<h3 class="title">'; if (isset($this->continent)) { echo JText::_('HG_FIND_COUNTRY_BY_MAP');
} if ($this->params->def('show_page_title', 1)) { echo '<h1>'; echo $this->params->get('page_title'); echo '</h1>' . "\n"; } if ($this->hgconf->search_menu) { //Este muestra el menu //echo hgSelectHelper::ContinentMenu(); echo '<div style="clear:both; margin-bottom:20px;"></div>' . "\n"; } if ($this->hgconf->api_key) { if (count($this->hotels) > 0) { $regione = "hotel"; $base = array('lat' => 0, 'lon' => 0, 'zoom' => 5, 'maptype' => $this->hgconf->maptype); echo hg_html::showmap($this->hgconf, $base, $this->hotels, $regione, "Search", false, false, $this->hgconf->map_adsense, $this->hgconf->conti_publisher_id, $this->hgconf->conti_ad_slot); if ($this->hgconf->mapheight) { $height = $this->hgconf->mapheight; } else { $height = 450; } if ($this->hgconf->box == 'None') { echo '<div class="clear"></div>' . "\n"; } else { echo hg_html::boxtop(); } echo '<h3 class="title">'; echo JText::_('HG_FIND_ACCOMMODATIONS_BY_MAP'); echo '</h3>'; echo '<div id="map_container" style="width:100%">'; echo '<div id="sidebar" style="overflow: auto; height: ' . $height . 'px; width:150px;"></div>';