load->model('statics_model'); $this->data['startdate'] = $this->input->get('startdate', TRUE, date('Y-m-d', strtotime("-1 month"))); $this->data['enddate'] = $this->input->get('enddate', TRUE, date('Y-m-d', strtotime("-1 days"))); } /** * 사용자 접속 로그 */ public function visit() { // 모델 가져오기 $this->load->model('statics_model'); // 넘어온 검색값 정리 $this->data['startdate'] = $this->input->get('startdate', TRUE, date('Y-m-d', strtotime("-1 month", time()))); $this->data['enddate'] = $this->input->get('enddate', TRUE, date('Y-m-d')); // 값 가져오기 $param['page'] = $this->input->get('page', TRUE, 1); $param['page_rows'] = 20; $param['limit'] = TRUE; $param['where']['sta_regtime >='] = $this->data['startdate'] ." 00:00:00"; $param['where']['sta_regtime <='] = $this->data['enddate'] ." 23:59:59"; $this->data['visit_list'] = $this->statics_model->visit_list($param); // 페이지네이션 세팅 $this->load->library('paging'); $this->paging->initialize(array( "page" => $param['page'], "page_rows" => $param['page_rows'], "total_rows" => $this->data['visit_list']['total_count'], "fixe_nums" => 10, 'full_tag_open' => '