织梦模板手机网站内容页上一篇下一篇调用实现翻页功能

织梦模板手机网站内容页上一篇下一篇调用实现翻页功能,第1张

概述1、搜索 function GetPreNext($gtype=) 2、将这个函数的所有内容替换为 查看源码打印代码帮助 function GetPreNext($gtype=) { $rs = ; if(count($this-PreNext)2) { $aid = $this-ArcID; $preR = $this-dsql-GetOne(Select id From `dede_arctiny` where id 1、搜索
function GetPreNext($gtype='')
 
2、将这个函数的所有内容替换为
查看源码打印代码帮助
function GetPreNext($gtype='')    {        $rs = '';        if(count($this->PreNext)<2)        {            $aID = $this->ArcID;            $preR =  $this->dsql->Getone("Select ID From `dede_arctiny` where ID<$aID And arcrank>-1 And typeID='{$this->FIElds['typeID']}' order by ID desc");            $nextR = $this->dsql->Getone("Select ID From `dede_arctiny` where ID>$aID And arcrank>-1 And typeID='{$this->FIElds['typeID']}' order by ID asc");            $next = (is_array($nextR) ? " where arc.ID={$nextR['ID']} " : ' where 1>2 ');            $pre = (is_array($preR) ? " where arc.ID={$preR['ID']} " : ' where 1>2 ');            $query = "Select arc.ID,arc.Title,arc.shortTitle,arc.typeID,arc.ismake,arc.senddate,arc.arcrank,arc.money,arc.filename,arc.litpic,t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath                        from `dede_archives` arc left join dede_arctype t on arc.typeID=t.ID  ";            $nextRow = $this->dsql->Getone($query.$next);            $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'],$preRow['filename'],$preRow['moresite'],$preRow['siteurl'],$preRow['sitepath']);                $mobile_mlink = "/m/vIEw.PHP?aID=".$preRow['ID'];                $this->PreNext['pre'] = "上一篇:href='$mlink'>{$preRow['Title']}手机网站内容详情页模板内,将调用上一篇、下一篇标签插入。
    
		
总结

以上是内存溢出为你收集整理的织梦模板手机网站内容页上一篇下一篇调用实现翻页功能全部内容,希望文章能够帮你解决织梦模板手机网站内容页上一篇下一篇调用实现翻页功能所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/zz/1046260.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)