projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b9d2a12
)
ExcelToJson.php
author
Alan Knowles
<alan@roojs.com>
Fri, 22 Mar 2013 02:40:40 +0000
(10:40 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 22 Mar 2013 02:40:40 +0000
(10:40 +0800)
ExcelToJson.php
patch
|
blob
|
history
diff --git
a/ExcelToJson.php
b/ExcelToJson.php
index
11a6950
..
a923d9c
100644
(file)
--- a/
ExcelToJson.php
+++ b/
ExcelToJson.php
@@
-42,10
+42,7
@@
class Pman_Core_ExcelToJson extends Pman_Roo
$this->jerr("invalid file");
}
$this->jerr("invalid file");
}
- $req = array(
- 'LINE', 'ITEM CODE', 'DESCRIPTION', 'QUANTITY'
- );
-
+
$cols = false;
$header = false;
$rows = array();
$cols = false;
$header = false;
$rows = array();
@@
-72,12
+69,7
@@
class Pman_Core_ExcelToJson extends Pman_Roo
continue;
}
continue;
}
- foreach($req as $r) {
- if (!in_array($r,$cols)) {
- $cols = false;
- break;
- }
- }
+
continue;
}
continue;
}