Parašė Jaunelis· 2008 Gru. 3 16:12:12
#12
Enzo parašė:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
openside_panel($locale['LDP_001']);
$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) {
echo "<table width='90' cellpadding='0' cellspacing='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";
}
echo "</table>";
}
closeside_panel();
?>
Sniuf ir enzo labai padėjot ;) DĖKUI
Redagavo Jaunelis· 2008 Gru. 3 16:12:30