Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 229 → Rev 230

/trunk/modules/fiche/Fiche.php
13,6 → 13,8
* @version $Id$
*/
class Fiche extends aControleur {
private $onglet = 'synthese';
public function initialiser() {
$this->capturerParametres();
}
26,9 → 28,18
$this->executerAction('Recherche', 'executerAccueil', $donnees_recherche);
$blocs_niveaux = $this->recupererTableauConfig('blocs_fiche_defaut');
$donnees['blocs'] = '"'.str_replace('|', '","', $blocs_niveaux[Registre::get('parametres.niveau')]).'"';
$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil', $donnees), true);
if (isset($_GET['onglet'])) {
echo $this->getVue('fiche_'.$this->onglet, $donnees);exit;
} else {
$donnees['onglet'] = $this->getVue('fiche_'.$this->onglet, $donnees);
$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil', $donnees), true);
}
}
public function executerOnglet(){
echo $this->getVue('fiche_'.$this->onglet, $donnees);
}
private function capturerParametres() {
if (isset($_GET['nom'])) {
$this->nom = $_GET['nom'];
40,6 → 51,9
if (isset($_GET['niveau'])) {
Registre::set('parametres.niveau', $_GET['niveau']);
}
if (isset($_GET['onglet'])) {
$this->onglet = $_GET['onglet'];
}
}
protected function recupererTableauConfig($param) {