Rev 35 | Rev 53 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?phpclass RechercheSimple extends aControleur {//+----------------------------------------------------------------------------------------------------------------+// Méthodes/*** Fonction d'affichage par défaut*/public function executerActionParDefaut() {$this->executerAccueil();}public function executerAccueil() {$donnees = array();$donnees['i18n'] = I18n::get('Recherche-accueil');$donnees['referentiel_titre'] = I18n::get('Referentiels-titres.'.Config::get('referentiel'));$donnees['form_nom'] = $this->executerFormulaireNom();$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees));}public function executerFormulaireNom() {$donnees['eflore_type_nom'] = 'nom_vernaculaire';$donnees['i18n'] = I18n::get('Recherche-form-nom');$donnees['url_js'] = Config::get('url_js');return $this->getVue('form_nom', $donnees);}public function executerRechercheNom() {if ($_GET['eflore_nom'] == '') {$donnees['information'] = 'Veuillez saisir un radical contenant au moins 3 caractères alphabétiques !';} elseif ($_GET['eflore_type_nom'] == 'nom_vernaculaire') {$donnees['nom_approche'] = $_GET['eflore_nom'];//$this->getNomVerna();} else {$donnees['nom_approche'] = $_GET['eflore_nom'];}if (isset($donnees)) {$donnees['eflore_type_nom'] = $_GET['eflore_type_nom'];$donnees['i18n'] = I18n::get('Recherche-accueil');$donnees['referentiel_titre'] = I18n::get('Referentiels-titres.'.Config::get('referentiel'));$donnees['i18n'] = I18n::get('Recherche-form-nom');$donnees['url_js'] = Config::get('url_js');$donnees['form_nom'] = $this->getVue('form_nom', $donnees);$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees));} else {// envoyerResultat;}}}?>