Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 161 → Rev 162

/trunk/modules/resultat/Resultat.php
41,11 → 41,14
 
private function capturerParametres() {
if (isset($_GET['resultat'])) {
$this->parametres->type = $_GET['resultat'];
$this->parametres->typeResultat = $_GET['resultat'];
}
if (isset($_GET['nom'])) {
$this->parametres->masqueRecherche = $_GET['nom'];
}
if (isset($_GET['type_nom'])) {
$this->parametres->typeNom = $_GET['type_nom'];
}
}
 
public function executerActionParDefaut() {
53,7 → 56,7
}
 
public function executerResultat() {
$this->chargerInfosPourOnglets();
$this->chargerOnglets();
$this->chargerNbreDeTaxons();
$this->chargerNomsFormates();
 
60,12 → 63,18
$this->setSortie(self::RENDU_CORPS, $this->getVue('resultat', $this->donneesTpl));
}
 
private function chargerInfosPourOnglets() {
$this->donneesTpl['typeResultat'] = $this->parametres->type;
$this->donneesTpl['urlResAlphab'] = $this->obtenirUrlResultatAlphab();
$this->donneesTpl['urlResRetenu'] = $this->obtenirUrlResultatRetenu();
$this->donneesTpl['urlResDetermination'] = $this->obtenirUrlResultatDetermination();
$this->donneesTpl['urlResDecompo'] = $this->obtenirUrlResultatDecompo();
private function chargerOnglets() {
$donnees = array();
$donnees['typeResultat'] = $this->parametres->typeResultat;
$donnees['typeNom'] = $this->parametres->typeNom;
$donnees['ongletsNs'] = array('determination', 'alphab', 'retenu', 'decompo');
$donnees['ongletsNv'] = array('determination', 'alphab');
$donnees['urls']['alphab'] = $this->urls->obtenirUrlResultatAlphab();
$donnees['urls']['retenu'] = $this->urls->obtenirUrlResultatRetenu();
$donnees['urls']['determination'] = $this->urls->obtenirUrlResultatDetermination();
$donnees['urls']['decompo'] = $this->urls->obtenirUrlResultatDecompo();
$donnees['i18n'] = I18n::get('Resultat-onglets');
$this->donneesTpl['ongletsHtml'] = $this->getVue('onglets', $donnees);
}
 
private function chargerNbreDeTaxons() {