Parašė kLx· 2008 Vas. 11 07:02:09
#6
openside("Atsitiktiniai siuntiniai");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY RAND() DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'> ".$data['download_description']."
</td>
<td align='right'><a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'><b>Parsisiųsti</b></a></td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
closeside();
Šio saito skriptų bibliotekoj..
Redagavo kLx· 2008 Vas. 11 07:02:17