Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 3 Rev 93
Line 506... Line 506...
506
		$masque = $this->recupererMasquePrincipal();
506
		$masque = $this->recupererMasquePrincipal();
507
		if (isset($masque)) {
507
		if (isset($masque)) {
508
			$resultat = $this->trierRechercheFloue($this->parametres[$masque[0]], $resultat, $masque[1]);
508
			$resultat = $this->trierRechercheFloue($this->parametres[$masque[0]], $resultat, $masque[1]);
509
		}
509
		}
510
		if (isset($this->masque)) {
510
		if (isset($this->masque)) {
511
			$this->table_retour['masque'] = implode('&', $this->masque); 
511
			$table_retour['masque'] = implode('&', $this->masque); 
512
		}
512
		}
513
		$this->afficherEnteteResultat('/'.$this->service); //communNomTaxons
513
		$this->afficherEnteteResultat('/'.$this->service); //communNomTaxons
514
		$table_retour_json['entete'] = $this->table_retour;
514
		$table_retour_json['entete'] = $this->table_retour;
515
		//on remplit la table $table_retour_json['resultat']
515
		//on remplit la table $table_retour_json['resultat']
516
		$champs = null;
516
		$champs = null;
Line 519... Line 519...
519
		}
519
		}
520
		$resultat_json = null;
520
		$resultat_json = null;
521
		foreach ($resultat as $tab) {
521
		foreach ($resultat as $tab) {
522
			$this->table_retour = array();
522
			$this->table_retour = array();
523
			$num = $tab['num_nom'];
523
			$num = $tab['num_nom'];
-
 
524
			$this->afficherNomHrefRetenu($tab, $num); // ajoute le nom_sci, href et si le nom est retenu dans $this->table_retour
-
 
525
			$retour = $this->table_retour;
524
			$this->afficherNomHrefRetenu($tab, $num);
526
			$this->table_retour = array();
-
 
527
			if ($champs != null) {
525
			$reponse_id = $this->formaterId($tab);
528
				$reponse_id = $this->formaterId($tab);
-
 
529
				$this->table_retour = array();
526
			$this->ajouterChampsPersonnalises($champs, $reponse_id);
530
				$this->ajouterChampsPersonnalises($champs, $reponse_id);
-
 
531
				$retour = array_merge($retour, $this->table_retour);
-
 
532
			}
527
			$resultat_json[$num] = $this->table_retour;
533
			$resultat_json[$num] = $retour;
528
		}
534
		}
529
		$table_retour_json['resultat'] = $resultat_json; 
535
		$table_retour_json['resultat'] = $resultat_json; 
530
		return $table_retour_json;
536
		return $table_retour_json;
531
	}
537
	}
532
}
538
}