Subversion Repositories Applications.referentiel

Rev

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

Rev 344 Rev 388
Line 97... Line 97...
97
	public function getElementTraitement($params_url) {
97
	public function getElementTraitement($params_url) {
98
		$p = $this->traiterParametresUrl(array('id'), $params_url);
98
		$p = $this->traiterParametresUrl(array('id'), $params_url);
99
		extract($p);
99
		extract($p);
100
		$requete =	'SELECT * '.
100
		$requete =	'SELECT * '.
101
					"FROM ref_resultat ".
101
					"FROM ref_resultat ".
102
					"WHERE ce_traitement = $id ";
102
					"WHERE ce_traitement = $id order by id_resultat ";
103
		// Récupération des résultats
103
		// Récupération des résultats
104
		try {
104
		try {
105
			$infos = $this->bdd->query($requete)->fetchAll(PDO::FETCH_ASSOC);
105
			$infos = $this->bdd->query($requete)->fetchAll(PDO::FETCH_ASSOC);
106
			if ($infos === false) {
106
			if ($infos === false) {
107
				$this->messages[] = "La requête a retourné aucun résultat.";
107
				$this->messages[] = "La requête a retourné aucun résultat.";
Line 138... Line 138...
138
		}
138
		}
Line 139... Line 139...
139
	   	
139
	   	
140
	   	$this->envoyer($id);
140
	   	$this->envoyer($id);
141
	}
141
	}
142
}
-
 
143
?>
142
}
-
 
143
?>