Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 173 Rev 180
Line 7... Line 7...
7
	 * Fonction d'affichage par défaut
7
	 * Fonction d'affichage par défaut
8
	 */
8
	 */
Line 9... Line 9...
9
 
9
 
10
 
10
 
11
	public function executerActionParDefaut() {
11
	public function executerActionParDefaut() {
Line 12... Line 12...
12
		$this->executerAccueil();
12
		$this->afficherMoteurSimple();
13
	}
-
 
14
 
-
 
15
	public function executerAccueil() {
13
	}
16
		$donnees = array();
-
 
17
		$donnees['form_niveau'] = $this->afficherNiveau();
-
 
18
		$donnees['form_nom'] = $this->executerFormulaireNom();
-
 
19
		$this->afficherAccueil($donnees);
-
 
20
	}
-
 
21
 
14
 
22
	private function afficherAccueil($donnees) {
15
	private function afficherMoteurSimple() {
Line 23... Line 16...
23
		$donnees['i18n'] = I18n::get('Recherche-accueil');
16
		$donnees['form_nom'] = $this->executerFormulaireNom();
24
		$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees));
17
		$this->setSortie(self::RENDU_CORPS, $donnees['form_nom']);
Line 53... Line 46...
53
		$donnees['form_nom'] = $this->executerFormulaireNom($donnees);
46
		$donnees['form_nom'] = $this->executerFormulaireNom($donnees);
54
		$this->afficherAccueil($donnees);
47
		$this->afficherAccueil($donnees);
55
		Registre::detruire('donneesMoteur');
48
		Registre::detruire('donneesMoteur');
56
	}
49
	}
Line 57... Line -...
57
	
-
 
58
	private function afficherNiveau() {
-
 
59
		$donnees['url_form'] = $this->urls->obtenirUrlBase();
-
 
60
		$donnees['i18n'] = I18n::get('Niveau');
-
 
61
		$donnees['niveau'] = Registre::get('parametres.niveau');
-
 
62
		return $this->getVue('niveau', $donnees);
-
 
63
	}
-
 
64
	
-
 
65
	public function executerNiveau() {
-
 
66
		Registre::set('parametres.niveau', $_GET['niveau']);
-
 
67
		$this->executerAccueil();
-
 
68
	}
50
	
69
}
51
}
70
?>
52
?>