DEDEcms手机上网站加上详细信息内容页上一页/下一
时间: 2021-02-22 17:06
浏览次数:
改动文档include/arc.archives.class.php文档。 1、检索 function GetPreNext($gtype=) 2、将这一涵数的全部內容更换为 function GetPreNext($gtype=) { $rs = ; if(count($this-PreNext)2) { $aid = $this-ArcID; $preR = $this-dsq
改动文档include/arc.archives.class.php文档。 1、检索 function GetPreNext($gtype=) 2、将这一涵数的全部內容更换为 function GetPreNext($gtype=) { $rs = ; if(count($this-PreNext)2) { $aid = $this-ArcID; $preR = $this-dsql-GetOne(Select id From...
改动文档include/arc.archives.class.php文档。
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 = /?aid= .$preRow[ id
$this- PreNext[ pre ] =