Parašė Use Google· 2009 Rugp. 26 13:08:35
Dragelis parašė:
openside("Naujausi epizodai");
$result = dbquery("SELECT download_cat, download_id, download_cat_name, download_title FROM ".$db_prefix."downloads
INNER JOIN ".$db_prefix."download_cats ON download_cat = download_cat_id
WHERE ".groupaccess('download_cat_access')." ORDER BY download_datestamp DESC LIMIT 5");
if (dbrows($result)) {
while ($data = dbarray($result)) echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a> (Kategorija: <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."' title='".$data['download_cat_name']."' class='side'>".trimlink($data['download_cat_name'], 23)."</a>)<br>\n";
} else {
echo "<center>".$locale['004']."</center>\n";
}