Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 35 Rev 43
Line 15... Line 15...
15
		$donnees['i18n'] = I18n::get('Recherche-accueil');
15
		$donnees['i18n'] = I18n::get('Recherche-accueil');
Line 16... Line 16...
16
		
16
		
Line 17... Line 17...
17
		$donnees['referentiel_titre'] = I18n::get('Referentiels-titres.'.Config::get('referentiel'));
17
		$donnees['referentiel_titre'] = I18n::get('Referentiels-titres.'.Config::get('referentiel'));
18
		
-
 
Line 19... Line 18...
19
		$donnees['form_nom'] = $this->executerFormulaireNom();
18
		
20
		$donnees['form_taxon'] = $this->executerFormulaireTaxon();
19
		$donnees['form_nom'] = $this->executerFormulaireNom();
Line 21... Line 20...
21
		
20
		
-
 
21
		$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees));
22
		$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees));
22
	}
23
	}
23
	
Line 24... Line 24...
24
	
24
	public function executerFormulaireNom() {
25
	public function executerFormulaireNom() {
25
		$donnees['eflore_type_nom'] = 'nom_vernaculaire';
Line 26... Line 26...
26
		$donnees['i18n'] = I18n::get('Recherche-form-nom');
26
		$donnees['i18n'] = I18n::get('Recherche-form-nom');
-
 
27
		$donnees['url_js'] = Config::get('url_js');
-
 
28
		
-
 
29
		return $this->getVue('form_nom', $donnees);
-
 
30
	}
-
 
31
	
-
 
32
	public function executerRechercheNom() {
-
 
33
		if ($_GET['eflore_nom'] == '') {
-
 
34
			$donnees['information'] = 'Veuillez saisir un radical contenant au moins 3 caractères alphabétiques !';
-
 
35
		} elseif ($_GET['eflore_type_nom'] == 'nom_vernaculaire') {
-
 
36
			$donnees['nom_approche'] = $_GET['eflore_nom'];//$this->getNomVerna();
-
 
37
		} else {
-
 
38
			$donnees['nom_approche'] = $_GET['eflore_nom'];
-
 
39
		}
-
 
40
		if (isset($donnees)) {
-
 
41
			$donnees['eflore_type_nom'] = $_GET['eflore_type_nom'];
-
 
42
			$donnees['i18n'] = I18n::get('Recherche-accueil');
-
 
43
			$donnees['referentiel_titre'] = I18n::get('Referentiels-titres.'.Config::get('referentiel'));
-
 
44
			
27
		$donnees['url_js'] = Config::get('url_js');
45
			$donnees['i18n'] = I18n::get('Recherche-form-nom');
-
 
46
			$donnees['url_js'] = Config::get('url_js');
28
		
47
			
29
		return $this->getVue('form_nom', $donnees);
48
			$donnees['form_nom'] = $this->getVue('form_nom', $donnees);
30
	}
49
			$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees));
31
	
50
		} else {