Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function search(){
- $this->breadcrumb[] = array(
- "title" => "List"
- );
- if($this->input->post('btn_reset')){
- // $this->_reset();
- redirect($this->own_link);
- }
- if($this->input->post('btn_search')){
- $par_filter = array(
- "colum" => trim($this->input->get('colum')),
- "keyword" => trim($this->input->get('keyword')),
- "date_start" => trim ($this->input->get('date_start')),
- "date_to" => trim ($this->input->get('date_end'))
- );
- $this->data_table = $this->M->infaq($par_filter);
- $data = $this->_data(array(
- "base_url" => $this->own_link.'/index'
- ));
- $data['param'] = array(
- "noreg" => trim($this->input->post('noreg')),
- "date_from" => trim ($this->input->post('date_start')),
- "date_to" => trim ($this->input->post('date_end'))
- );
- $this->_v($this->folder_view.$this->prefix_view,$data);
- }
- if($this->input->post('print_excel')){
- $par_filter = array(
- "noreg" => trim($this->input->post('noreg')),
- "date_from" => trim ($this->input->post('date_from')),
- "date_to" => trim ($this->input->post('date_to'))
- );
- $cetak = $this->M->infaq($par_filter);
- if($this->jCfg['user']['userrole'] == 31 || $this->jCfg['user']['userrole'] == 1 ){
- $this->_v($this->folder_view.$this->prefix_view."_export",$cetak,false);
- }
- }
- $this->js_plugins = array(
- 'plugins/bootstrap/bootstrap-datepicker.js',
- 'plugins/bootstrap/bootstrap-file-input.js',
- 'plugins/bootstrap/bootstrap-select.js',
- 'plugins/datatables/jquery.dataTables.min.js'
- );
- // echo json_encode($this->data_table);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement