Parašė TaduXxX· 2009 Gru. 17 18:12:09
#2
openside("Straipsniai");
echo "<table height='70'>";
$result = dbquery(
"SELECT * FROM ".$db_prefix."articles WHERE article_cat='1'
ORDER BY article_datestamp DESC LIMIT 0,10"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 20);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
echo "</td></tr></table>";
closeside();
Megink