193,7 → 193,7 |
'IF(ISNULL(nom), 0, 1) as nom_present '; |
|
$ordre = 'nom_present DESC, nom_fr_present DESC, nom_fr_present DESC, '. |
'nom_es_present DESC, intitule_present DESC, niveau DESC'; |
'nom_es_present DESC, intitule_present DESC, niveau ASC'; |
|
$niveau_str = array(); |
if($niveaux != null) { |
216,7 → 216,7 |
"intitule LIKE ".$this->bdd->proteger($masque_fmt).' OR '. |
"nom_fr LIKE ".$this->bdd->proteger($masque_fmt).' OR '. |
"nom_en LIKE ".$this->bdd->proteger($masque_fmt).' OR '. |
"nom_es LIKE ".$this->bdd->proteger($masque_fmt).') AND '. |
"nom_es LIKE ".$this->bdd->proteger($masque_fmt).') '. |
"ORDER BY ".$ordre." LIMIT ".$limite; |
|
$resultat = $this->bdd->recupererTous($requete); |