From efd815b7712eef1d91f8c21a46cd74246f7397d9 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: Thu, 1 Jun 2023 15:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=88=97=E8=A1=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/system/archive/archives.class.php | 128 +++++++++++++------------- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/src/system/archive/archives.class.php b/src/system/archive/archives.class.php index 7e97e31b..ede24d69 100755 --- a/src/system/archive/archives.class.php +++ b/src/system/archive/archives.class.php @@ -750,14 +750,14 @@ class Archives return $rs; } /** - * 获得动态文档分页标题 + * 获得静态文档分页标题 * * @access public * @param string $styleName 类型名称 * @param string $pageNo 页码数 * @return string */ - function GetPageTitlesDM($styleName, $pageNo) + function GetPageTitlesST($styleName, $pageNo) { if ($this->TotalPage == 1) { return ""; @@ -766,17 +766,16 @@ class Archives return ""; } $i = 1; - $aid = $this->ArcID; if ($styleName == 'link') { $revalue = ""; foreach ($this->SplitTitles as $k => $v) { if ($i == 1) { - $revalue .= "$v\r\n"; + $revalue .= "$v\r\n"; } else { if ($pageNo == $i) { $revalue .= " $v \r\n"; } else { - $revalue .= "$v\r\n"; + $revalue .= "$v\r\n"; } } $i++; @@ -785,12 +784,12 @@ class Archives $revalue = "\r\n"; foreach ($this->SplitTitles as $k => $v) { if ($i == 1) { - $revalue .= "\r\n"; + $revalue .= "\r\n"; } else { if ($pageNo == $i) { - $revalue .= "\r\n"; + $revalue .= "\r\n"; } else { - $revalue .= "\r\n"; + $revalue .= "\r\n"; } } $i++; @@ -916,55 +965,6 @@ class Archives } return $PageList; } - /** - * 获得静态文档分页列表 - * - * @access public - * @param int $totalPage 总页数 - * @param int $nowPage 当前页数 - * @param int $aid 文档id - * @return string - */ - function GetPagebreak($totalPage, $nowPage, $aid) - { - if ($totalPage == 1) { - return ""; - } - $PageList = "
  • ".$totalPage."页
  • "; - $nPage = $nowPage - 1; - $lPage = $nowPage + 1; - if ($nowPage == 1) { - $PageList .= "
  • 上一页
  • "; - } else { - if ($nPage == 1) { - $PageList .= "
  • 上一页
  • "; - } else { - $PageList .= "
  • 上一页
  • "; - } - } - for ($i = 1; $i <= $totalPage; $i++) { - if ($i == 1) { - if ($nowPage != 1) { - $PageList .= "
  • 1
  • "; - } else { - $PageList .= "
  • 1
  • "; - } - } else { - $n = $i; - if ($nowPage != $i) { - $PageList .= "
  • {$n}
  • "; - } else { - $PageList .= "
  • {$n}
  • "; - } - } - } - if ($lPage <= $totalPage) { - $PageList .= "
  • 下一页
  • "; - } else { - $PageList .= "
  • 下一页
  • "; - } - return $PageList; - } /** * 高亮问题修正,排除alt、title、直接的字符替换 *