From 0a9ede436d888303a0e3ab0179455eb4ffdd3042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Tue, 3 Jan 2023 16:06:53 +0800 Subject: [PATCH] Update listview.class.php --- src/system/archive/listview.class.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/system/archive/listview.class.php b/src/system/archive/listview.class.php index 58d7577e..41256ff7 100755 --- a/src/system/archive/listview.class.php +++ b/src/system/archive/listview.class.php @@ -43,7 +43,7 @@ class ListView */ function __construct($typeid, $uppage = 1) { - global $dsql,$envs; + global $dsql, $envs; $envs['url_type'] = 1; $this->TypeID = $typeid; $this->dsql = &$dsql; @@ -121,7 +121,7 @@ class ListView */ function CountRecord() { - global $cfg_list_son,$cfg_need_typeid2,$cfg_cross_sectypeid; + global $cfg_list_son, $cfg_need_typeid2, $cfg_cross_sectypeid; if (empty($cfg_need_typeid2)) $cfg_need_typeid2 = 'N'; $filtersql = ''; //获得附加表的相关信息,联动单筛选 @@ -786,7 +786,7 @@ class ListView */ function GetPageListST($list_len, $listitem = "index,end,pre,next,pageno") { - global $cfg_rewrite; + global $cfg_cmspath; $prepage = $nextpage = ''; $prepagenum = $this->PageNo - 1; $nextpagenum = $this->PageNo + 1; @@ -803,6 +803,7 @@ class ListView $purl = $this->GetCurUrl(); $maininfo = "
  • {$totalpage}页".$this->TotalResult."条
  • \r\n"; $tnamerule = $this->GetMakeFileRule($this->Fields['id'], "list", $this->Fields['typedir'], $this->Fields['defaultname'], $this->Fields['namerule2']); + $tnamerule = preg_replace("/^(.*)\//", '', $tnamerule); //获得上一页和首页的链接 if ($this->PageNo != 1) { $prepage .= "
  • 上一页
  • \r\n"; @@ -874,7 +875,7 @@ class ListView */ function GetPageListDM($list_len, $listitem = "index,end,pre,next,pageno") { - global $cfg_rewrite; + global $cfg_cmspath, $cfg_rewrite; $prepage = $nextpage = ''; $prepagenum = $this->PageNo - 1; $nextpagenum = $this->PageNo + 1;