        $data = Request::instance()->param();
        $id = $data['sid'];
        $towtype = db('portal_category')->where('parent_id = '.$id)->field('id,name')->select();
        $towtype = $towtype->all();
        $html = '';
        foreach ($towtype as $k=>$v){
            $html.= '<li tag = "'.$v["id"].'" onclick="selectChild($(this));">'.$v["name"].'</li>';
        }