查找字段:
$attlist = 'typeid|0,row|20,cacheid|';
替换为:
$attlist = 'typeid|0,row|20,cacheid|';
效果图:
在“$dsql->SetQuery”前面添加
$limit = trim(preg_replace('#limit#is', '', $limit));
if($limit!='') $limitsql = " LIMIT $limit ";
else $limitsql = " LIMIT 0,$totalnum";
效果图:
查找字段:
$dsql->SetQuery("SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
FROM `#@__arctype` WHERE $tpsql ORDER BY sortrank ASC LIMIT $totalnum");
替换为:
$dsql->SetQuery("SELECT id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath
FROM `#@__arctype` WHERE $tpsql ORDER BY sortrank ASC $limitsql");
效果图:
标签:效果图,dsql,LIMIT,织梦,SetQuery,channelartlist,limitsql,limit From: https://blog.51cto.com/u_16171388/6557098