From 2f7009c7582f7b81440dd8959611fdbb5ea49d35 Mon Sep 17 00:00:00 2001 From: tianya <8445295+llgoer@user.noreply.gitee.com> Date: Sat, 30 Apr 2022 12:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=88=86=E9=A1=B5=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=8F=82=E6=95=B0=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/system/archive/searchview.class.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/system/archive/searchview.class.php b/src/system/archive/searchview.class.php index bc70b85a..5641e679 100755 --- a/src/system/archive/searchview.class.php +++ b/src/system/archive/searchview.class.php @@ -433,10 +433,11 @@ class SearchView ); } else if ($tagname == "pagelist") { $list_len = trim($ctag->GetAtt("listsize")); + $ctag->GetAtt("listitem") == "" ? $listitem = "index,pre,pageno,next,end,option" : $listitem = $ctag->GetAtt("listitem"); if ($list_len == "") { $list_len = 3; } - $this->dtp->Assign($tagid, $this->GetPageListDM($list_len)); + $this->dtp->Assign($tagid, $this->GetPageListDM($list_len, $listitem)); } else if ($tagname == "likewords") { $this->dtp->Assign($tagid, $this->GetLikeWords($ctag->GetAtt('num'))); } else if ($tagname == "hotwords") { @@ -641,7 +642,7 @@ class SearchView * @param string $list_len 列表宽度 * @return string */ - function GetPageListDM($list_len) + function GetPageListDM($list_len, $listitem = "index,end,pre,next,pageno") { global $oldkeyword; $prepage = ""; @@ -715,12 +716,12 @@ class SearchView $plist = ""; $plist .= "
$hidenform"; $plist .= "
\r\n"; return $plist; }