Ignore:
Timestamp:
Apr 7, 2015 1:52:40 PM (10 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/admin/controllers/reportprovince.php

    r818 r883  
    3030
    3131        $this->load->model('reportmodel');
    32         $data['date'] = date("d");
     32        $data['date'] = 1;
    3333        $data['month'] = date("m");
    3434        $data['year'] = date("Y");
     
    3737        $data['to_year'] = date("Y");
    3838        if ($this->input->post()) {
    39                         $data['date'] = $this->input->post('date');
    40             $data['month'] = $this->input->post('month');
    41             $data['year'] = $this->input->post('year');
     39            //$data['month'] = $this->input->post('month');
     40            //$data['year'] = $this->input->post('year');
     41                        $data['month'] = $this->input->post('to_month');
     42            $data['year'] = $this->input->post('to_year');
    4243                        $data['to_date'] = $this->input->post('to_date');
    4344            $data['to_month'] = $this->input->post('to_month');
     
    130131        public function exportProvince(){
    131132                $this->load->model('reportmodel');
    132                 $data['date'] = date("d");
     133                $data['date'] = 1;
    133134        $data['month'] = $this->uri->segment(4);
    134135        $data['year'] = $this->uri->segment(5);
     
    137138        $data['to_year'] = date("Y");
    138139        if ($this->input->post()) {
    139                         $data['date'] = $this->input->post('date');
    140             $data['month'] = $this->input->post('month');
    141             $data['year'] = $this->input->post('year');
     140                        //$data['date'] = $this->input->post('date');
     141            $data['month'] = $this->input->post('to_month');
     142            $data['year'] = $this->input->post('to_year');
    142143                        $data['to_date'] = $this->input->post('to_date');
    143144            $data['to_month'] = $this->input->post('to_month');
     
    362363        $writer = new PHPExcel_Writer_Excel5($this->phpexcel);
    363364                header('Content-Type: application/vnd.ms-excel');
    364         header('Content-Disposition: attachment; filename="thue_bao_va_doanh_thu_theo_tinh_' .$data["date"]. $data['month'] . $data['year']."_".$data["to_date"]. $data['to_month']. $data['to_year'] . '.xls"');
     365        header('Content-Disposition: attachment; filename="thue_bao_va_doanh_thu_theo_tinh_' . $data["to_date"].'_'. $data['to_month'].'_'. $data['to_year'] . '.xls"');
    365366        $writer->save('php://output');
    366367        }
Note: See TracChangeset for help on using the changeset viewer.