编程之家 jb51.cc GET标签首页调用会员积分前十名排行包含头像
以下为引用的内容: <h4><a href="{$MODULE[member][url]}"><img src="images/more.gif" alt="更多" /></a>会员排行</h4> <style type="text/css"> .modellist_2 { width:315px; overflow:hidden;} .search_member {height:80px; min-height:80px; padding:2px; clear:both; border-bottom:1px dashed #ccc; } .search_member dt{ float:left; } .search_member dt img{ height:68px; width:68px; padding:1px; border:1px solid #dcdcdc;} .search_member dd{ float:right; height:22px; line-height:22px; width:230px; overflow:hidden;} .search_member dd em{ font-style:normal; color:#999;padding-left:10px;} </style> <div class="modellist_2"> <!--{get sql="SELECT * FROM `PHPcms_member_cache` a,`PHPcms_member_info` i WHERE a.userid=i.userid AND disabled=0 ORDER BY point desc" rows="10"}--> <dl class="search_member"> <dt> <a href="{$MODULE[member][url]}view.PHP?userid={$r[userid]}" title="{$r[username]}" target="_blank"><img src="{avatar($r[userid])}" alt="{$r[username]}" target="_blank"/></a> </dt> <dd> <a href="{$MODULE[member][url]}view.PHP?userid={$r[userid]}" class="name"><span style="color:red">{$r[username]}</span></a> <em>所在地区: {$AREA[$r[areaid]][name]}</em> </dd> <dd> 联系方式:<em>{$r[email]}</em> </dd> <dd>个人空间:<a href="space?userid={$r[userid]}" class="green">space?userid={$r[userid]}</a> </dd> </dl> <!--{/get}--> </div> |
在想要调用的位置加上上面这段代码即可,CSS我都已经包含在了这段代码中,我这个CSS,适合位置为默认的模板右侧,其它位置自己调CSS。