dede3.1上一篇下一篇分开调用(2)_DedeCms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

dede_arctype.moresite,dede_arctype.siteurl
from dede_archives left join dede_arctype on dede_archives.typeid=dede_arctype.ID
where ";
if($pn == 0){
$preRow = $this->dsql->GetOne($query.$pre);
if(is_array($preRow)){
$mlink = GetFileUrl($preRow['ID'],$preRow['typeid'],$preRow['senddate'],$preRow['title'],$preRow['ismake'],$preRow['arcrank'],$preRow['namerule'],$preRow['typedir'],$preRow['money'],true,$preRow['siteurl']);
$prs .= "上一篇:<a href='$mlink'>{$preRow['title']}</a> ";
}
else{
$prs .= "上一篇:没有了 ";
}
return $prs;
}
else{
$nextRow = $this->dsql->GetOne($query.$next);
if(is_array($nextRow)){
$mlink = GetFileUrl($nextRow['ID'],$nextRow['typeid'],$nextRow['senddate'],$nextRow['title'],$nextRow['ismake'],$nextRow['arcrank'],$nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],true,$nextRow['siteurl']);
$nrs .= "下一篇:<a href='$mlink'>{$nextRow['title']}</a> ";
}
else{
$nrs .= "下一篇:没有了 ";
}
return $nrs;
}
}
--------------------------------------------
找到:
//上下篇链接
else if($tagname=="prenext"){
$this->dtp->Assign($tagid,$this->GetPreNext());
}
改为:
//上下篇链接
else if($tagname=="preurl"){
$this->dtp->Assign($tagid,$this->GetPreNext(0));
}
else if($tagname=="nexturl"){
$this->dtp->Assign($tagid,$this->GetPreNext());
}

查看更多 DedeCms教程  织梦模板  织梦DedeCms视频教程  织梦dedecms专题

共2页上一页12下一页
来源:模板无忧//所属分类:DedeCms教程/更新时间:2007-04-24
相关DedeCms教程