Parašė Wiav· 2008 Lap. 10 17:11:10
#7
openside('Naujien¸ raðytojai');
$result = dbquery("SELECT * FROM ".DB_PREFIX."users WHERE user_level > 101 ORDER BY user_level DESC, user_name");
while($data = dbarray($result)) {
if (dbcount("(news_id)", "news", "news_name='".$data['user_id']."'") != 0) echo "<img src='".THEME."images/bullet.gif'>Administratorius <a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>".$data['user_name']."</a> paraðë <b>".dbcount("(news_id)", "news", "news_name='".$data['user_id']."'")."</b> naujienas<br>";
}
closeside();