Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1242 → Rev 1243

/trunk/modules/fiche/Fiche.php
115,7 → 115,12
 
// onglet
$donnees['onglet'] = $this->onglet;
$taxons = new Taxons();
$referentiel = $this->conteneur->getParametre('referentiel');
$donnees['permalien_num_nom'] = $taxons->getUrlPermalienNumNom($referentiel, 1, $this->conteneur->getNomCourant()->getNns());
$donnees['entete'] = $this->getVue('fiche_entete', $donnees);
$donnees['contenu_onglet'] = $this->getVue($squelette, $donnees);
$donnees['base_url_onglets'] = Config::get('base_url_application_onglets');
 
$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil_niveau'.$niveau, $donnees), true);
160,8 → 165,25
public function executerOnglet(){
$this->viderSorties();
$donnees = $this->obtenirDonnees();
$squelette_onglet = $this->onglet;
// onglet
$donnees['onglet'] = $this->onglet;
$taxons = new Taxons();
$referentiel = $this->conteneur->getParametre('referentiel');
$donnees['permalien_num_nom'] = $taxons->getUrlPermalienNumNom($referentiel, 1, $this->conteneur->getNomCourant()->getNns());
// cas particulier de l'onglet synthese qui possède 3 niveaux
// et dont le nom n'est donc pas directement celui de son squelette
if($this->onglet == "synthese") {
$niveau = isset($_GET['niveau']) ? $_GET['niveau'] : 2;
$squelette_onglet .= '_niveau'.$niveau;
$entete = $this->getVue('fiche_entete', $donnees);
$vue = $entete.$this->getVue('fiche_'.$squelette_onglet, $donnees);
} else {
$vue = $this->getVue('fiche_'.$squelette_onglet, $donnees);
}
header('Content-type: text/html');
$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_'.$this->onglet, $donnees));
$this->setSortie(self::RENDU_CORPS, $vue);
}
 
private function obtenirDonnees() {