114,7 → 114,7 |
$info = array(); |
|
// PrĂ© traitement des paramĂȘtres |
$p = $this->traiterParametresUrl(array('type'), $param); |
$p = $this->traiterParametresUrl(array('type', 'projets'), $param); |
if (!isset($p['type'])) { |
$this->messages[] = "Il est obligatoire d'indiquer type de recherche pour utiliser ce service."; |
} else { |
126,6 → 126,7 |
' COUNT( cs_id_structure ) AS nbre '. |
'FROM coel_structure '. |
'WHERE cs_ce_truk_pays = 2654 '. |
(isset($p['projets']) ? " AND cs_ce_projet IN ({$p['projets']}) " : ''). |
'GROUP BY IF ( SUBSTRING( cs_code_postal FROM 1 FOR 2 ) >= 96, '. |
' SUBSTRING( cs_code_postal FROM 1 FOR 3 ), '. |
' SUBSTRING( cs_code_postal FROM 1 FOR 2 ) ) '. |