Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 352 → Rev 353

/trunk/interfaces/controleurs/Informations.php
72,6 → 72,7
"nomadd" => array("Commentaires nomenclaturaux","","Commentaires nomenclaturaux pouvant être associés à un nom (voir tableau 8 du manuel technique)"),
"nsr" => array("Nom retenu sans auteur","","Nom scientifique du nom retenu sans auteur"),
"hom" => array("Homonymie","","Contient la valeur 1 si le nom possède un homonyme ou si le nom est un homonyme. Dans le cas contraire"),
"syn" => array("Statut du nom", "", "retenu, synonyme, ambigü, calculé à partir des num_nom et num_nom_retenu"),
"synprop" => array("Synonyme proprate","","Contient plusieurs identifiants numériques (num_nom) dans le cas d'un nom obtenu suite à la division d'un taxon. Contient un seul identifiant numérique (num_nom) dans le cas d'un nom obtenu suite à la fusion de plusieurs taxons."),
"syndout" => array("Synonyme douteux","","Contient la valeur 1 si le nom est un synonyme douteux. Dans le cas contraire"),
"synmapp" => array("Synonyme mal appliqué","","Contient la valeur 1 si le nom est un synonyme mal appliqué (cas des sensu). Dans le cas contraire"),
145,8 → 146,26
$urlLien = Config::get("base_url_telechargements") . $dossierDateEtNomDeFichier;
$donnees['url_telechargement_zip'] = $urlLien;
}
//$this->transformerEnXls($ref, $dossier);
$this->setSortie(self::RENDU_CORPS, $this->getVue('detail_referentiel', $donnees), false);
}
public function transformerEnXls($fichier, $dossier) {
include '../bibliotheque/utilitaires/PHPExcel/IOFactory.php';
$dossier .= date('Y_m_d').'/';
$objReader = PHPExcel_IOFactory::createReader('CSV');
// If the files uses a delimiter other than a comma (e.g. a tab), then tell the reader
$objReader->setDelimiter("\t");
// If the files uses an encoding other than UTF-8 or ASCII, then tell the reader
$objReader->setInputEncoding('UTF-8');
$objPHPExcel = $objReader->load($fichier);
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
$objWriter->save($dossier.'MyExcelFile.xls');
}
 
// exécute la partie commune entre l'action "detail" et l'action "telecharger"
protected function preparerPagePourDetailReferentielEtTelechargement() {