#key - Liste études
$listEtudes = $this->Etude->query('SELECT `Etude`.`nom`, `Etude`.`phase`, `Etude`.`type`, `Etude`.`stade`, `Etude`.`titre`, `Etude`.`etat`, `Etude`.`nombre_patients`, `Organe`.`nom`, `Investigateur`.`nom` FROM `etudes` AS `Etude` 
			LEFT JOIN `investigateurs` AS `Investigateur` ON (`Etude`.`investigateur_id` = `Investigateur`.`id`) 
			LEFT JOIN `organes` AS `Organe` ON (`Etude`.`organe_id` = `Organe`.`id`) 
			WHERE 1 = 1 
			ORDER BY 
				`Organe`.`nom` ASC, 
				`Etude`.`stade` ASC,
				`Etude`.`nom` ASC, 
				`Etude`.`date_ouverture` ASC');

		# On génére le fichier XML
			$xml = "\n";
			$xml .= "\n";
			foreach($listEtudes as $id => $v) {
				$xml .= "\t\n\t\t";
				$xml .= "\n\t\t";
				$xml .= "\n\t\t";
				$xml .= "\n\t\t";
				$xml .= "\n\t\t";
				$xml .= "\n\t\t";
				$xml .= "\n\t\t";
				$xml .= "\n\t\t";
				$xml .= "\n\t\t";
				$xml .= "\n\t";
				$xml .= "\n";
			}
			$xml .= "";
			$filename = ROOT.DS.'..'.DS.'liste.xml';
			if(file_exists($filename)) {
				$f = fopen($filename.'.tmp', 'w'); # On ouvre le fichier temporaire
				fwrite($f, trim($xml)); # On écrit
				fclose($f); # On ferme
				unlink($filename);
				rename($filename.'.tmp', $filename); # On renomme le fichier temporaire avec le nom de l'ancien
			} else {
				$f = fopen($filename, 'w'); # On ouvre le fichier
				fwrite($f, trim($xml)); # On écrit
				fclose($f); # On ferme
			}
			# On place les bons droits
			chmod($filename,0644);