Authored by hf

code review by fei.hong: do format category codes

@@ -46,6 +46,7 @@ class ClassModel @@ -46,6 +46,7 @@ class ClassModel
46 $genderArr = array('boy' => '1,3', 'girl' => '2,3', 'kids' => '1,2,3', 'lifestyle' => '1,2,3'); 46 $genderArr = array('boy' => '1,3', 'girl' => '2,3', 'kids' => '1,2,3', 'lifestyle' => '1,2,3');
47 $oneClass = array(); 47 $oneClass = array();
48 $item = array(); 48 $item = array();
  49 + $subitem = array();
49 foreach ($data['data'] as $k => $v) { 50 foreach ($data['data'] as $k => $v) {
50 $oneClass = array('name' => ucfirst(rtrim($k, 's')), 'ca' => array()); 51 $oneClass = array('name' => ucfirst(rtrim($k, 's')), 'ca' => array());
51 52