Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Dėl top 10 apribojimu :D

Parašė And2s· 2009 Rugp. 14 20:08:43
#2

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
if ($data['download_count'] < 40)  {
$itemsubject = trimlink($data['download_title'], 30);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
}
} else {
echo "<center>Siuntinių nėra !</center>\n";




Redagavo And2s· 2009 Rugp. 14 20:08:19