c9583235 by wang

init

1 parent 746270f2
...@@ -201,48 +201,48 @@ class Perm extends CI_Controller { ...@@ -201,48 +201,48 @@ class Perm extends CI_Controller {
201 $item4['pId'] = $vvv->id; 201 $item4['pId'] = $vvv->id;
202 $item4['open'] = true; 202 $item4['open'] = true;
203 $arr[] = $item4; 203 $arr[] = $item4;
204 if (!$vvvv->children || empty($vvvv->children)) { 204 // if (!$vvvv->children || empty($vvvv->children)) {
205 continue; 205 // continue;
206 } 206 // }
207 foreach ($vvvv->children as $kkkkk => $vvvvv) { 207 // foreach ($vvvv->children as $kkkkk => $vvvvv) {
208 $item5 = array(); 208 // $item5 = array();
209 $item5['id'] = $vvvvv->id; 209 // $item5['id'] = $vvvvv->id;
210 $item5['name'] = $vvvvv->name; 210 // $item5['name'] = $vvvvv->name;
211 $item5['pId'] = $vvvv->id; 211 // $item5['pId'] = $vvvv->id;
212 $item5['open'] = true; 212 // $item5['open'] = true;
213 $arr[] = $item5; 213 // $arr[] = $item5;
214 if (!$vvvvv->children || empty($vvvvv->children)) { 214 // if (!$vvvvv->children || empty($vvvvv->children)) {
215 continue; 215 // continue;
216 } 216 // }
217 foreach ($vvvvv->children as $kkkkkk => $vvvvvv) { 217 // foreach ($vvvvv->children as $kkkkkk => $vvvvvv) {
218 $item6 = array(); 218 // $item6 = array();
219 $item6['id'] = $vvvvvv->id; 219 // $item6['id'] = $vvvvvv->id;
220 $item6['name'] = $vvvvvv->name; 220 // $item6['name'] = $vvvvvv->name;
221 $item6['pId'] = $vvvvv->id; 221 // $item6['pId'] = $vvvvv->id;
222 $arr[] = $item6; 222 // $arr[] = $item6;
223 if (!$vvvvvv->children || empty($vvvvvv->children)) { 223 // if (!$vvvvvv->children || empty($vvvvvv->children)) {
224 continue; 224 // continue;
225 } 225 // }
226 foreach ($vvvvvv->children as $k7 => $v7) { 226 // foreach ($vvvvvv->children as $k7 => $v7) {
227 $item7 = array(); 227 // $item7 = array();
228 $item7['id'] = $v7->id; 228 // $item7['id'] = $v7->id;
229 $item7['name'] = $v7->name; 229 // $item7['name'] = $v7->name;
230 $item7['pId'] = $vvvvvv->id; 230 // $item7['pId'] = $vvvvvv->id;
231 $arr[] = $item7; 231 // $arr[] = $item7;
232 if (!$v7->children || empty($v7->children)) { 232 // if (!$v7->children || empty($v7->children)) {
233 continue; 233 // continue;
234 } 234 // }
235 foreach ($v7->children as $k8 => $v8) { 235 // foreach ($v7->children as $k8 => $v8) {
236 $item8 = array(); 236 // $item8 = array();
237 $item8['id'] = $v8->id; 237 // $item8['id'] = $v8->id;
238 $item8['name'] = $v8->name; 238 // $item8['name'] = $v8->name;
239 $item8['pId'] = $v7->id; 239 // $item8['pId'] = $v7->id;
240 $arr[] = $item8; 240 // $arr[] = $item8;
241 } 241 // }
242 } 242 // }
243 } 243 // }
244 244 //
245 } 245 // }
246 } 246 }
247 } 247 }
248 } 248 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!