SimpleExcel.php
authorEdward <edward@roojs.com>
Wed, 23 Jan 2013 08:23:50 +0000 (16:23 +0800)
committerEdward <edward@roojs.com>
Wed, 23 Jan 2013 08:23:50 +0000 (16:23 +0800)
SimpleExcel.php

index 9b88181..cba4056 100644 (file)
@@ -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;
                 }