ExcelToJson.php
[Pman.Core] / ExcelToJson.php
index a2e1245..55c5623 100644 (file)
@@ -59,32 +59,34 @@ class Pman_Core_ExcelToJson extends Pman_Roo
                $rows[$n[0]] = $n[1];
                continue;
             }
-            
+            print_r('run');exit;
             if(!$cols){
                 $cols = array();
                 foreach($n as $k) {
                     $cols[] = strtoupper(trim($k));
                 }
-
+                print_r($cols);exit;
                 if (empty($cols)) {
                     continue;
                 }
+                print_r($cols);exit;
                 foreach($req as $r) {
                     if (!in_array($r,$cols)) {
+                        print_r($r);
                         $cols = false;
                         break;
                     }
                 }
                 continue;
             }
-            print_r('run');exit;
+            
             foreach($cols as $i=>$k) {
                 $row[$k] = $n[$i];
             }
             $rows[] = $row;
             
         }
-        print_r($cols);exit;
+         exit;
         if (empty($cols)) {
             $this->jerr("could not find a row with " . implode(' / ', $req));
         }