|
|
|
@ -189,14 +189,14 @@ eof;
@@ -189,14 +189,14 @@ eof;
|
|
|
|
|
//上一页 |
|
|
|
|
$previousLink = <<<eof |
|
|
|
|
<li class="page-item disabled"> |
|
|
|
|
<span class="page-link">上一页</span> |
|
|
|
|
<span class="page-link">上<span class="hidden-xs">一</span>页</span> |
|
|
|
|
</li> |
|
|
|
|
eof; |
|
|
|
|
if ($page > 1) { |
|
|
|
|
$url = self::getPaginationLink($currentUrl, $page-1, $limit); |
|
|
|
|
$previousLink = <<<eof |
|
|
|
|
<li class="page-item"> |
|
|
|
|
<a class="page-link" href="{$url}">上一页</a> |
|
|
|
|
<a class="page-link" href="{$url}">上<span class="hidden-xs">一</span>页</a> |
|
|
|
|
</li> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
@ -204,14 +204,14 @@ eof;
@@ -204,14 +204,14 @@ eof;
|
|
|
|
|
//下一页 |
|
|
|
|
$nextLink = <<<eof |
|
|
|
|
<li class="page-item disabled"> |
|
|
|
|
<span class="page-link">下一页</span> |
|
|
|
|
<span class="page-link">下<span class="hidden-xs">一</span>页</span> |
|
|
|
|
</li> |
|
|
|
|
eof; |
|
|
|
|
if ($page < $maxPage) { |
|
|
|
|
$url = self::getPaginationLink($currentUrl, $page+1, $limit); |
|
|
|
|
$nextLink = <<<eof |
|
|
|
|
<li class="page-item"> |
|
|
|
|
<a class="page-link" href="{$url}">下一页</a> |
|
|
|
|
<a class="page-link" href="{$url}">下<span class="hidden-xs">一</span>页</a> |
|
|
|
|
</li> |
|
|
|
|
eof; |
|
|
|
|
} |
|
|
|
|