Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3744 Rev 3918
Line 308... Line 308...
308
			foreach($mots_cles_tab as $mot_cle_item) {
308
			foreach($mots_cles_tab as $mot_cle_item) {
309
				$requete .= '(mots_cles_texte LIKE '.Cel::db()->proteger('%'.$mot_cle_item.'%').') AND ';
309
				$requete .= '(mots_cles_texte LIKE '.Cel::db()->proteger('%'.$mot_cle_item.'%').') AND ';
310
			}
310
			}
311
			$requete = '('.rtrim($requete, 'AND ').') ';
311
			$requete = '('.rtrim($requete, 'AND ').') ';
312
		} else {
312
		} else {
313
			$requete = "(mots_cles_texte LIKE ".Cel::db()->proteger('%'.$mot_cle.'%').') ';
313
		    $requete = "(mots_cles_texte LIKE ".Cel::db()->proteger('%'.$mot_cle.'%').') '.
-
 
314
		  		    "(programme = ".Cel::db()->proteger($mot_cle).') ';
314
		}
315
		}
315
		return $requete;
316
		return $requete;
316
	}
317
	}
Line 317... Line 318...
317
	
318