UserActionModel.class.php 845 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * lionfish 商城系统
  4. *
  5. * ==========================================================================
  6. * @link http://www.liofis.com/
  7. * @copyright Copyright (c) 2015 liofis.com.
  8. * @license http://www.liofis.com/license.html License
  9. * ==========================================================================
  10. *
  11. * @author fish
  12. *
  13. */
  14. namespace Admin\Model;
  15. class UserActionModel{
  16. public function show_user_action_page(){
  17. $count=M('user_action')->count();
  18. $Page = new \Think\Page($count,C('BACK_PAGE_NUM'));
  19. $show = $Page->show();// 分页显示输出
  20. $list = M('user_action')->order('ua_id desc')->limit($Page->firstRow.','.$Page->listRows)->select();
  21. return array(
  22. 'empty'=>'<tr><td colspan="20">~~暂无数据</td></tr>',
  23. 'list'=>$list,
  24. 'page'=>$show
  25. );
  26. }
  27. }
  28. ?>