Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 997 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 997 Rev 1002
Line 111... Line 111...
111
	}
111
	}
Line 112... Line 112...
112
	
112
	
113
	private function construireWhereTaxonMoissonnage($source) {
113
	private function construireWhereTaxonMoissonnage($source) {
114
		$nomRang = $this->obtenirNomRang();
114
		$nomRang = $this->obtenirNomRang();
115
		$criteres = array();
-
 
116
 
115
		$criteres = array();
-
 
116
		$criteres[] = ($source == "baznat" || $source == "ifn") ? 
117
		$nom = ($source == "baznat") ? implode('%',explode(' ',$this->taxon['nom_complet'] )) : $this->taxon['nom_sci'] ;
117
						"num_nom = ".$this->taxon['num_nom'] : 
118
		$criteres[] = "nom_scientifique_complet LIKE ".$this->bdd->proteger($nom);
118
						"nom_scientifique_complet LIKE ".$this->bdd->proteger($this->taxon['nom_sci']) ;
119
		if ($this->nomRang == 'espece' || $this->nomRang == 'sous_espece') {
119
		if ($this->nomRang == 'espece' || $this->nomRang == 'sous_espece') {
120
			foreach ($this->taxons as $sousTaxon) {
120
			foreach ($this->taxons as $sousTaxon) {
-
 
121
				$criteres[] = ($source == "baznat" || $source == "ifn") ?
121
				$nom = ($source == "baznat") ? implode('%',explode(' ',$sousTaxon['nom_complet'] )) : $sousTaxon['nom_sci'];
122
										"num_nom = ".$sousTaxon['num_nom'] : 
122
				$criteres[] = "nom_scientifique_complet LIKE ".$this->bdd->proteger($nom);
123
										"nom_scientifique_complet LIKE ".$this->bdd->proteger($sousTaxon['nom_sci']) ;
123
			}
124
			}
124
		} elseif ($this->nomRang == 'famille') {
125
		} elseif ($this->nomRang == 'famille') {
125
			foreach ($this->genres as $genre) {
126
			foreach ($this->genres as $genre) {
126
				$criteres[] = "nom_scientifique_complet LIKE ".$this->bdd->proteger($genre['nom_sci']."%");
127
				$criteres[] = "nom_scientifique_complet LIKE ".$this->bdd->proteger($genre['nom_sci']."%");