index_kc50.class.php 940 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /***
  3. * Class Index_kc50
  4. * * @author 王刚涛
  5. * 日线数据
  6. */
  7. class Index_kc50 {
  8. /**
  9. * 记录管理员日志
  10. *
  11. * @param $log 日志内容
  12. *
  13. */
  14. static public function add($attrs){
  15. if (empty($attrs)) throw new Exception('参数不能为空', 102);
  16. $Table_index_kc50 = new Table_index_kc50();
  17. $id = $Table_index_kc50->add($attrs);
  18. return $id;
  19. }
  20. /**
  21. * 管理员日志记录列表
  22. *
  23. * @param $page 当前页
  24. * @param $pagesize 每页大小
  25. *
  26. */
  27. static public function getListByPage($page, $pagesize){
  28. $filter = array();
  29. $Table_index_kc50 = new Table_index_kc50();
  30. return $Table_index_kc50->getList($filter, 0, $page, $pagesize);
  31. }
  32. //管理员日志总数
  33. static public function getCountAll(){
  34. $filter = array();
  35. $Table_index_gem = new Table_index_csi300();
  36. return $Table_index_gem->getList($filter, 1);
  37. }
  38. }
  39. ?>