Parašė Zeck· 2009 Rugs. 23 13:09:20
#6
Gal zinote kaip is sitos naujausiu straipsniu paneles padaryti naujausias video?
openside("Paskutiniai straipsniai ");
echo "<div class='side-label'><b>Paskutiniai straipsniai</b></div>\n";
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,7"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 23);
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";
}
closeside();
echo "</tr>
</table>";
Redagavo Zeck· 2009 Rugs. 23 13:09:28