Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3616 → Rev 3617

/trunk/jrest/services/CelWidgetMapPoint.php
121,8 → 121,7
"WHERE transmission = '1' ".
$this->standard.
" AND (".
(($this->communeEstDemandee()) ? $this->construireWhereCommuneSansCoordonneesAvecSensibles() : $this->construireWhereCoordonneesSansSensibles()).
$this->construireWhereRectangleStationOR()." OR ".
$this->construireWhereRectangleStationOR()." OR ".
$this->construireWhereRectangleCommuneOR().") ".
$this->construireWhereDept().
$this->construireWhereCommune().
139,6 → 138,7
$this->construireWhereNombreDeJours().
$this->construireWhereAnnee().
$this->construireWhereGroupeZoneGeo().
(($this->communeEstDemandee()) ? $this->construireWhereCommuneSansCoordonneesAvecSensibles() : $this->construireWhereCoordonneesSansSensibles()).
' GROUP BY id_coord';
 
$resultats_emplacements = Cel::db()->requeter($requete);
163,8 → 163,7
"WHERE transmission = '1' ".
$this->standard.
" AND (".
(($this->communeEstDemandee()) ? $this->construireWhereCommuneSansCoordonneesAvecSensibles() : $this->construireWhereCoordonneesSansSensibles()).
$this->construireWhereRectangleStationOR()." OR ".
$this->construireWhereRectangleStationOR()." OR ".
$this->construireWhereRectangleCommuneOR().") ".
$this->construireWhereDept().
$this->construireWhereCommune().
180,7 → 179,8
$this->construireWhereTag().
$this->construireWhereNombreDeJours().
$this->construireWhereAnnee().
$this->construireWhereGroupeZoneGeo();
$this->construireWhereGroupeZoneGeo()
(($this->communeEstDemandee()) ? $this->construireWhereCommuneSansCoordonneesAvecSensibles() : $this->construireWhereCoordonneesSansSensibles());
 
$resultats_nb_obs = Cel::db()->requeter($requete);
return $resultats_nb_obs[0]['nb'];
972,7 → 972,7
"(latitude = '000null' OR latitude = '' OR latitude = 0 OR latitude IS NULL) AND ".
"(longitude = '000null' OR longitude = '' OR longitude = 0 OR longitude IS NULL) ".
')'.
' OR mots_cles_texte LIKE "%sensible%"'.
' OR localite_floutage IN ("localité", "10x10km")'.
') ';
return $sql;
}