Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 185 Rev 216
Line 25... Line 25...
25
		$this->afficherAccueil($donnees);
25
		$this->afficherAccueil($donnees);
26
	}
26
	}
Line 27... Line 27...
27
	
27
	
28
	private function afficherAccueil($donnees) {
28
	private function afficherAccueil($donnees) {
29
		$donnees['i18n'] = I18n::get('Recherche-accueil');
29
		$donnees['i18n'] = I18n::get('Recherche-accueil');
30
		$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees));
30
		$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees), true);
Line 31... Line 31...
31
	}
31
	}
32
 
32
 
33
	public function executerRechercheSimple() {
33
	public function executerRechercheSimple() {
Line 64... Line 64...
64
		$form = I18n::get('Recherche-form-nom');
64
		$form = I18n::get('Recherche-form-nom');
65
		if ($res == false || $res['entete']['total'] == 0) { // recherche nom approché
65
		if ($res == false || $res['entete']['total'] == 0) { // recherche nom approché
66
			$approche = $this->rechercherNomApproche($noms);
66
			$approche = $this->rechercherNomApproche($noms);
67
		} elseif ($res['entete']['total'] == 1 || $this->submit == $form['fiche']) { // renvoie à la fiche
67
		} elseif ($res['entete']['total'] == 1 || $this->submit == $form['fiche']) { // renvoie à la fiche
68
			$ids = array_keys($res['resultat']);
68
			$ids = array_keys($res['resultat']);
69
			$url = $this->urls->obtenirUrlFiche($ids[0]);
69
			$url = $this->urls->obtenirUrlFiche($ids[0], $this->type_nom, $this->nom);
70
			$this->redirigerVers($url);
70
			$this->redirigerVers($url);
71
		} else { // affiche les résultats
71
		} else { // affiche les résultats
72
			$res['type'] = $this->type_nom;
72
			$res['type'] = $this->type_nom;
73
			Registre::set('resultats', $res);
73
			Registre::set('resultats', $res);
74
			$approche = 'ok';
74
			$approche = 'ok';