Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2143 Rev 2385
Line 43... Line 43...
43
			$requete .= " ORDER BY $referentiel_demande LIMIT ".$_GET['start'].','.$_GET['limit'];
43
			$requete .= " ORDER BY $referentiel_demande LIMIT ".$_GET['start'].','.$_GET['limit'];
44
		}
44
		}
45
		$resultat = Cel::db()->requeter($requete);
45
		$resultat = Cel::db()->requeter($requete);
Line 46... Line 46...
46
 
46
 
-
 
47
		$referentiel = array();
47
		$referentiel = array();
48
		if (is_array($resultat)) {
48
		foreach ($resultat as $cle => $valeur) {
49
			foreach ($resultat as $cle => $valeur) {
49
			if ($this->estUneValeurValide($valeur[$referentiel_demande])) {
50
				if ($this->estUneValeurValide($valeur[$referentiel_demande])) {
50
				$referentiel[] = $valeur[$referentiel_demande];
51
					$referentiel[] = $valeur[$referentiel_demande];
Line -... Line 52...
-
 
52
				}
51
			}
53
 
52
 
54
			}
53
		}
55
		}
54
		$this->envoyerJson($referentiel);
56
		$this->envoyerJson($referentiel);