Line 130... |
Line 130... |
130 |
$criteres[] = (in_array($source, array("baznat", "ifn", "vigie_flore")) ) ?
|
130 |
$criteres[] = (in_array($source, array("baznat", "ifn", "vigie_flore")) ) ?
|
131 |
"num_nom = ".$this->taxon['num_nom'] :
|
131 |
"num_nom = ".$this->taxon['num_nom'] :
|
132 |
"nom_scientifique_complet LIKE ".$this->bdd->proteger($this->taxon['nom_sci']) ;
|
132 |
"nom_scientifique_complet LIKE ".$this->bdd->proteger($this->taxon['nom_sci']) ;
|
133 |
if ($this->nomRang == 'espece' || $this->nomRang == 'sous_espece') {
|
133 |
if ($this->nomRang == 'espece' || $this->nomRang == 'sous_espece') {
|
134 |
foreach ($this->taxons as $sousTaxon) {
|
134 |
foreach ($this->taxons as $sousTaxon) {
|
- |
|
135 |
if ($source == "sophy") {
|
- |
|
136 |
if ($sousTaxon['num_nom'] = $sousTaxon['num_nom_retenu']) {
|
- |
|
137 |
$criteres[] =
|
- |
|
138 |
"nom_scientifique_complet LIKE ".$this->bdd->proteger($sousTaxon['nom_sci']) ;
|
- |
|
139 |
}
|
- |
|
140 |
} else {
|
135 |
$criteres[] = (in_array($source, array("baznat", "ifn", "vigie_flore"))) ?
|
141 |
$criteres[] = (in_array($source, array("baznat", "ifn", "vigie_flore"))) ?
|
136 |
"num_nom = ".$sousTaxon['num_nom'] :
|
142 |
"num_nom = ".$sousTaxon['num_nom'] :
|
137 |
"nom_scientifique_complet LIKE ".$this->bdd->proteger($sousTaxon['nom_sci']) ;
|
143 |
"nom_scientifique_complet LIKE ".$this->bdd->proteger($sousTaxon['nom_sci']) ;
|
- |
|
144 |
}
|
138 |
}
|
145 |
}
|
139 |
} elseif ($this->nomRang == 'famille') {
|
146 |
} elseif ($this->nomRang == 'famille') {
|
140 |
foreach ($this->genres as $genre) {
|
147 |
foreach ($this->genres as $genre) {
|
141 |
$criteres[] = "nom_scientifique_complet LIKE ".$this->bdd->proteger($genre['nom_sci']."%");
|
148 |
$criteres[] = "nom_scientifique_complet LIKE ".$this->bdd->proteger($genre['nom_sci']."%");
|
142 |
}
|
149 |
}
|