projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c220289
)
SimpleExcel.php
author
Edward
<edward@roojs.com>
Wed, 23 Jan 2013 07:46:58 +0000
(15:46 +0800)
committer
Edward
<edward@roojs.com>
Wed, 23 Jan 2013 07:46:58 +0000
(15:46 +0800)
SimpleExcel.php
patch
|
blob
|
history
diff --git
a/SimpleExcel.php
b/SimpleExcel.php
index
5467954
..
200246a
100644
(file)
--- a/
SimpleExcel.php
+++ b/
SimpleExcel.php
@@
-146,8
+146,8
@@
class Pman_Core_SimpleExcel extends Pman
foreach($cfg['cols'] as $c=>$col_cfg) {
-
- $worksheet->write($start_row, $c, $col_cfg['header']);
+ $format = isset($col_cfg['fgcolor']) ? $formats[$col_cfg['fgcolor']] : false;
+ $worksheet->write($start_row, $c, $col_cfg['header']
,$format
);
$worksheet->setColumn ( $c, $c, $col_cfg['width'] / 5);
}