Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padekit del paneles

Parašė Wasiulis· 2013 Bal. 12 17:04:15
#2


openside("Naujienų kategorijos");
 $result = dbquery("SELECT * FROM ".$db_prefix."news_cats 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();

Šaltinis: http://phpfusion.lt/infusions/pa...les_id=593

Redagavo Wasiulis· 2013 Bal. 12 17:04:12