.:NOUVEAUTES:.

0) { $i=0; while ($i<$num) { $titre = mysql_result($resultat,$i,"titre"); $id = mysql_result($resultat,$i,"id"); $Date = mysql_result($resultat,$i,"date"); $texte = mysql_result($resultat,$i,"texte"); $auteur = mysql_result($resultat,$i,"auteur"); $autmail = mysql_result($resultat,$i,"autmail"); $image = mysql_result($resultat,$i,"image"); $imgurl = mysql_result($resultat,$i,"imgurl"); $target = mysql_result($resultat,$i,"target"); $texte = ucfirst($texte); $texte = ereg_replace("\n","
",$texte); $titre = ucfirst($titre); $datelim = mktime(date("H"),date("i"),0,date("m"),date("d")-$jours,date("Y")); $datelim1 = date("Y/m/d H:i", $datelim); $time = substr ("$Date", -5); $rest = substr ("$Date", 0, 10); list ($year, $month, $day) = split ("/", $rest); //------------------------------------------------------------------------ // date format //------------------------------------------------------------------------ $Date1 = ("$day"."-"."$month"."-"."$year"." $time"); //------------------------------------------------------------------------ // design //------------------------------------------------------------------------ //------------------------------- echo "
"; echo "
"; //----------------title---------------- if ($Date > $datelim1) { echo ("  "); } echo replink($titre); //------------------------------------- echo""; echo"
"; //------------------------------------------ echo "
"; //----------------text----------------- if (!($image == '') && !($imgurl == '')) echo (""); if (!($image == '') && ($imgurl == '')) echo (""); echo replink($texte); //------------------------------------- echo "
 "; //---------------date & author--------- if (!($auteur == '') && !($autmail == '')) echo (translate("author")." : $auteur"); if (!($auteur == '') && ($autmail == '')) echo (translate("author")." : $auteur"); //------------------------------------- echo" $Date1


"; $i++; } } echo"
"; //-------------------------------------------------------------- // navigation //-------------------------------------------------------------- $resultat = mysql_db_query("$base","select * from $table where language='fr'"); echo"
"; $nrows = mysql_num_rows($resultat); $nombre = ceil($nrows/$nnp); if ($debut > 0) { echo "\"".translate("Next "; } if ($nombre > 1) { for($i = 1; $i <= $nombre; $i++) { echo " ".$i." "; } } if ( ($debut + $nnp) < $nrows) { echo " \"".translate("Previous"; } echo"
"; $resultat = mysql_close($connexion); } ?>