From: Alan Knowles Date: Thu, 6 Dec 2012 07:23:06 +0000 (+0800) Subject: SimpleExcel.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=6e645cf1c991b204158d29650c635bf06ac72ed2;p=Pman.Core SimpleExcel.php --- diff --git a/SimpleExcel.php b/SimpleExcel.php index 4c9edd47..16b44ab2 100644 --- a/SimpleExcel.php +++ b/SimpleExcel.php @@ -105,6 +105,11 @@ class Pman_Core_SimpleExcel extends Pman if (!empty($cfg['head'])) { foreach($cfg['head'] as $row) { foreach($row as $c => $col) { + if (is_array($col)) { + $worksheet->write($start_row, $c, $col[0], $col[1]); + continue; + } + $worksheet->write($start_row, $c, $col); } @@ -199,6 +204,10 @@ class Pman_Core_SimpleExcel extends Pman foreach($cfg['foot'] as $row) { foreach($row as $c => $col) { // if it's an array? - formated ??? + if (is_array($col)) { + $worksheet->write($start_row, $c, $col[0], $col[1]); + continue; + } $worksheet->write($start_row, $c, $col); }