$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> |
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: discuz 调用用户勋章代码