SimpleExcel.php
authorEdward <edward@roojs.com>
Wed, 12 Mar 2014 11:33:35 +0000 (19:33 +0800)
committerEdward <edward@roojs.com>
Wed, 12 Mar 2014 11:33:35 +0000 (19:33 +0800)
SimpleExcel.php

index da9cb1d..2805699 100644 (file)
@@ -318,13 +318,9 @@ class Pman_Core_SimpleExcel extends Pman
             $v = @iconv('UTF-8', 'UTF-8//IGNORE', $v);
             
             $dataFormat = empty($col_cfg['dataFormat']) ? '' : $col_cfg['dataFormat'];
-            if($worksheet_name == 'event'){
-                $validator = $this->workbook->addValidator();
-                $validator->setFormula1('speaker!$A$1:$A$15');
-
-                $worksheet->setValidation(5,5, 5,5,$validator);
+             ;
+            
             
-            }
             $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;
           // handle 0 prefixes..
@@ -336,13 +332,10 @@ class Pman_Core_SimpleExcel extends Pman
           
                 $worksheet->write($start_row+$r, $c, $v, $format);
             }
-            
         }
-        
-            $this->start_row++;
+        $this->start_row++;
         
         return $hasRender;
-        
     }