Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 925 Rev 966
Line 54... Line 54...
54
		if (isset($uid[1]))
54
		if (isset($uid[1]))
55
		{
55
		{
56
			$criteres = $chercheur_observations->parserRequeteCriteres($uid[1]) ;
56
			$criteres = $chercheur_observations->parserRequeteCriteres($uid[1]) ;
57
			if (isset($criteres['numero_page']) && isset($criteres['limite'])) {
57
			if (isset($criteres['numero_page']) && isset($criteres['limite'])) {
58
				$numero_page = $criteres['numero_page'];
58
				$numero_page = $criteres['numero_page'];
-
 
59
				unset($criteres['numero_page']);
59
				$taille_page = $criteres['limite'];
60
				$taille_page = $criteres['limite'];
-
 
61
				unset($criteres['limite']);
-
 
62
				
60
			}
63
			}
61
		}
64
		}
-
 
65
		
-
 
66
		$debut = $taille_page*$numero_page ;
Line 62... Line 67...
62
 
67
 
-
 
68
		$retour = $chercheur_observations->rechercherObservations($uid[0], $criteres, $debut, $taille_page);
63
		$retour = $chercheur_observations->rechercherObservations($uid[0], $criteres, $numero_page, $taille_page);
69
		$retour_formate = $chercheur_observations->formaterPourEnvoiCel(&$retour);
Line 64... Line 70...
64
		$retour_encode = json_encode($retour) ;
70
		$retour_encode = json_encode($retour_formate) ;
65
 
71
 
66
		header("Content-type: application/json");
72
		header("Content-type: application/json");
67
		print($retour_encode);
73
		print($retour_encode);