Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 391 → Rev 392

/trunk/bazar.carte_google.php
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.7 2007-12-14 09:59:15 alexandre_tb Exp $
// CVS : $Id: bazar.carte_google.php,v 1.8 2008-09-17 14:08:45 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.7 $
*@version $Revision: 1.8 $
// +------------------------------------------------------------------------------------------------------+
*/
 
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,13 → 157,18
// 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.'
}
};
// Creates a marker at the given point with the given number label
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 .= '
}
};
';
GEN_stockerCodeScript($script);
// On ajoute l attribut load a la balise body
173,7 → 178,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 → 190,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.7 2007-12-14 09:59:15 alexandre_tb
* Fusion avec la livraison AHA : 14 decembre 2007
*
* Revision 1.6 2007-12-04 16:20:23 jp_milcent
* Fusion avec la livraison AHA : 4 décembre 2007
*