508,7 → 508,7 |
$resultat = $this->trierRechercheFloue($this->parametres[$masque[0]], $resultat, $masque[1]); |
} |
if (isset($this->masque)) { |
$this->table_retour['masque'] = implode('&', $this->masque); |
$table_retour['masque'] = implode('&', $this->masque); |
} |
$this->afficherEnteteResultat('/'.$this->service); //communNomTaxons |
$table_retour_json['entete'] = $this->table_retour; |
521,11 → 521,17 |
foreach ($resultat as $tab) { |
$this->table_retour = array(); |
$num = $tab['num_nom']; |
$this->afficherNomHrefRetenu($tab, $num); |
$this->afficherNomHrefRetenu($tab, $num); // ajoute le nom_sci, href et si le nom est retenu dans $this->table_retour |
$retour = $this->table_retour; |
$this->table_retour = array(); |
if ($champs != null) { |
$reponse_id = $this->formaterId($tab); |
$this->table_retour = array(); |
$this->ajouterChampsPersonnalises($champs, $reponse_id); |
$resultat_json[$num] = $this->table_retour; |
$retour = array_merge($retour, $this->table_retour); |
} |
$resultat_json[$num] = $retour; |
} |
$table_retour_json['resultat'] = $resultat_json; |
return $table_retour_json; |
} |