|
@@ -1,5 +1,5 @@ |
|
|
<nav class="d-flex justify-content-center" aria-label="..."> |
|
|
<nav class="d-flex justify-content-center" aria-label="..."> |
|
|
<ul class="pagination"> |
|
|
|
|
|
|
|
|
<ul class="pagination opacity-0"> |
|
|
<?php if ($page > 1): ?> |
|
|
<?php if ($page > 1): ?> |
|
|
<li class="page-item"> |
|
|
<li class="page-item"> |
|
|
<a class="page-link no-wrap" href="javascript: void (0)" onclick="Script.jumpTo (1)">|<</a> |
|
|
<a class="page-link no-wrap" href="javascript: void (0)" onclick="Script.jumpTo (1)">|<</a> |
|
@@ -10,8 +10,8 @@ |
|
|
</li> |
|
|
</li> |
|
|
<?php endif ?> |
|
|
<?php endif ?> |
|
|
|
|
|
|
|
|
<?php for ($i = max (min ($page + 10, $pages_max) - 20, 1), $j = 9; $i < $page; ++$i, --$j): ?> |
|
|
|
|
|
<li class="page-item page-<?= $j ?>"> |
|
|
|
|
|
|
|
|
<?php for ($i = max (min ($page + 10, $pages_max) - 20, 1); $i < $page; ++$i): ?> |
|
|
|
|
|
<li class="page-item page-<?= $page - $i ?>"> |
|
|
<a class="page-link" href="javascript: void (0)" onclick="Script.jumpTo (<?= $i ?>)"><?= $i ?></a> |
|
|
<a class="page-link" href="javascript: void (0)" onclick="Script.jumpTo (<?= $i ?>)"><?= $i ?></a> |
|
|
</li> |
|
|
</li> |
|
|
<?php endfor ?> |
|
|
<?php endfor ?> |
|
@@ -20,8 +20,8 @@ |
|
|
<span class="page-link"><?= $page ?></span> |
|
|
<span class="page-link"><?= $page ?></span> |
|
|
</li> |
|
|
</li> |
|
|
|
|
|
|
|
|
<?php for ($i = $page + 1, $j = 0; $i <= min (max ($page - 10, 1) + 20, $pages_max); ++$i, ++$j): ?> |
|
|
|
|
|
<li class="page-item page-<?= $j ?>"> |
|
|
|
|
|
|
|
|
<?php for ($i = $page + 1; $i <= min (max ($page - 10, 1) + 20, $pages_max); ++$i): ?> |
|
|
|
|
|
<li class="page-item page-<?= $i - $page ?>"> |
|
|
<a class="page-link" href="javascript: void (0)" onclick="Script.jumpTo (<?= $i ?>)"><?= $i ?></a> |
|
|
<a class="page-link" href="javascript: void (0)" onclick="Script.jumpTo (<?= $i ?>)"><?= $i ?></a> |
|
|
</li> |
|
|
</li> |
|
|
<?php endfor ?> |
|
|
<?php endfor ?> |
|
|