Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1031 → Rev 1030

/trunk/modules/pdf_export/PdfExport.php
110,10 → 110,11
}
 
private function capturerParametresFormulaire() {
$this->blocs = array('description', 'ecologie', 'ethnobotanique', 'statuts', 'illustrations',
'bibliographie', 'repartition', 'nomenclature');
if (!empty($_POST['bloc'])) {
$this->blocs = $_POST['bloc'];
} else {
$this->blocs = array('description', 'ecologie', 'ethnobotanique', 'statuts', 'illustrations',
'bibliographie', 'repartition', 'nomenclature');
}
}
 
122,15 → 123,12
}
 
public function executerPdfExport(){
$this->capturerParametresFormulaire();
$hash = crc32(implode('-', $this->blocs));
$nom_fichier = $this->getNomFichierValide().'-'.$hash;
 
$nom_fichier = $this->getNomFichierValide();
$this->fichier_html = $this->chemin_pdf.''.$nom_fichier.'.html';
$this->fichier_pdf = $this->chemin_pdf.''.$nom_fichier.'.pdf';
 
if (file_exists($this->fichier_pdf) == false) {
 
$this->capturerParametresFormulaire();
$donnees = $this->obtenirDonnees();
$this->construireHtml($donnees);
if ($this->transformerHtmlEnPdf() == false) {