56,12 → 56,18 |
$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']); |
|
} |
} |
|
$debut = $taille_page*$numero_page ; |
|
$retour = $chercheur_observations->rechercherObservations($uid[0], $criteres, $numero_page, $taille_page); |
$retour_encode = json_encode($retour) ; |
$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); |