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.4 2007-08-27 12:27:34 alexandre_tb Exp $ |
// CVS : $Id: bazar.carte_google.php,v 1.5 2007-10-01 12:07:03 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.4 $ |
*@version $Revision: 1.5 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
51,12 → 51,13 |
|
$requete = 'select * from bazar_fiche where '; |
if ($GLOBALS['_BAZAR_']['id_typeannonce'] != '') $requete .= 'bf_ce_nature in ('.$GLOBALS['_BAZAR_']['id_typeannonce'].') and ' ; |
$requete .= ' ((bf_date_debut_validite_fiche<=now() and bf_date_fin_validite_fiche>=now()) or bf_date_fin_validite_fiche="0000-00-00")'. |
$requete .= ' ((bf_date_debut_validite_fiche<=now() and bf_date_fin_validite_fiche>=now()) or (bf_date_fin_validite_fiche="0000-00-00"' . |
' and date_add(bf_date_fin_evenement,interval 15 day)>now()))'. |
' and bf_statut_fiche=1'; |
$resultat = $GLOBALS['_BAZAR_']['db']->query ($requete); |
|
if (DB::isError($resultat)) { |
BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage().'<br />'.$resultat->getDebugInfo(), $requete);echo $requete; |
return BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage().'<br />'.$resultat->getDebugInfo(), $requete);echo $requete; |
} |
|
// Le code complique avec ces 2 tableaux sert |
150,8 → 151,8 |
map.enableContinuousZoom(); |
|
// On centre la carte sur le languedoc roussillon |
center = new GLatLng(43.84245116699036, 3.768310546875); |
map.setCenter(center, 7); |
center = new GLatLng('.BAZ_GOOGLE_CENTRE_LAT.', '.BAZ_GOOGLE_CENTRE_LON.'); |
map.setCenter(center, '.BAZ_GOOGLE_ALTITUDE.'); |
map.setMapType(G_HYBRID_MAP); |
' . |
$script_marker.' |
176,6 → 177,10 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.4 2007-08-27 12:27:34 alexandre_tb |
* mise en place d un icone personnalise |
* et de l affichage de plusieurs donnees sur un meme point |
* |
* Revision 1.3 2007-07-04 10:08:41 alexandre_tb |
* Appel du template carte_google |
* |