Esempio n. 1
0
 public function initParam()
 {
     # 定义编辑和删除的URL
     $this->_editUrl = CUrl::getUrl("fecadmin/account/manageredit");
     $this->_deleteUrl = CUrl::getUrl("fecadmin/account/managerdelete");
     $this->_obj = new AdminUser();
     $this->_paramKey = 'id';
     /*  
     		# 自定义参数如下:
     		#排序默认为主键倒序
     		$this->_orderField  = 'created_at';
     		$this->_sortDirection = 'asc';
     # 主键默认为id
     		$this->_paramKey = 'id';
     #第一次打开默认为第一页,一页显示50个
     		$this->_pageNum = 1;
     		$this->_numPerPage;
     */
     parent::initParam();
 }
Esempio n. 2
0
 public function initParam()
 {
     # 定义编辑和删除的URL
     $this->_editUrl = '';
     #CUrl::getUrl("fecadmin/log/indexedit");
     $this->_deleteUrl = '';
     #CUrl::getUrl("fecadmin/account/indexdelete");
     $this->_obj = new AdminLog();
     $this->_paramKey = 'id';
     /*  
     		# 自定义参数如下:
     		#排序默认为主键倒序
     		$this->_orderField  = 'created_at';
     		$this->_sortDirection = 'asc';
     # 主键默认为id
     		$this->_paramKey = 'id';
     #第一次打开默认为第一页,一页显示50个
     		$this->_pageNum = 1;
     		$this->_numPerPage;
     */
     parent::initParam();
     $this->_param['created_at_lt'] || ($this->_param['created_at_lt'] = date('Y-m-d', strtotime(CDate::getCurrentDate() . ' +1 day ')));
     $this->_param['created_at_gte'] || ($this->_param['created_at_gte'] = date('Y-m-d', strtotime($this->_param['created_at_gte'] . ' -1 month ')));
 }