Parašė dLc· 2011 Geg. 15 11:05:22
#6
Kaip tylesburg sake:
openside("Naujienų kategorijos");
$result = dbquery("SELECT * FROM ".$db_prefix."news_cats
WHERE cat='KAZKAS' ORDER BY news_cat_name");
while ($data = dbarray($result)) {
$rows = dbcount("(news_id)", "fusion_news", "news_cat='".$data['news_cat_id']."' AND ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")");
echo "<a href='".BASEDIR."news_cats.php?cat_id=".$data['news_cat_id']."' lass='side'><img src='".$settings['siteurl']."images/news_cats/".$data['news_cat_image']."' border='0' width='25' height='25' />".$data['news_cat_name']."[$rows]</a><br />";
}
closeside()