Parašė And2s· 2010 Geg. 29 13:05:32
#12
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,9");
if (dbrows($result) != 0) {
echo "<table width='170' cellpadding='0' cellspacing='0' align='left' style='font-family: Tahoma; font-size: 10px'>\n";
while ($data = dbarray($result)) {
echo "<tr>
<td align='left'><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' target='_blank' title='".$data['download_title']."' class='side' style='line-height: 10px;color:white;'>".trimlink($data['download_title'], 40)."</a></td>
<td align='right'><span style='color: #ffffff'>[".$data['download_count']."]</span></td>
</tr>\n";
}
echo "</table>";