Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3918 Rev 3919
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).') ';
-
 
315
		}
314
		}
316
		return $requete;
315
		return $requete;
317
	}
316
	}
Line 318... Line 317...
318
	
317