UserActionModel.class.php 875 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * 小梦科技资源nanodreamtech.com
  4. *
  5. * ==========================================================================
  6. * @link https://www.nanodreamtech.com/
  7. * @copyright Copyright (c) 2015 liofis.com.
  8. * @license https://www.nanodreamtech.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. ?>