<?PHP
/************************************************************************/
/* DUNE by NPDS                                                         */
/* ===========================                                          */
/*                                                                      */
/* Based on PhpNuke 4.x source code                                     */
/*                                                                      */
/* NPDS Copyright (c) 2002-2007 by Philippe Brunier                     */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
   global $language;
   include ("modules/block-scroll-article/block-scroll-article.conf.php");
   $content ="\n";
   $today      = time();
   $thisday = date("Y-m-d h:i:s",$today);
   $title      ="".translate("Last articles")."";
   $Sql_Art = sql_query("SELECT sid, title FROM ".$NPDS_Prefix."stories ORDER BY 'time' ASC LIMIT 0 , ".$scroll_Nbre." ");
   $content.="<marquee \n";
   $content.="behavior=\"".$scroll_Type."\" \n";
   $content.="direction=\"".$scroll_Sens."\"\n";
   $content.="scrollamount=\"".$scroll_Speed."\" \n";
   $content.="scrolldelay=\"1\" \n";
   $content.="onmouseover=\"this.stop()\" \n";
   $content.="onmouseout=\"this.start()\" \n";
   $content.="style=\"height: ".$scroll_Height."; text-align: center; margin-right: 5px;\" \n";
   $content.="width=\"".$scroll_Width."\" \n";
   $content.=">\n";
   $i=1;
   while ($resultat = sql_fetch_row($Sql_Art))
   {
      $content.="<a href=\"article.php?sid=".$resultat[0]."&mode=&order=0\" class=\"menulink\">";
      $content.="<b>".aff_langue($resultat[1])."</b>";
      $content.="</a>";
      $content.="<hr noshade class=\"ongl\">\n";
      $i++;
   }
   $content.="</marquee>\n";
   sql_free_result($Sql_Art);
?>