Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 219 Rev 230
Line 11... Line 11...
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @version		$Id$
13
 * @version		$Id$
14
 */
14
 */
15
class Fiche extends aControleur {
15
class Fiche extends aControleur {
-
 
16
	private $onglet = 'synthese';
-
 
17
	
16
	public function initialiser() {
18
	public function initialiser() {
17
		$this->capturerParametres();
19
		$this->capturerParametres();
18
	}
20
	}
Line 19... Line 21...
19
	
21
	
Line 24... Line 26...
24
	public function executerFiche(){
26
	public function executerFiche(){
25
		$donnees_recherche = array('type_nom' => $this->type_nom, 'nom' => $this->nom);
27
		$donnees_recherche = array('type_nom' => $this->type_nom, 'nom' => $this->nom);
26
		$this->executerAction('Recherche', 'executerAccueil', $donnees_recherche);
28
		$this->executerAction('Recherche', 'executerAccueil', $donnees_recherche);
27
		$blocs_niveaux = $this->recupererTableauConfig('blocs_fiche_defaut');
29
		$blocs_niveaux = $this->recupererTableauConfig('blocs_fiche_defaut');
28
		$donnees['blocs'] = '"'.str_replace('|', '","', $blocs_niveaux[Registre::get('parametres.niveau')]).'"';
30
		$donnees['blocs'] = '"'.str_replace('|', '","', $blocs_niveaux[Registre::get('parametres.niveau')]).'"';
-
 
31
		if (isset($_GET['onglet'])) {
-
 
32
			echo $this->getVue('fiche_'.$this->onglet, $donnees);exit;
-
 
33
		} else {
-
 
34
			$donnees['onglet'] = $this->getVue('fiche_'.$this->onglet, $donnees);
29
		$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil', $donnees), true);
35
			$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil', $donnees), true);
-
 
36
		}
-
 
37
	}
-
 
38
	
-
 
39
	public function executerOnglet(){
-
 
40
		echo $this->getVue('fiche_'.$this->onglet, $donnees);
30
	}
41
	}
Line 31... Line 42...
31
	
42
	
32
	private function capturerParametres() {
43
	private function capturerParametres() {
33
		if (isset($_GET['nom'])) {
44
		if (isset($_GET['nom'])) {
Line 38... Line 49...
38
		}
49
		}
Line 39... Line 50...
39
		
50
		
40
		if (isset($_GET['niveau'])) {
51
		if (isset($_GET['niveau'])) {
41
			Registre::set('parametres.niveau', $_GET['niveau']);
52
			Registre::set('parametres.niveau', $_GET['niveau']);
-
 
53
		}
-
 
54
		if (isset($_GET['onglet'])) {
-
 
55
			$this->onglet = $_GET['onglet'];
42
		}
56
		}
Line 43... Line 57...
43
	}
57
	}
44
	
58
	
45
	protected function recupererTableauConfig($param) {
59
	protected function recupererTableauConfig($param) {