Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 740 → Rev 744

/trunk/services/modules/0.1/observations/Observations.php
167,7 → 167,9
case 'departement' :
$dept = $valeurMasque;
if (is_numeric($dept)) {
$where[] = " ce_zone_geo LIKE ".$this->proteger('INSEE-C:'.$dept.'%');
$dept = sprintf('%02s', $dept);
$dept = sprintf("%-'_5s", $dept);
$where[] = " ce_zone_geo LIKE ".$this->proteger('INSEE-C:'.$dept);
} else {
//FIXME : et les apostrophes dans les départements ?
179,16 → 181,16
}
break;
case 'genre' :
$where[] = ' '.$this->mappingFiltre['ns'].' LIKE '.$this->proteger($valeurMasque.' %');
$where[] = ' '.$this->mappingFiltre['ns'].' LIKE '.$this->proteger('%'.$valeurMasque.'% %');
break;
case 'tag' :
$where[] = " di.mots_cles_texte LIKE ".$this->proteger($valeurMasque);
$where[] = " mots_cles_texte LIKE ".$this->proteger($valeurMasque);
break;
case 'espece' :
$where[] = ' '.$this->mappingFiltre['espece'].' LIKE '.$this->proteger($valeurMasque.' %');
case 'nn' :
$where[] = ' '.$this->mappingFiltre['nn'].' = '.$this->proteger($valeurMasque);
break;
default:
$where[] = ' '.$this->mappingFiltre[$idMasque].' = '.$this->proteger($valeurMasque);
$where[] = ' '.$this->mappingFiltre[$idMasque].' LIKE '.$this->proteger('%'.$valeurMasque.'%');
}
}
}
288,8 → 290,6
$imageCourante = array();
$imageCourante['id_image'] = $image['id_image'];
$imageCourante['date'] = $image['date_prise_de_vue'];
// TODO : c'est dans la définition mais pas dans la table !
//$imageRetour['mime']
$imageCourante['binaire.href'] = $this->formaterLienImage($image['id_image']);
$imageCourante['hauteur'] = $image['hauteur'];
$imageRetour['largeur'] = $image['largeur'];