Subversion Repositories eFlore/Applications.cel

Rev

Rev 1279 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1279 Rev 1295
Line 148... Line 148...
148
				break;
148
				break;
Line 149... Line 149...
149
				
149
				
150
				case "id_mots_cles";
150
				case "id_mots_cles";
151
					$liste_mc = '"'.str_replace(';','","',$valeur).'"';
151
					$liste_mc = '"'.str_replace(';','","',$valeur).'"';
152
                    $sous_requete .= '' ;   
152
                    $sous_requete .= '' ;   
153
                    $sous_requete .= 'id_image IN (SELECT id_image FROM cel_images_mots_cles WHERE id_mot_cle_utilisateur IN ('.$liste_mc.'))';
153
                    $sous_requete .= 'id_image IN (SELECT id_image FROM cel_images_mots_cles WHERE id_mot_cle_image IN ('.$liste_mc.'))';
154
                    $sous_requete .= ' AND ' ;  
154
                    $sous_requete .= ' AND ' ;  
Line 155... Line 155...
155
				break;
155
				break;
156
				
156
				
Line 320... Line 320...
320
    									   'FROM cel_images_mots_cles '.
320
    									   'FROM cel_images_mots_cles '.
321
    									   'WHERE id_image = '.$id_image;					   
321
    									   'WHERE id_image = '.$id_image;					   
Line 322... Line 322...
322
    
322
    
323
    	return $this->requeter($requete_selection_mots_cles);
323
    	return $this->requeter($requete_selection_mots_cles);
324
    }
-
 
325
			
-
 
326
	// TODO: fonction temporaire
-
 
327
	public function parserRequeteCriteres($chaine_criteres) {
-
 
328
		$criteres_parses = array();
-
 
329
		$criteres = explode("&", $chaine_criteres) ;	
-
 
330
 
-
 
331
		foreach($criteres as &$critere) {
-
 
332
			$nom_valeur = explode("=",$critere) ;
-
 
333
			if(count($nom_valeur) >= 2) {
-
 
334
				$criteres_parses[$nom_valeur[0]] = $nom_valeur[1];
-
 
335
			}
-
 
336
		}
-
 
337
		
-
 
338
		return $criteres_parses;
-
 
Line 339... Line 324...
339
	}
324
    }
340
	
325
	
Line 341... Line 326...
341
	// TODO: fonction temporaire
326
	// TODO: fonction temporaire