亚洲国产精品人久久,亚洲va国产日韩欧美精品色婷婷,久久久久88色偷偷,免费人成黄页在线观看国际

17站長網(wǎng)

17站長網(wǎng) 首頁 CMS dedecms 查看內(nèi)容

織夢調(diào)用搜索結(jié)果總數(shù)的方法

2023-8-1 13:41| 查看: 6372 |來源: 互聯(lián)網(wǎng)

實(shí)現(xiàn)教程: 打開 /include/arc.searchview.class.php文件 第一步:在else if($tagname=="pagelist"){$list_len = trim($ctag-GetAtt("listsize"));if($l ...

實(shí)現(xiàn)教程:

打開 /include/arc.searchview.class.php文件

第一步:在

else if($tagname=="pagelist")

{

$list_len = trim($ctag->GetAtt("listsize"));

if($list_len=="")

{

$list_len = 3;

}

$this->dtp->Assign($tagid,$this->GetPageListDM($list_len));

}

下面添加:

else if($tagname=="itemcount")

{

$list_len = trim($ctag->GetAtt("listsize"));

if($list_len=="")

{

$list_len = 3;

}

$this->dtp->Assign($tagid,$this->GetItemsCountDM($list_len));

}

第二步:在

/**

* 獲得當(dāng)前的頁面文件的url

*

* @access public

* @return string

*/

前面添加下面代碼:

//————

//搜索輸出總量

//————

function GetItemsCountDM($list_len)

{

global $oldkeyword;

$pagenow = ($this->PageNo-1) * 10 + 1;

$pagenows = $this->PageNo*10; //當(dāng)結(jié)果超過限制時(shí),重設(shè)結(jié)果頁數(shù)

if($this->TotalResult > $this->SearchMaxRc)

{

$totalpage = ceil($this->SearchMaxRc/$this->PageSize);

}

$plist .= $this->TotalResult;

return $plist;

}

第三步:在要顯示的地方加入

{dede:itemcount listsize=’4′/}

這樣就可以了,有此需要的朋友可以修改看看。

本文最后更新于 2023-8-1 13:41,某些文章具有時(shí)效性,若有錯(cuò)誤或已失效,請?jiān)诰W(wǎng)站留言或聯(lián)系站長:17tui@17tui.com
·END·
站長網(wǎng)微信號:w17tui,關(guān)注站長、創(chuàng)業(yè)、關(guān)注互聯(lián)網(wǎng)人 - 互聯(lián)網(wǎng)創(chuàng)業(yè)者營銷服務(wù)中心

免責(zé)聲明:本站部分文章和圖片均來自用戶投稿和網(wǎng)絡(luò)收集,旨在傳播知識(shí),文章和圖片版權(quán)歸原作者及原出處所有,僅供學(xué)習(xí)與參考,請勿用于商業(yè)用途,如果損害了您的權(quán)利,請聯(lián)系我們及時(shí)修正或刪除。謝謝!

17站長網(wǎng)微信二維碼

始終以前瞻性的眼光聚焦站長、創(chuàng)業(yè)、互聯(lián)網(wǎng)等領(lǐng)域,為您提供最新最全的互聯(lián)網(wǎng)資訊,幫助站長轉(zhuǎn)型升級,為互聯(lián)網(wǎng)創(chuàng)業(yè)者提供更加優(yōu)質(zhì)的創(chuàng)業(yè)信息和品牌營銷服務(wù),與站長一起進(jìn)步!讓互聯(lián)網(wǎng)創(chuàng)業(yè)者不再孤獨(dú)!

掃一掃,關(guān)注站長網(wǎng)微信

大家都在看

    熱門排行

      最近更新

        返回頂部