最新加入组件制作

  1. <php>$last_users=sp_get_users("field:*;limit:0,8;order:create_time desc;");</php>
  2. <ul class="list-unstyled tc-photos margin-bottom-30">
  3. <foreach name="last_users" item="vo">
  4. <li>
  5. <a href="{:U('user/index/index',array('id'=>$vo['id']))}">
  6. <img alt="" src="{:U('user/public/avatar',array('id'=>$vo['id']))}">
  7. </a>
  8. </li>
  9. </foreach>
  10. </ul>