;
}
else if($tagname=="children")
{
$children=$ctag->GetInnerText();
}
}
}
$dtp2 = new DedeTagParse();
$dtp2->SetNameSpace("field","[","]");
$dtp2->LoadSource($root);
$dsqli=new DeDeSql(fasle);
$dsqli->SetQuery($sql);
$dsqli->Execute();
$line = $row;
for($i=0;$i<$line;$i++)
{
if($row=$dsqli->GetArray())
{
if($typetype=="self" && $row[''ID'']=="$typeid"){
if($myinnertext!=''''){
$linkOkstr = $myinnertext;
$row[''typelink''] = $this->GetOneTypeUrl($row);
$linkOkstr = str_replace("~typelink~",$row[''typelink''],$linkOkstr);
$linkOkstr = str_replace("~typename~",$row[''typename''],$linkOkstr);
$likeType .= $linkOkstr;
}
}else{
//
$row[''child'']=$this->GetChannelList($row[''ID''],0,18,$typetype=''sun'',$children,0,100,'''','''');
//
$row[''typelink''] = $this->GetOneTypeUrl($row);
if(is_array($dtp2->CTags)){
foreach($dtp2->CTags as $tagid=>$ctag)
{ if(isset($row[$ctag->GetName()])) $dtp2->Assign($tagid,$row[$ctag->GetName()]); }
}
$likeType .= $dtp2->GetResult();
}
}
$GLOBALS[''autoindex'']++;
}
$this->dsql->FreeResult();
return $likeType;
}//GetChannel
在inc_archives_view.php,inc_arclist_view.php,inc_arcpart_view.php增加标签的解析
else if($tagname=="channeli"){
//获得栏目连接列表
if(trim($ctag->GetAtt(''typeid''))=="" && $this->TypeID!=0){
$typeid = $this->TypeID;
$reid = $this->TypeLink->TypeInfos[''reID''];
}
else{
$typeid = $ctag->GetAtt("typeid"); $reid=0;
}
$this->dtp->Assign($tagid,
$this->TypeLink->GetChanneli($typeid,$reid,$ctag->GetAtt("row"),
$ctag->GetAtt("type"),$ctag->GetInnerText(),"")
);
}
先后就交给系统来实现效果了