medecin = new Medecin(); } public function index() { $codeSpecialite = $this->requete->getParametreFormulaire("codeSpecialite"); $nom = $this->requete->getParametreFormulaire("nom"); $prenoms = $this->requete->getParametreFormulaire("prenoms"); $noOrdreMedecin = $this->requete->getParametreFormulaire("noOrdreMedecin"); $medecins = $this->medecin->getmedecinparametrageexport($codeSpecialite, $nom, $prenoms, $noOrdreMedecin) ; // Excel $headerXLS = array( _("Nom"), _("Prénoms"), "Code", _("Spécialité"), _("No Ordre"), _("Genre"), "Tel", "E-mail"); $dataXLS = array(); foreach ($medecins as $medecin) { $dataXLS[]=$medecin; } $classeur = new Spreadsheet(); $classeur->getProperties()->setCreator("INTER-SANTE"); $classeur->setActiveSheetIndex(0); $feuille=$classeur->getActiveSheet(); $feuille->setTitle(_("LISTE DES MEDECINS")); $feuille->fromArray($headerXLS, NULL, 'A1', true); $feuille->fromArray($dataXLS, NULL, 'A2', true); $fichier = 'Temp/TEMP_LISTE_MEDECINS'."_".uniqid().".xlsx"; $writer = new Xlsx($classeur); $writer->save($fichier); $t_html ='