| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- /**
- * Class Day_k_base
- * @author 王刚涛
- * 日线数据
- */
- class Day_k_base {
- /***
- * @param $attrs
- * @return mixed
- * @throws Exception
- * 添加信息
- */
- static public function add($attrs,$date=0)
- {
- if (empty($attrs)) throw new Exception('参数不能为空', 102);
- if($date===0)
- {
- $date=strtotime(date('Ym'));
- }
- $Table_day_k_base = new Table_day_k_base($date);
- $id = $Table_day_k_base->add($attrs);
- return $id;
- }
-
- /**
- * 管理员日志记录列表
- *
- * @param $page 当前页
- * @param $pagesize 每页大小
- *
- */
- static public function getListByPage($page, $pagesize){
- $filter = array();
- $Table_day_k_base = new Table_day_k_base();
- return $Table_day_k_base->getList($filter, 0, $page, $pagesize);
- }
-
- //管理员日志总数
- static public function getCountAll(){
- $filter = array();
- $Table_day_k_base = new Table_st_log();
- return $Table_day_k_base->getList($filter, 1);
- }
- }
- ?>
|