Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: del top ir naujausiu siuntinu

Parašė Žmogus· 2008 Lie. 15 19:07:27
#6

Še...

   echo "<table id='header_01' width='990' height='200' border='0' cellpadding='0' cellspacing='0'>
   <tr>
      <td rowspan='3' class='header1' width='553' height='200' alt=''></td>
      <td colspan='4' class='header2' width='434' height='51' alt=''></td>
      <td>
         <img src='images/spacer.gif' width='1' height='14' alt=''></td>
   </tr>
   <tr>
      <td class='header3' width='203' height='120' alt=''>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
   if (dbrows($result) != 0) {
      echo "<table align='center' width='200' cellpadding='0' cellspacing='0'>";
      while ($data = dbarray($result)) {
         echo "<tr>
            <td class='small'>
                                        <img src='".THEME."images/bulletb.gif'>
               <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'><span style='color:#FFFFFF'>".trimlink($data['download_title'], 30)."</span></a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";
   } else {
      echo "&#352;iai panelei n&#279;ra turinio";
   }
     echo "</td>
                <td class='header4' width='19' height='120' alt=''></td>
      <td class='header5' width='204' height='120' alt=''>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY download_count DESC LIMIT 0,10");
   if (dbrows($result) != 0) {
      echo "<table width='200' align='center' cellpadding='0' cellspacing='0'>";
      while ($data = dbarray($result)) {
         echo "<tr>
            <td class='small'>
               <img src='".THEME."images/bulletb.gif'>
               <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'><span style='color:#FFFFFF'>".trimlink($data['download_title'], 30)."</span></a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";
   } else {
      echo "&#352;iai panelei n&#279;ra turinio";
   }
          echo "</td>
                <td class='header6' width='10' height='120' alt=''></td>
     
   </tr>
   <tr>
      <td colspan='4' rowspan='2' class='header7' width='434' height='29' alt=''></td>
      <td>
         <img src='images/spacer.gif' width='1' height='30' alt=''></td>
   </tr>
</table>";