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

index eb68cde..79a52f3 100644 (file)
@@ -163,7 +163,9 @@ class Pman_Core_SimpleExcel extends Pman
             foreach($cfg['cols']  as $c=>$col_cfg) {
                 $v = isset($cl[$col_cfg['dataIndex']]) ? $cl[$col_cfg['dataIndex']] : '';
                 if (empty($cl[$col_cfg['dataIndex']])) {
-                    $worksheet->write($start_row+$r, $c, '', $formats['gray']);
+                    if(isset($data['fillBlank'])){
+                        $worksheet->write($start_row+$r, $c, '', $formats[$data['fillBlank']]);
+                    }
                     continue;
                 }
                 if (isset($col_cfg['txtrenderer'])) {