Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3916 Rev 3926
Line 339... Line 339...
339
			foreach ($mots_cles_tab as $mot_cle_item) {
339
			foreach ($mots_cles_tab as $mot_cle_item) {
340
				$requete .= '(ci.mots_cles_texte LIKE '.Cel::db()->proteger('%'.$mot_cle_item.'%').') AND ';
340
				$requete .= '(ci.mots_cles_texte LIKE '.Cel::db()->proteger('%'.$mot_cle_item.'%').') AND ';
341
			}
341
			}
342
			$requete = '('.rtrim($requete, 'AND ').') ';
342
			$requete = '('.rtrim($requete, 'AND ').') ';
343
		} else {
343
		} else {
344
			$requete = "(ci.mots_cles_texte LIKE ".Cel::db()->proteger('%'.$mot_cle.'%').') '.
344
			$requete = "(ci.mots_cles_texte LIKE ".Cel::db()->proteger('%'.$mot_cle.'%').') ';
345
			 			"(co.programme = ".Cel::db()->proteger($mot_cle).')';
-
 
346
		}
345
		}
347
		$requete .= ' AND ';
346
		$requete .= ' AND ';
348
		return $requete;
347
		return $requete;
349
	}
348
	}