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

Parašė Gizmis· 2008 Bir. 23 23:06:23
#17

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();




imk :) netgi sitam forume radau ieskokis paieska ;)

Redagavo Gizmis· 2008 Bir. 23 23:06:55