'; $html.=''; $filter = ($path) ? array('cat_grade' =>$params['depth'],'p_stc_id'=>$path) : array('cat_grade' =>$params['depth']); $mdlTbo2oStoreCat = app::get('tbo2o')->model('store_cat'); $rows = $mdlTbo2oStoreCat->getList('*', $filter, 0, -1, 'stc_id ASC'); if (!empty($rows)){ foreach ($rows as $item){ //目前组织结构最大五层层级 if ($item['cat_grade']<=4){ $selected = $selected_id == $item['cat_id']?'selected="selected"':''; if (intval($item['haschild']) > 0){ $html.= ''; }else{ $html.= ''; } }else{ $no = true; } } } $html.=''; if($no){ $html = ""; } return $html; } }