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; }