Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 216 Rev 219
Line 22... Line 22...
22
	}
22
	}
Line 23... Line 23...
23
	
23
	
24
	public function executerFiche(){
24
	public function executerFiche(){
25
		$donnees_recherche = array('type_nom' => $this->type_nom, 'nom' => $this->nom);
25
		$donnees_recherche = array('type_nom' => $this->type_nom, 'nom' => $this->nom);
-
 
26
		$this->executerAction('Recherche', 'executerAccueil', $donnees_recherche);
-
 
27
		$blocs_niveaux = $this->recupererTableauConfig('blocs_fiche_defaut');
26
		$this->executerAction('Recherche', 'executerAccueil', $donnees_recherche);
28
		$donnees['blocs'] = '"'.str_replace('|', '","', $blocs_niveaux[Registre::get('parametres.niveau')]).'"';
27
		$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil'), true);
29
		$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil', $donnees), true);
Line 28... Line 30...
28
	}
30
	}
29
	
31
	
30
	private function capturerParametres() {
32
	private function capturerParametres() {
Line 37... Line 39...
37
		
39
		
38
		if (isset($_GET['niveau'])) {
40
		if (isset($_GET['niveau'])) {
39
			Registre::set('parametres.niveau', $_GET['niveau']);
41
			Registre::set('parametres.niveau', $_GET['niveau']);
40
		}
42
		}
-
 
43
	}
-
 
44
	
-
 
45
	protected function recupererTableauConfig($param) {
-
 
46
		$tableau = array();
-
 
47
		$tableauPartiel = explode(',', Config::get($param));
-
 
48
		$tableauPartiel = array_map('trim', $tableauPartiel);
-
 
49
		foreach ($tableauPartiel as $champ) {
-
 
50
			if (strpos($champ, '=') === false) {
-
 
51
				$tableau[] = $champ;
-
 
52
			} else {
-
 
53
				list($cle, $val) = explode('=', $champ);
-
 
54
				$tableau[$cle] = $val;
-
 
55
			}
-
 
56
		}
-
 
57
		return $tableau;
41
	}
58
	}
42
}
59
}
43
?>
60
?>