Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 174 Rev 179
Line 12... Line 12...
12
	}
12
	}
13
	/**
13
	/**
14
	 * Fonction d'affichage par défaut
14
	 * Fonction d'affichage par défaut
15
	 */
15
	 */
16
	public function executerActionParDefaut() {
16
	public function executerActionParDefaut() {
-
 
17
		$this->executerAccueil();
-
 
18
	}
-
 
19
	
-
 
20
	public function executerAccueil($donnees = array()) {
-
 
21
		$niveau = new Niveau();
-
 
22
		$donnees['form_niveau'] = $niveau->afficherNiveau();
-
 
23
		$recherchesimple = new RechercheSimple();
17
		$this->executerAction('RechercheSimple', 'executerAccueil');
24
		$donnees['form_nom'] = $recherchesimple->executerFormulaireNom();
-
 
25
		$this->afficherAccueil($donnees);
-
 
26
	}
18
		
27
	
-
 
28
	private function afficherAccueil($donnees) {
-
 
29
		$donnees['i18n'] = I18n::get('Recherche-accueil');
-
 
30
		$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees));
19
	}
31
	}
Line 20... Line 32...
20
 
32
 
21
	public function executerRechercheSimple() {
33
	public function executerRechercheSimple() {
22
		$donnees['type_nom'] = $this->type_nom;
34
		$donnees['type_nom'] = $this->type_nom;
Line 32... Line 44...
32
					$donnees['message']['attention'] = 'info_sp_abs';
44
					$donnees['message']['attention'] = 'info_sp_abs';
33
				}
45
				}
34
				$donnees['message']['nom_approche'] = $presence;
46
				$donnees['message']['nom_approche'] = $presence;
35
			}
47
			}
36
		}
48
		}
37
		Registre::set('donneesMoteur', $donnees);
49
		$this->executerAccueil($donnees);
38
		$this->executerAction('RechercheSimple', 'executerForm');
-
 
39
		if (Registre::get('resultats')) {
50
		if (Registre::get('resultats')) {
40
			$this->executerAction('Resultat', 'executerResultat');
51
			$this->executerAction('Resultat', 'executerResultat');
41
		}
52
		}
42
	}
53
	}
Line 78... Line 89...
78
			}
89
			}
79
		}
90
		}
80
		return $approche;
91
		return $approche;
81
	}
92
	}
Line -... Line 93...
-
 
93
	
-
 
94
	public function executerNiveau() {
-
 
95
		Registre::set('parametres.niveau', $_GET['niveau']);
-
 
96
		$this->executerActionParDefaut();
-
 
97
	}
82
	
98
	
83
	private function capturerParametres() {
99
	private function capturerParametres() {
84
		if (isset($_GET['nom'])) {
100
		if (isset($_GET['nom'])) {
85
			$this->nom = $_GET['nom'];
101
			$this->nom = $_GET['nom'];
86
		}
102
		}