Parašė robert· 2009 Kov. 24 16:03:34
#10
Popular_downloads:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
openside_panel($locale['PD_001']);
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='150' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 20);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."muzika.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."'><span style='color:white'>$itemsubject</span></a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closeside_panel();
?>
Latest_Downloads:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
openside_panel($locale['LDP_001']);
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='150' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 20);
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."muzika.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."'><span style='color:white'>$itemsubject</span></a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
closeside_panel();
?>