SimpleExcel.php
authorEdward <edward@roojs.com>
Wed, 12 Mar 2014 10:22:29 +0000 (18:22 +0800)
committerEdward <edward@roojs.com>
Wed, 12 Mar 2014 10:22:29 +0000 (18:22 +0800)
SimpleExcel.php

index ffc65af..2805699 100644 (file)
@@ -318,9 +318,8 @@ class Pman_Core_SimpleExcel extends Pman
             $v = @iconv('UTF-8', 'UTF-8//IGNORE', $v);
             
             $dataFormat = empty($col_cfg['dataFormat']) ? '' : $col_cfg['dataFormat'];
-           
-            $validator = $this->workbook->addValidator();
-            $validator->setFormula1('$speaker.$A$1:$A$15');
+             ;
+            
             
             $format = isset($col_cfg['format'])  && isset($formats[$col_cfg['format']] )   ? $formats[$col_cfg['format']] : false;
           //  print_R(array($start_row+$r, $c, $v, $format));exit;
@@ -330,8 +329,8 @@ class Pman_Core_SimpleExcel extends Pman
                     $dataFormat == 'string' ) {
                 $worksheet->writeString($start_row+$r, $c, $v, $format);
             } else {
-                $worksheet->setValidation(0,0,0,0,$validator);
-//                $worksheet->write($start_row+$r, $c, $v, $format);
+          
+                $worksheet->write($start_row+$r, $c, $v, $format);
             }
         }
         $this->start_row++;