131,6 → 131,7 |
$this->construireWhereTag(). |
$this->construireWhereNombreDeJours(). |
$this->construireWhereAnnee(). |
$this->construireWhereGroupeZoneGeo(). |
' GROUP BY id_coord'; |
|
$resultats_emplacements = Cel::db()->requeter($requete); |
169,7 → 170,8 |
$this->construireWhereProjet(). |
$this->construireWhereTag(). |
$this->construireWhereNombreDeJours(). |
$this->construireWhereAnnee(); |
$this->construireWhereAnnee(). |
$this->construireWhereGroupeZoneGeo(); |
|
$resultats_nb_obs = Cel::db()->requeter($requete); |
return $resultats_nb_obs[0]['nb']; |
355,7 → 357,8 |
$this->construireWhereProjet(). |
$this->construireWhereTag(). |
$this->construireWhereNombreDeJours(). |
$this->construireWhereAnnee(). |
$this->construireWhereAnnee(). |
$this->construireWhereGroupeZoneGeo(). |
'ORDER BY nom_sel ASC '. |
"LIMIT {$this->start},{$this->limit} "; |
//echo $requete;exit; |
504,6 → 507,7 |
$this->construireWhereTag(). |
$this->construireWhereNombreDeJours(). |
$this->construireWhereAnnee(). |
$this->construireWhereGroupeZoneGeo(). |
'ORDER BY nom_ret ASC '. |
"LIMIT {$this->start},{$this->limit} "; |
//$this->debug[] = $requete; |
767,6 → 771,7 |
$this->construireWhereReferentiel(). |
$this->construireWhereProjet(). |
$this->construireWhereTag(). |
$this->construireWhereGroupeZoneGeo(). |
'ORDER BY utilisateur ASC, ordre ASC'; |
//$this->debug[] = $requete; |
//die($requete); |
1104,7 → 1109,24 |
} |
return $sql; |
} |
|
private function construireWhereGroupeZoneGeo() { |
$sql = null; |
extract($this->parametres); |
if (isset($groupe_zones_geo) && !$this->etreNull($groupe_zones_geo)) { |
$req = "SELECT valeur FROM cel_groupes_zones WHERE id_groupe = ".Cel::db()->proteger($groupe_zones_geo); |
$res = Cel::db()->requeter($req); |
|
$zones = array(); |
foreach($res as &$r) { |
$zones[] = Cel::db()->proteger($r['valeur']); |
} |
$sql = 'AND ce_zone_geo IN ('.implode(',', $zones).') '; |
} |
|
return $sql; |
} |
|
/** |
* Traitement de $tag pour construction du filtre dans la requĂȘte |
*/ |