Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1030 → Rev 1031

/trunk/modules/pdf_export/PdfExport.php
110,11 → 110,10
}
 
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');
}
}
 
123,12 → 122,15
}
 
public function executerPdfExport(){
$nom_fichier = $this->getNomFichierValide();
$this->capturerParametresFormulaire();
$hash = crc32(implode('-', $this->blocs));
$nom_fichier = $this->getNomFichierValide().'-'.$hash;
 
$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) {