/******************************************************************
Fichier afficher_tous_les_articles.php
Crée le 24/05/07
Page de résultats de recherche dans les blogs
******************************************************************/
session_start();
include("../fonctions.php");
include("../connexion.php");
include("../fonctions_sql.php");
include("../fonctions_remplir.php");
include("../fonctions_recuperation.php");
$compt=0;
$compt_1=0;
?>
afficher_meta('sante'); ?>
=appel_styles_css('..')?>
=display_tag_after_body();?>
afficher_menu_haut(7,'..');?>
afficher_colonne_gauche('..')?>
Tous les articles des blogs du village
$req2="SELECT DISTINCT b.id_blog, b.titre, adresse FROM b_blog b, b_article art WHERE b.id_blog=art.id_blog AND b.public=1 AND b.a_valider=0";
$req2.=" ORDER BY 'b.titre'";
$rep2=requete_sel($req2);
$nb_resultat=mysql_num_rows($rep2);
$nb_resultat_total += $nb_resultat;
if($nb_resultat>=1){
$color = 1;
while($ligne2=mysql_fetch_row($rep2)){
$compt_1++;
$tab[$ligne2[0]]='';
$class = ($color % 2 == 0) ? "fonce" : "clair";
$url_blog="http://$ligne2[2].blogduvillage.com";
$req1='SELECT DISTINCT id_article, titre, id_blog, b_article.id_rubrique, perso FROM b_article, b_rubrique rub WHERE id_blog='.$ligne2[0].' AND b_article.id_rubrique=rub.id_rubrique ';
$req1.=' ORDER BY titre';
$rep1 = requete_sel($req1);
$nb_articles = mysql_num_rows($rep1);
if($nb_articles>0){
while($ligne1=mysql_fetch_row($rep1)){
if($ligne1[4]==1){$type_rubrique='perso';}else{$type_rubrique='normale';}
$titre_url_rewriting = traiter_chaine_url($ligne1[1]);
$url_article="../blog/article-$ligne2[0]-$ligne1[0]-$type_rubrique-$titre_url_rewriting.html";
$compt++;
$ligne1[1] = str_replace ("’" , "'" , $ligne1[1]);
$ligne1[1] = str_replace ("œ" , "oe" , $ligne1[1]);
if($tab[$ligne2[0]]!='test'){?>
|
=$ligne2[1]?>
|
}?>
| |
- =$ligne1[1]?>
|
$tab[$ligne2[0]]='test';
}
}else{
?>
 |
=$ligne2[1]?>
|
| |
Aucun résultat trouvé dans les articles de ce blog
|
}
$color++;
}?>
|
}
if($nb_resultat_total==0){echo 'Pas de résultats pour cette recherche.
';}
?>
afficher_pied_de_page(); ?>