Newsletter Flux RSS Favoris Nous contacter Besoin d'aide A propos
Prochaine Collecte :
Vendredi 09 Juin 2023 (Salle THIERS Lillebonne)
De 11h à 13h et 14h30 à18h (Autre collectes)
Dons en 2023
248
Mise à jour le 20/05/2023

Nos résultats pour la recherche : '".$recherche."'


"; $recherche = array(); $tab = recherche_article($tab_terme); $recherche = array_merge($recherche,$tab); $tab = recherche_nouvelle($tab_terme); $recherche = array_merge($recherche,$tab); $tab = recherche_definition($tab_terme); $recherche = array_merge($recherche,$tab); $tab = recherche_page($tab_terme); $recherche = array_merge($recherche,$tab); arsort($recherche); if (isset($recherche) && count($recherche) > 0) { echo ""; $i=1; $max=0; $min=0; foreach($recherche as $cle => $poids) { if ($poids > $max) { $max=$poids; $min=$max/10; } if ($poids >= 0) { $o_bdd = new bdd(0); $tablo=explode("_",$cle); $type = $tablo[0]; $id = $tablo[1]; if ($id > 0) { $titre=""; switch($type) { case 'article': $ressource = $o_bdd->select("SELECT titre,date_publication FROM article WHERE id_article='".$id."' AND actif='1'"); $tab = mysql_fetch_assoc($ressource); $titre = html_entity_decode($tab['titre'],ENT_QUOTES); $adresse = recup_url_article($id); $date=$tab['date_publication']; break; case 'nouvelle': $ressource = $o_bdd->select("SELECT titre,date_publication FROM nouvelle WHERE id_nouvelle='".$id."' AND actif='1'"); $tab = mysql_fetch_assoc($ressource); $titre = html_entity_decode($tab['titre'],ENT_QUOTES); $adresse = recup_url_nouvelle($id); $date=$tab['date_publication']; break; case 'definition': $ressource = $o_bdd->select("SELECT titre,date_publication FROM definition WHERE id_definition='".$id."' AND actif='1'"); $tab = mysql_fetch_assoc($ressource); $titre = html_entity_decode($tab['titre'],ENT_QUOTES); $adresse = recup_url_definition($id); $date=$tab['date_publication']; break; case 'page': $ressource = $o_bdd->select("SELECT nom,date_publication FROM mes_pages WHERE id_site='".$id."' AND actif='1'"); $tab = mysql_fetch_assoc($ressource); $titre = html_entity_decode($tab['nom'],ENT_QUOTES); $adresse = recup_url_page($id); $date=$tab['date_publication']; break; } if ($date != "") { $date = date_formater($date); } else { $date="N.C."; } echo " "; $i++; } } } echo "
".$i." ".$titre." ".$date."
"; } else { echo "aucun résultat"; } ?>