勋章:- <!--{eval $zuozheid = $_G['forum_thread']['authorid']; $xunzhang = DB::fetch_all("SELECT * FROM ".DB::table('common_member_medal')." WHERE `uid`= $zuozheid ORDER BY `medalid` ASC");}-->
- <!--{if $xunzhang}-->
- <!--{loop $xunzhang $xz}-->
- <!--{eval $xztubiao = DB::result(DB::query("SELECT image FROM ".DB::table('forum_medal')." WHERE medalid = '$xz[medalid]'"));}-->
- <img src="static/image/common/$xztubiao">
- <!--{/loop}-->
- <!--{/if}-->
复制代码 用户组+图标:- <!--{eval $zuozheid = $_G['forum_thread']['authorid']; $yonghuzuid = DB::result(DB::query("SELECT groupid FROM ".DB::table('common_member')." WHERE `uid`= $zuozheid")); $yonghuzu = DB::result(DB::query("SELECT grouptitle FROM ".DB::table('common_usergroup')." WHERE groupid = '$yonghuzuid'")); $yonghuzutu = DB::result(DB::query("SELECT icon FROM ".DB::table('common_usergroup')." WHERE groupid = '$yonghuzuid'"));}-->
- <!--{if $yonghuzutu}-->
- <p><img src="data/attachment/common/$yonghuzutu"></p>
- <!--{/if}-->
- <p><em>$yonghuzu</em></p>
复制代码 如果想显示alt信息,那么就是alt="$xz[name]" |