db = sdb::getInstance(); $this->lang = $lang; } public function getCatalogUL($url,$id = 0,$level = -1,&$menu = ''){ // global $menu; $sql = "select * from catalogs_rubrics where parent_id=? and is_pic=0 and is_view=0"; if(self::$brend_id>0)$sql .= sprintf(" and brend_id='%d'",self::$brend_id); $sql .= " order by sort asc"; $q=$this->db->query($sql,array($id)); if(!$q->numRows()) return; $level++; if($level == 0)$menu.= "