//获得某类目的链接列表,递归逻辑部分 function LogicGetPosition($id,$islink) { if($id == 1) return false; $this->dsql->SetQuery("SELECT id,reid,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath FROM idea_arctype WHERE id='".$id."'"); $tinfos = $this->dsql->GetOne(); if($islink) { $this->valuePosition = $this->GetOneTypeLink($tinfos).$this->SplitSymbol.$this->valuePosition; } else { $this->valuePositionName = $tinfos['typename'].$this->SplitSymbol.$this->valuePositionName; } if($tinfos['reid']>0) { $this->LogicGetPosition($tinfos['reid'],$islink); } else { return 0; } } |
新闻热点
疑难解答