Parašė Niger· 2009 Rugs. 22 18:09:47
#2
echo "<div class='side-label'><b>Paskutines naujienos</b></div>\n";
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."news ta
INNER JOIN ".$db_prefix."news_cats tac ON ta.news_cat=tac.news_cat_id
WHERE ".groupaccess('news_visibility')." ORDER BY news_datestamp DESC LIMIT 0,9"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 26);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'>$itemsubject</a><br>
<br>
\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";