Parašė Vaidasr· 2008 Vas. 10 17:02:42
#1
@openside("Naujausios MP3 dainos");
$result=dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,10");
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
if(dbrows($result)!=0){
while($data=dbarray($result)){
echo "<tr>
<td class='side-small'><a target=_blank href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' class='side'><b>".trimlink($data['download_title'], 80)."</b></a></td>
<td align='right' class='sidesmall'>$data[download_count]</td>
</tr>\n";
}
echo "</table>\n";
} else {
echo $locale['004'];
echo "</table>\n";
}
@closeside();
Noriu kad kas perdarytu šita panele iš 10 į 15 kad rodytu tiek naujienų.
Redagavo ozzWANTED· 2008 Vas. 10 17:02:49