Subversion Repositories Applications.bazar

Rev

Rev 283 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 283 Rev 313
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: bazar.carte_google.php,v 1.4 2007-08-27 12:27:34 alexandre_tb Exp $
22
// CVS : $Id: bazar.carte_google.php,v 1.5 2007-10-01 12:07:03 alexandre_tb Exp $
23
/**
23
/**
24
* 
24
* 
25
*@package bazar
25
*@package bazar
26
//Auteur original :
26
//Auteur original :
27
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
27
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
28
//Autres auteurs :
28
//Autres auteurs :
29
*@copyright     Tela-Botanica 2000-2007
29
*@copyright     Tela-Botanica 2000-2007
30
*@version       $Revision: 1.4 $
30
*@version       $Revision: 1.5 $
31
// +------------------------------------------------------------------------------------------------------+
31
// +------------------------------------------------------------------------------------------------------+
32
*/
32
*/
Line 33... Line 33...
33
 
33
 
34
// +------------------------------------------------------------------------------------------------------+
34
// +------------------------------------------------------------------------------------------------------+
Line 49... Line 49...
49
 
49
 
Line 50... Line 50...
50
// requete sur le bazar pour recuperer les evenements
50
// requete sur le bazar pour recuperer les evenements
51
 
51
 
52
$requete = 'select * from bazar_fiche where ';
52
$requete = 'select * from bazar_fiche where ';
-
 
53
if ($GLOBALS['_BAZAR_']['id_typeannonce'] != '') $requete .= 'bf_ce_nature in ('.$GLOBALS['_BAZAR_']['id_typeannonce'].') and ' ;
53
if ($GLOBALS['_BAZAR_']['id_typeannonce'] != '') $requete .= 'bf_ce_nature in ('.$GLOBALS['_BAZAR_']['id_typeannonce'].') and ' ;
54
$requete .= ' ((bf_date_debut_validite_fiche<=now() and bf_date_fin_validite_fiche>=now()) or (bf_date_fin_validite_fiche="0000-00-00"' .
54
$requete .= ' ((bf_date_debut_validite_fiche<=now() and bf_date_fin_validite_fiche>=now()) or bf_date_fin_validite_fiche="0000-00-00")'.
55
		' and date_add(bf_date_fin_evenement,interval 15 day)>now()))'.
Line 55... Line 56...
55
			' and bf_statut_fiche=1';
56
			' and bf_statut_fiche=1';
56
$resultat = $GLOBALS['_BAZAR_']['db']->query ($requete);
57
$resultat = $GLOBALS['_BAZAR_']['db']->query ($requete);
57
 
58
 
Line 58... Line 59...
58
if (DB::isError($resultat)) {
59
if (DB::isError($resultat)) {
59
	BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage().'<br />'.$resultat->getDebugInfo(), $requete);echo $requete;
60
	return BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage().'<br />'.$resultat->getDebugInfo(), $requete);echo $requete;
60
}
61
}
Line 148... Line 149...
148
	  map.addControl(new GMapTypeControl());
149
	  map.addControl(new GMapTypeControl());
149
	  map.addControl(new GScaleControl());
150
	  map.addControl(new GScaleControl());
150
	  map.enableContinuousZoom();
151
	  map.enableContinuousZoom();
Line 151... Line 152...
151
	
152
	
152
	  // On centre la carte sur le languedoc roussillon
153
	  // On centre la carte sur le languedoc roussillon
153
	  center = new GLatLng(43.84245116699036, 3.768310546875);
154
	  center = new GLatLng('.BAZ_GOOGLE_CENTRE_LAT.', '.BAZ_GOOGLE_CENTRE_LON.');
154
      map.setCenter(center, 7);
155
      map.setCenter(center, '.BAZ_GOOGLE_ALTITUDE.');
155
	  map.setMapType(G_HYBRID_MAP);
156
	  map.setMapType(G_HYBRID_MAP);
156
      ' .
157
      ' .
157
      $script_marker.'
158
      $script_marker.'
158
    }
159
    }
Line 174... Line 175...
174
 
175
 
175
 
176
 
176
/* +--Fin du code ----------------------------------------------------------------------------------------+
177
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
178
*
-
 
179
* $Log: not supported by cvs2svn $
-
 
180
* Revision 1.4  2007-08-27 12:27:34  alexandre_tb
-
 
181
* mise en place d un icone personnalise
177
*
182
* et de l affichage de plusieurs donnees sur un meme point
178
* $Log: not supported by cvs2svn $
183
*
179
* Revision 1.3  2007-07-04 10:08:41  alexandre_tb
184
* Revision 1.3  2007-07-04 10:08:41  alexandre_tb
180
* Appel du template carte_google
185
* Appel du template carte_google
181
*
186
*