Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1296 → Rev 1297

/trunk/jrest/services/InventoryExport.php
38,15 → 38,9
// Controle detournement utilisateur
$this->controleUtilisateur($uid[0]);
 
$criteres = array();
$criteres = $_GET;
$chercheur_observations = new RechercheObservation($this->config);
 
if(isset($uid[1]))
{
$criteres = $chercheur_observations->parserRequeteCriteres($uid[1]);
}
 
// Creating a workbook
$workbook = new Spreadsheet_Excel_Writer();
 
/trunk/jrest/services/InventoryObservationList.php
50,16 → 50,12
$taille_page = 50;
$criteres = array();
 
if (isset($uid[1]))
{
$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']);
}
$criteres = $_GET ;
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 ;
/trunk/jrest/services/InventoryImageCount.php
39,10 → 39,7
$taille_page = 50;
$criteres = array();
 
if(isset($uid[1]))
{
$criteres = $chercheur_images->parserRequeteCriteres($uid[1]) ;
}
$criteres = $_GET;
 
$retour = $chercheur_images->compterImages($uid[0], $criteres);
 
/trunk/jrest/services/InventoryObservationCount.php
41,13 → 41,7
 
$chercheur_observations = new RechercheObservation($this->config);
 
$criteres = array();
 
if(isset($uid[1]))
{
$criteres = $chercheur_observations->parserRequeteCriteres($uid[1]) ;
}
 
$criteres = $_GET;
$retour = $chercheur_observations->compterObservations($uid[0], $criteres);
$this->envoyerJson($retour);
/trunk/jrest/services/InventoryImageList.php
26,11 → 26,10
/**
* Recherche les images correspondant aux critères passés en paramètres
* uid[0] : utilisateur obligatoire
* uid[1] : critères de filtrage de la forme critère1=valeur1;critère2=valeur2
* $_GET : critères de filtrage de la forme critère1=valeur1;critère2=valeur2
*/
function getElement($uid)
{
//TODO : remplacer le contenu du $uid[1] par le tableau $_GET;
// Controle detournement utilisateur
$this->controleUtilisateur($uid[0]);
40,15 → 39,12
$taille_page = 50;
$criteres = array();
 
if(isset($uid[1]))
{
$criteres = $chercheur_images->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']);
}
$criteres = $_GET;
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 ;