Changeset 754


Ignore:
Timestamp:
Feb 10, 2015 10:46:51 AM (10 years ago)
Author:
quyenla
Message:

report update

File:
1 edited

Legend:

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

    r749 r754  
    7575        $sheet->setCellValue('G4', "LÅ©y kế DT tháng");
    7676        $sheet->setCellValue('H4', "Tổng DT năm");
    77 
     77        $dem=0;
    7878        foreach ($data['provinces'] as $index => $provinces) {
    79             $sheet->setCellValue('A' . ($index + 5), $provinces['stt']);
    80             $sheet->setCellValue('B' . ($index + 5), $provinces['province']);
    81             $sheet->setCellValue('C' . ($index + 5), $provinces['tbng']);
    82             $sheet->setCellValue('D' . ($index + 5), $provinces['tbt']);
    83             $sheet->setCellValue('E' . ($index + 5), $provinces['tbn']);
    84             $sheet->setCellValue('F' . ($index + 5), $provinces['dtng']);
    85             $sheet->setCellValue('G' . ($index + 5), $provinces['dtt']);
    86             $sheet->setCellValue('H' . ($index + 5), $provinces['dtn']);
     79            $sheet->setCellValue('A' . ($dem + 5), $provinces['stt']);
     80            $sheet->setCellValue('B' . ($dem + 5), $provinces['province']);
     81            $sheet->setCellValue('C' . ($dem + 5), $provinces['tbng']);
     82            $sheet->setCellValue('D' . ($dem + 5), $provinces['tbt']);
     83            $sheet->setCellValue('E' . ($dem + 5), $provinces['tbn']);
     84            $sheet->setCellValue('F' . ($dem + 5), $provinces['dtng']);
     85            $sheet->setCellValue('G' . ($dem + 5), $provinces['dtt']);
     86            $sheet->setCellValue('H' . ($dem + 5), $provinces['dtn']);
     87            $dem++;
    8788        }
    8889        $writer = new PHPExcel_Writer_Excel5($this->phpexcel);
     
    9192        $writer->save('php://output');
    9293    }
     94 
    9395
    9496}
Note: See TracChangeset for help on using the changeset viewer.