125,6 → 125,7 |
$this->construireWhereProjet(). |
$this->construireWhereTag(). |
$this->construireWhereNombreDeJours(). |
$this->construireWhereAnnee(). |
' GROUP BY id_coord'; |
|
$resultats_emplacements = Cel::db()->requeter($requete); |
162,6 → 163,7 |
$this->construireWhereProjet(). |
$this->construireWhereTag(). |
$this->construireWhereNombreDeJours(); |
$this->construireWhereAnnee(). |
|
$resultats_nb_obs = Cel::db()->requeter($requete); |
return $resultats_nb_obs[0]['nb']; |
346,6 → 348,7 |
$this->construireWhereProjet(). |
$this->construireWhereTag(). |
$this->construireWhereNombreDeJours(). |
$this->construireWhereAnnee(). |
'ORDER BY nom_sel ASC '. |
"LIMIT {$this->start},{$this->limit} "; |
//echo $requete;exit; |
492,6 → 495,7 |
$this->construireWhereProjet(). |
$this->construireWhereTag(). |
$this->construireWhereNombreDeJours(). |
$this->construireWhereAnnee(). |
'ORDER BY nom_ret ASC '. |
"LIMIT {$this->start},{$this->limit} "; |
//$this->debug[] = $requete; |
1075,6 → 1079,15 |
return $sql; |
} |
|
private function construireWhereAnnee() { |
$sql = null; |
extract($this->parametres); |
if (isset($annee) && !$this->etreNull($annee)) { |
$sql = ' AND YEAR(co.date_creation) = ' . Cel::db()->proteger($annee) . ' '; |
} |
return $sql; |
} |
|
/** |
* Traitement de $tag pour construction du filtre dans la requĂȘte |
*/ |