Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: kaip istaisyti?

Parašė Mantas_· 2009 Kov. 16 17:03:41
#7

<tr>
      <td colspan='11'
         background='".THEME."images/gtaaa_16.jpg' width='911' height='129' alt=''>
         <table align='left' width='240px' cellpadding='0' cellspacing='0'>";
         
         echo "</td><td></td><td style='padding-top: 18px; padding-left: 5px;' align='left' width='240'>";
         
   $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,7");
   if (dbrows($result) != 0) {
      echo "<table style='padding-left: 15px;' width='260' cellpadding='0' cellspacing='0'>";
      while ($data = dbarray($result)) {
                     $itemsubject = trimlink($data['download_title'], 30);
      echo "<tr>\n<td class='small'>» <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";

   }

echo "</table>

<table align='left' width='320px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 42px;' align='left' width='320'>";
$result = dbquery("
   SELECT * FROM ".$db_prefix."threads
   INNER JOIN ".$db_prefix."forums ON ".$db_prefix."threads.forum_id=".$db_prefix."forums.forum_id
   WHERE ".groupaccess('forum_access')." ORDER BY thread_lastpost DESC LIMIT 7
");
if (dbrows($result) != 0) {
   while($data = dbarray($result)) {
      $itemsubject = trimlink($data['thread_subject'], 45);
      echo "» <a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>$itemsubject</a><br>\n";
      
   }
} else {
   echo "<center>".$locale['004']."</center>\n";
}




 
   echo "</td></tr></table></td></tr></table>";

echo "<table align='center' cellpadding='0' cellspacing='0' width='911px'>\n<tr>\n";



}




niekaip neina nuimti naujausiu forumo pranesimu siuntiniu ir dar kazko :D