Subversion Repositories eFlore/Applications.del

Rev

Rev 559 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 559 Rev 596
Line 134... Line 134...
134
			$valeur = trim($valeur);
134
			$valeur = trim($valeur);
Line 135... Line 135...
135
			
135
			
136
			switch($critere) {
136
			switch($critere) {
137
				case "recherche":
137
				case "recherche":
138
					$correspond = $this->correspondAChampDepartement($ligne_image, $valeur) |
138
					$correspond = $this->correspondAChampDepartement($ligne_image, $valeur) |
139
					stristr($ligne_image->observation->nom_sel, $valeur) != '' |
139
					$this->commencePar($valeur, $ligne_image->observation->nom_sel) |
140
					stristr($ligne_image->observation->nom_ret, $valeur) != '' |
140
					$this->commencePar($ligne_image->observation->nom_ret, $valeur) |
141
					stristr($ligne_image->observation->nom_sel, $valeur) != '' |
141
					$this->commencePar($ligne_image->observation->nom_sel, $valeur) |
142
					stristr($ligne_image->observation->nom_ret, $valeur) != '' |
142
					$this->commencePar($ligne_image->observation->nom_ret, $valeur) |
143
					stristr($ligne_image->observation->mots_cles_texte, $valeur) != '' |
143
					$this->commencePar($ligne_image->observation->mots_cles_texte, $valeur) |
144
					stristr($ligne_image->observation->date_observation, $valeur) != '' |
144
					$this->commencePar($ligne_image->observation->date_observation, $valeur) |
145
					stristr($ligne_image->date_prise_de_vue, $valeur) != '' |
145
					$this->commencePar($ligne_image->date_prise_de_vue, $valeur) |
146
					stristr($ligne_image->observation->zone_geo, $valeur) != '' |
146
					$this->commencePar($ligne_image->observation->zone_geo, $valeur) |
147
					stristr($ligne_image->observation->famille, $valeur) != '' |
147
					$this->commencePar($ligne_image->observation->famille, $valeur) |
148
					stristr($ligne_image->observation->milieu, $valeur) != '' |
148
					$this->commencePar($ligne_image->observation->milieu, $valeur) |
149
					stristr($ligne_image->mots_cles_texte, $valeur) != '' |
149
					$this->commencePar($ligne_image->mots_cles_texte, $valeur) |
150
					$this->correspondAChampNomOuPrenom($ligne_image, $valeur) |
150
					$this->correspondAChampNomOuPrenom($ligne_image, $valeur) |
151
					stristr($ligne_image->courriel_utilisateur, $valeur) != '' 	;		
151
					$this->commencePar($ligne_image->courriel_utilisateur, $valeur);		
152
				break;
152
				break;
153
				case "dpt":
153
				case "dpt":
154
					$correspond = $this->correspondAChampDepartement($ligne_image, $valeur);
154
					$correspond = $this->correspondAChampDepartement($ligne_image, $valeur);
155
				break;
155
				break;
Line 187... Line 187...
187
		}
187
		}
Line 188... Line 188...
188
		
188
		
189
		return $correspond;
189
		return $correspond;
Line -... Line 190...
-
 
190
	}
-
 
191
	
-
 
192
	private function commencePar($botte, $aiguille) {
-
 
193
		return mb_substr($botte, 0, mb_strlen($aiguille)) == $aiguille;
190
	}
194
	}
Line 191... Line 195...
191
	
195
	
192
	private function correspondAChampDepartement($ligne_image, $valeur) {
196
	private function correspondAChampDepartement($ligne_image, $valeur) {
193
		
197