Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 1030 Rev 1252
Line 133... Line 133...
133
		$conditions = array();
133
		$conditions = array();
134
		if ($nom_champ == 'annee' || $nom_champ == 'rang') {
134
		if ($nom_champ == 'annee' || $nom_champ == 'rang') {
135
			foreach ($valeur as $val) {
135
			foreach ($valeur as $val) {
136
				 $conditions[] = "$nom_champ = ".$this->getBdd()->proteger($val);
136
				 $conditions[] = "$nom_champ = ".$this->getBdd()->proteger($val);
137
			}
137
			}
-
 
138
		}  elseif ($nom_champ == 'referentiel') {
-
 
139
			$conditions[] = 'presence_'.$valeur[0].'="P"';
138
		} else {
140
		} else {
139
			if ($this->parametres['recherche'] == 'etendue') {
141
			if ($this->parametres['recherche'] == 'etendue') {
140
				foreach ($valeur as $val) {
142
				foreach ($valeur as $val) {
141
					$val = $this->modifierValeur($val);
143
					$val = $this->modifierValeur($val);
142
					$conditions[] = "$nom_champ LIKE ".$this->getBdd()->proteger($val);
144
					$conditions[] = "$nom_champ LIKE ".$this->getBdd()->proteger($val);