56,13 → 56,19 |
$criteres = $chercheur_observations->parserRequeteCriteres($uid[1]) ; |
if (isset($criteres['numero_page']) && isset($criteres['limite'])) { |
$numero_page = $criteres['numero_page']; |
unset($criteres['numero_page']); |
$taille_page = $criteres['limite']; |
unset($criteres['limite']); |
|
} |
} |
|
$retour = $chercheur_observations->rechercherObservations($uid[0], $criteres, $numero_page, $taille_page); |
$retour_encode = json_encode($retour) ; |
$debut = $taille_page*$numero_page ; |
|
$retour = $chercheur_observations->rechercherObservations($uid[0], $criteres, $debut, $taille_page); |
$retour_formate = $chercheur_observations->formaterPourEnvoiCel(&$retour); |
$retour_encode = json_encode($retour_formate) ; |
|
header("Content-type: application/json"); |
print($retour_encode); |
exit(); |