Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Atsitiktiniai siuntiniai

Parašė zDon· 2010 Sau. 30 13:01:31
#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'>".$data['download_title']." - <b>Parsisiųsti</b></a></td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
closeside();