Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3743 Rev 3776
Line 226... Line 226...
226
            return $contenu;
226
            return $contenu;
227
    }
227
    }
Line 228... Line 228...
228
    
228
    
229
    private function getServiceMultiCriteres() {
229
    private function getServiceMultiCriteres() {
230
        $contenu = '';
230
        $contenu = '';
231
        if (isset($_GET['debut'])) $this->start = $_GET['debut'];
231
        if (isset($_GET['debut'])) $this->start = Cel::db()->proteger($_GET['debut']);
Line 232... Line 232...
232
        if (isset($_GET['limite'])) $this->limit = $_GET['limite'];
232
        if (isset($_GET['limite'])) $this->limit = Cel::db()->proteger($_GET['limite']);
Line 233... Line 233...
233
        
233
        
234
        $this->limit = ($this->limit < 1000) ? $this->limit : 1000;// Pour éviter les abus !
234
        $this->limit = ($this->limit < 1000) ? $this->limit : 1000;// Pour éviter les abus !
Line 357... Line 357...
357
    private function traiterCriteresMultiples($tableau_criteres) {
357
    private function traiterCriteresMultiples($tableau_criteres) {
358
        $tableau_criteres_pour_bdd = array();
358
        $tableau_criteres_pour_bdd = array();
Line 359... Line 359...
359
        
359
        
360
        foreach($tableau_criteres as $nom_critere => $valeur_critere) {
360
        foreach($tableau_criteres as $nom_critere => $valeur_critere) {
-
 
361
            if (isset($this->criteres[$nom_critere])) {
361
            if (isset($this->criteres[$nom_critere])) {
362
                $valeur_critere = Cel::deb()->proteger($valeur_critere);
362
                $tableau_criteres_pour_bdd[] = $this->criteres[$nom_critere].'='.$valeur_critere;
363
                $tableau_criteres_pour_bdd[] = $this->criteres[$nom_critere].'='.$valeur_critere;
363
            }
364
            }
364
        }
365
        }
365
        return $tableau_criteres_pour_bdd;
366
        return $tableau_criteres_pour_bdd;
Line 366... Line 367...
366
    }
367
    }
367
    
368
    
-
 
369
    private function creerSousRequeteRechercheGenerale($chaine_requete) {
368
    private function creerSousRequeteRechercheGenerale($chaine_requete) {
370
        $requete = '';
369
        $requete = '';
371
        $chaine_requete = Cel::deb()->proteger($chaine_requete);
370
        if (trim($chaine_requete) != '') {
372
        if (trim($chaine_requete) != '') {
371
            $chaine_requete = strtolower($chaine_requete);
373
            $chaine_requete = strtolower($chaine_requete);
372
            $chaine_requete = str_replace(' ', '_', $chaine_requete);
374
            $chaine_requete = str_replace(' ', '_', $chaine_requete);