From: Edward Date: Wed, 23 Jan 2013 08:23:50 +0000 (+0800) Subject: SimpleExcel.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=6267a1914e27f746f739f4d5ae2d715fd3fdd2ce;p=Pman.Core SimpleExcel.php --- diff --git a/SimpleExcel.php b/SimpleExcel.php index 9b881815..cba40564 100644 --- a/SimpleExcel.php +++ b/SimpleExcel.php @@ -159,12 +159,12 @@ class Pman_Core_SimpleExcel extends Pman if (isset($cfg['row_height'])) { $worksheet->setRow($start_row +$r, $cfg['row_height']); } - print_r($col_cfg);exit; + foreach($cfg['cols'] as $c=>$col_cfg) { $v = isset($cl[$col_cfg['dataIndex']]) ? $cl[$col_cfg['dataIndex']] : ''; if (empty($cl[$col_cfg['dataIndex']])) { - if(isset($cl['fillBlank'])){ - $worksheet->write($start_row+$r, $c, '', $formats[$cl['fillBlank']]); + if(isset($col_cfg['fillBlank'])){ + $worksheet->write($start_row+$r, $c, '', $formats[$col_cfg['fillBlank']]); } continue; }