19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: bazar.carte_google.php,v 1.5.2.2 2007-12-14 09:57:15 alexandre_tb Exp $ |
// CVS : $Id: bazar.carte_google.php,v 1.5.2.3 2008-01-29 09:41:11 alexandre_tb Exp $ |
/** |
* |
*@package bazar |
27,7 → 27,7 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2007 |
*@version $Revision: 1.5.2.2 $ |
*@version $Revision: 1.5.2.3 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
46,7 → 46,7 |
GEN_stockerStyleExterne( 'bazar_interne', 'client/bazar/bazar.interne.css'); |
} |
$GLOBALS['_BAZAR_']['id_typeannonce']=$GLOBALS['_GEN_commun']['info_application']->id_nature; |
|
$GLOBALS['_BAZAR_']['categorie_nature']=$GLOBALS['_GEN_commun']['info_application']->categorie_nature; |
// requete sur le bazar pour recuperer les evenements |
|
$requete = 'select * from bazar_fiche where '; |
157,10 → 157,17 |
// On centre la carte sur le languedoc roussillon |
center = new GLatLng('.BAZ_GOOGLE_CENTRE_LAT.', '.BAZ_GOOGLE_CENTRE_LON.'); |
map.setCenter(center, '.BAZ_GOOGLE_ALTITUDE.'); |
map.setMapType(G_HYBRID_MAP); |
' . |
$script_marker.' |
} |
map.setMapType(G_HYBRID_MAP);' ; |
if (BAZ_GOOGLE_FOND_KML != '') { |
$script .= 'var geoXml = new GGeoXml("'.BAZ_GOOGLE_FOND_KML.'");'; |
} |
|
$script .= $script_marker; |
if (BAZ_GOOGLE_FOND_KML != '') { |
$script .= 'map.addOverlay(geoXml);'; |
} |
$script .= ' |
} |
}; |
// Creates a marker at the given point with the given number label |
|
173,7 → 180,8 |
|
include_once BAZ_CHEMIN_APPLI.'bibliotheque/bazarTemplate.class.php'; |
$modele = new bazarTemplate($GLOBALS['_BAZAR_']['db']); |
$html = $modele->getTemplate(BAZ_TEMPLATE_ACCUEIL_CARTE_GOOGLE, $GLOBALS['_BAZAR_']['langue']); |
$html = $modele->getTemplate(BAZ_TEMPLATE_ACCUEIL_CARTE_GOOGLE, $GLOBALS['_BAZAR_']['langue'], $GLOBALS['_BAZAR_']['categorie_nature']); |
if (PEAR::isError($html)) return $html->getMessage(); |
$res = str_replace ('{CARTE}', '<div id="map" style="width: '.BAZ_GOOGLE_IMAGE_LARGEUR. |
'px; height: '.BAZ_GOOGLE_IMAGE_HAUTEUR.'px"></div>', $html); |
|
184,6 → 192,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.5.2.2 2007-12-14 09:57:15 alexandre_tb |
* utilisation des constantes de la carte google |
* |
* Revision 1.5.2.1 2007-12-04 16:19:32 jp_milcent |
* Ajout de la prise en charge de l'applette body_attributs |
* |