projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e95b3c6
)
ExcelToJson.php
author
Edward
<edward@roojs.com>
Mon, 18 Mar 2013 04:22:24 +0000
(12:22 +0800)
committer
Edward
<edward@roojs.com>
Mon, 18 Mar 2013 04:22:24 +0000
(12:22 +0800)
ExcelToJson.php
patch
|
blob
|
history
diff --git
a/ExcelToJson.php
b/ExcelToJson.php
index
93acb93
..
6fb8278
100644
(file)
--- a/
ExcelToJson.php
+++ b/
ExcelToJson.php
@@
-58,7
+58,7
@@
class Pman_Core_ExcelToJson extends Pman_Roo
}
if(!$header){
- $r
ows[strtoupper($n[0])
] = $n[1];
+ $r
et[$n[0]
] = $n[1];
continue;
}
@@
-102,7
+102,7
@@
class Pman_Core_ExcelToJson extends Pman_Roo
$this->jerr("error occur on getting item with reference " . $r['ITEM CODE']);
}
- $ret[] = array(
+ $ret[
'data'
] = array(
'itemsite_item_id' => $itemsite->itemsite_item_id,
'itemsite_id' => $itemsite->pid(),
'itemsite_item_id_item_number' => $r['ITEM CODE'],