Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 677 | Rev 772 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 677 Rev 709
Line 68... Line 68...
68
	public function executerActionParDefaut() {
68
	public function executerActionParDefaut() {
69
		$this->executerFiche();
69
		$this->executerFiche();
70
	}
70
	}
Line 71... Line 71...
71
 
71
 
72
	public function executerFiche(){
-
 
73
		
72
	public function executerFiche(){
Line 74... Line 73...
74
		$squelette = 'fiche_'.$this->onglet;
73
		$squelette = 'fiche_'.$this->onglet;
75
		
74
		
76
		//Gestion du niveau
75
		//Gestion du niveau
Line 90... Line 89...
90
		$donnees['onglet'] = $this->onglet;
89
		$donnees['onglet'] = $this->onglet;
91
		$donnees['contenu_onglet'] = $this->getVue($squelette, $donnees);
90
		$donnees['contenu_onglet'] = $this->getVue($squelette, $donnees);
Line 92... Line 91...
92
		
91
		
93
		
92
		
94
		$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil_niveau'.$niveau, $donnees), true);
93
		$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil_niveau'.$niveau, $donnees), true);
Line 95... Line 94...
95
		$this->ajouterLienModuleExport();
94
		$this->ajouterPiedDePage();
96
	}
95
	}
-
 
96
 
-
 
97
	public function ajouterLienModuleExport() {
-
 
98
		$donnees['lien'] = $this->url->obtenirUrlPdfExport($this->parametres['num_nom']);
-
 
99
		$export = $this->getVue('fiche_pdf_lien', $donnees);
-
 
100
		return $export;
-
 
101
	}
-
 
102
	
-
 
103
	public function ajouterPiedDePage() {
-
 
104
		$description = new Description($this->conteneur);
-
 
105
		$taxons = new Taxons($this->conteneur);
-
 
106
		$referentiel = $this->conteneur->getParametre('referentiel');
-
 
107
		$donnees = array('wikipedia' => $description->getWikipedia(),
-
 
108
						 'export_pdf' => $this->ajouterLienModuleExport(),
-
 
109
						 'permalien_num_nom' => $taxons->getUrlPermalienNumNom($referentiel, 1, $this->conteneur->getNomCourant()->getNns()),
-
 
110
						 'permalien_taxon' => $taxons->getUrlPermalienTaxon($referentiel, 1, $this->conteneur->getNomCourant()->getNt()),
97
 
111
						 'nn' => $this->conteneur->getNomCourant()->getNns(),
98
	public function ajouterLienModuleExport() {
112
						 'nt' => $this->conteneur->getNomCourant()->getNt(),
Line 99... Line 113...
99
		$donnees['lien'] = $this->url->obtenirUrlPdfExport($this->parametres['num_nom']);
113
						 'wiki' => $description->getLienWikini());
100
		$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_pdf_lien', $donnees), true);
114
		$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_pied_page', $donnees), true);
101
	}
115
	}