| Line 33... |
Line 33... |
| 33 |
private $blocs = array();
|
33 |
private $blocs = array();
|
| Line 34... |
Line 34... |
| 34 |
|
34 |
|
| 35 |
private $Desc;
|
35 |
private $Desc;
|
| 36 |
private $Ecolo;
|
36 |
private $Ecolo;
|
| 37 |
private $Ethno;
|
- |
|
| 38 |
private $Classi;
|
37 |
private $Ethno;
|
| 39 |
private $Illus;
|
38 |
private $Illus;
|
| 40 |
private $Nomen;
|
39 |
private $Nomen;
|
| 41 |
private $Reparti;
|
40 |
private $Reparti;
|
| 42 |
private $Stat;
|
41 |
private $Stat;
|
| Line 50... |
Line 49... |
| 50 |
$this->chemin_pdf = Config::get('dossier_pdf');
|
49 |
$this->chemin_pdf = Config::get('dossier_pdf');
|
| 51 |
$this->wkhtml = Config::get('WKHTMLTOPDF');
|
50 |
$this->wkhtml = Config::get('WKHTMLTOPDF');
|
| 52 |
$this->Desc = new Description($this->conteneur);
|
51 |
$this->Desc = new Description($this->conteneur);
|
| 53 |
$this->Ecolo = new Ecologie($this->conteneur);
|
52 |
$this->Ecolo = new Ecologie($this->conteneur);
|
| 54 |
$this->Ethno = new Ethnobotanique($this->conteneur);
|
53 |
$this->Ethno = new Ethnobotanique($this->conteneur);
|
| 55 |
$this->Classi = new Classification($this->conteneur);
|
- |
|
| 56 |
$this->Illus = new Illustrations($this->conteneur);
|
54 |
$this->Illus = new Illustrations($this->conteneur);
|
| 57 |
$this->Nomen = new Nomenclature($this->conteneur);
|
55 |
$this->Nomen = new Nomenclature($this->conteneur);
|
| 58 |
$this->Stat = new Statut($this->conteneur);
|
56 |
$this->Stat = new Statut($this->conteneur);
|
| 59 |
$this->Biblio = new Bibliographie($this->conteneur);
|
57 |
$this->Biblio = new Bibliographie($this->conteneur);
|
| 60 |
$this->Reparti = new Repartition($this->conteneur);
|
58 |
$this->Reparti = new Repartition($this->conteneur);
|
| Line 120... |
Line 118... |
| 120 |
if (!empty($_POST['bloc'])) {
|
118 |
if (!empty($_POST['bloc'])) {
|
| 121 |
$this->blocs = $_POST['bloc'];
|
119 |
$this->blocs = $_POST['bloc'];
|
| 122 |
} else {
|
120 |
} else {
|
| 123 |
$this->blocs = array('description', 'ecologie', 'ethnobotanique',
|
121 |
$this->blocs = array('description', 'ecologie', 'ethnobotanique',
|
| 124 |
'statuts', 'illustrations', 'bibliographie',
|
122 |
'statuts', 'illustrations', 'bibliographie',
|
| 125 |
'classification', 'repartition', 'nomenclature');
|
123 |
'repartition', 'nomenclature');
|
| 126 |
}
|
124 |
}
|
| 127 |
}
|
125 |
}
|
| Line 128... |
Line 126... |
| 128 |
|
126 |
|
| 129 |
public function executerActionParDefaut() {
|
127 |
public function executerActionParDefaut() {
|
| Line 165... |
Line 163... |
| 165 |
'version' => $version['version']);
|
163 |
'version' => $version['version']);
|
| 166 |
$donnees['description'] = $this->Desc->obtenirDonneesExport();
|
164 |
$donnees['description'] = $this->Desc->obtenirDonneesExport();
|
| 167 |
$donnees['ecologie'] = $this->Ecolo->obtenirDonneesExport();
|
165 |
$donnees['ecologie'] = $this->Ecolo->obtenirDonneesExport();
|
| 168 |
$donnees['statuts'] = $this->Stat->obtenirDonnees();
|
166 |
$donnees['statuts'] = $this->Stat->obtenirDonnees();
|
| 169 |
$donnees['ethnobotanique'] = $this->Ethno->obtenirDonnees();
|
167 |
$donnees['ethnobotanique'] = $this->Ethno->obtenirDonnees();
|
| 170 |
$donnees['classification'] = $this->Classi->obtenirDonnees();
|
- |
|
| 171 |
$donnees['illustrations'] = $this->Illus->obtenirDonneesExport();
|
168 |
$donnees['illustrations'] = $this->Illus->obtenirDonneesExport();
|
| 172 |
$donnees['nomenclature'] = $this->Nomen->obtenirDonnees();
|
169 |
$donnees['nomenclature'] = $this->Nomen->obtenirDonnees();
|
| 173 |
$donnees['repartition'] = $this->Reparti->obtenirDonneesExport();
|
170 |
$donnees['repartition'] = $this->Reparti->obtenirDonneesExport();
|
| 174 |
$donnees['bibliographie'] = $this->Biblio->obtenirDonnees();
|
171 |
$donnees['bibliographie'] = $this->Biblio->obtenirDonnees();
|
| 175 |
$donnees['premier'] = $this->blocs[0];// pour page-break : éviter 1ere page vide si bloc trop long
|
172 |
$donnees['premier'] = $this->blocs[0];// pour page-break : éviter 1ere page vide si bloc trop long
|