+ }
+
+
+ foreach($data as $x) {
+ //echo "<PRE>"; print_r(array($_REQUEST['csvCols'], $x->toArray())); exit;
+ $line = array();
+ if ($titles== '*') {
+ $titles= array_keys($x);
+ }
+ if ($cols== '*') {
+ $cols= array_keys($x);
+ }
+ if ($titles !== false) {
+ foreach($cols as $i=>$col) {
+ $se_config['cols'][] = array(
+ 'header'=> isset($titles[$i]) ? $titles[$i] : $col,
+ 'dataIndex'=> $col,
+ 'width'=> 100,
+ // 'renderer' => array($this, 'getThumb'),
+ // 'color' => 'yellow', // set color for the cell which is a header element
+ // 'fillBlank' => 'gray', // set
+ );
+ $se = new Pman_Core_SimpleExcel(array(),$se_config);
+