| Line 1009... |
Line 1009... |
| 1009 |
private function construireWhereNumTaxonAvecSousTaxons() {
|
1009 |
private function construireWhereNumTaxonAvecSousTaxons() {
|
| 1010 |
$sql = '';
|
1010 |
$sql = '';
|
| 1011 |
// Récupération des coordonnées depuis l'id station
|
1011 |
// Récupération des coordonnées depuis l'id station
|
| 1012 |
extract($this->parametres);
|
1012 |
extract($this->parametres);
|
| 1013 |
if (isset($this->parametres['num_nom_ret']) && !$this->etreNull($num_nom_ret)) {
|
1013 |
if (isset($this->parametres['num_nom_ret']) && !$this->etreNull($num_nom_ret)) {
|
| - |
|
1014 |
$num_nom_retenu = $num_nom_ret;
|
| 1014 |
$sous_taxons = $this->obtenirSousTaxons($this->parametres['num_nom_ret']);
|
1015 |
$sous_taxons = $this->obtenirSousTaxons($this->parametres['num_nom_ret']);
|
| 1015 |
if(!empty($sous_taxons)) {
|
1016 |
if(!empty($sous_taxons)) {
|
| 1016 |
$sql_in_sous_tax = implode(',', $sous_taxons);
|
1017 |
$sql_in_sous_tax = implode(',', $sous_taxons);
|
| 1017 |
$sql = " AND (nom_sel_nn = ".$num_nom_retenu." OR ".
|
1018 |
$sql = " AND (nom_sel_nn = ".$num_nom_retenu." OR ".
|
| 1018 |
"nom_ret_nn IN (".$num_nom_retenu.', '.$sql_in_sous_tax.") ".
|
1019 |
"nom_ret_nn IN (".$num_nom_retenu.', '.$sql_in_sous_tax.") ".
|