当前位置:首页 > CMS教程 > phpcms > 列表

phpcms v9会员推荐位

发布:smiling 来源: PHP粉丝网  添加日期:2014-10-24 14:21:40 浏览: 评论:0 

模版显示推荐会员代码:

  1. <div class="zhanxun2"
  2.             <div class="title"
  3.             <a href=''>推荐会员</a> 
  4.             </div> 
  5.             <div class="huajia"
  6.                         {pc:get sql="SELECT a.userid,a.nickname,b.photo,b.description FROM mobao_member AS a,mobao_form_jianjie AS b WHERE a.groupid=5 AND a.userid=b.userid"
  7.                             {loop $data $v
  8.                                 <div class="info"
  9.                                     <div class="photo"><a href="index.php?m=member&c=space&a=home&uid={$v['userid']}" target="_blank"><img width="50" height="50" src="{$v['photo']}" title="{$v['nickname']}" alt="{$v['nickname']}"></a></div>  //开源软件:phpfensi.com 
  10.                                     <div class="info2"><a href="index.php?m=member&c=space&a=home&uid={$v['userid']}" target="_blank">{str_cut($v['description'],54)}</a></div> 
  11.          
  12.                                 </div> 
  13.                             {/loop} 
  14.                         {/pc} 
  15.     </div> 
  16. </div>

Tags: phpcms会员推荐位 phpcmsv9会员

分享到: