$medals=array();$mls=DB::query("SELECT a.*,b.* FROM ".DB::table("common_member_medal")." a LEFT JOIN ".DB::table("forum_medal")." b on b.medalid=a.medalid WHERE b.`available` <> 0 AND a.`uid`='$_G[uid]' ORDER BY b.`displayorder` ASC LIMIT 0,20");while ($ml=DB::fetch($mls)) { $medals[]=$ml;} |
<div class="buttons row medal"><!--{loop $medals $medal}--><div class="medal-list col-xs-1"><img src="{$_G['style'][imgdir]}/{$medal['image']}"alt="" id="md_{$medal['medalid']}" onmouseover="showMenu({'ctrlid':this.id, 'menuid':'md_{$medal['medalid']}_menu', 'pos':'12!'});" initialized="true"/><span class="medal-text">{$medal['name']}</br>{$medal['description']}</span></div><!--{/loop}--></div> |
新闻热点
疑难解答