ニジカもんすたぁ!! トップ・ページ https://nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pagination.cmp.php 2.5 KiB

8 months ago
11 months ago
8 months ago
11 months ago
11 months ago
11 months ago
8 months ago
11 months ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!-- vim:set tabstop=4 softtabstop=4 expandtab :-->
  2. <nav class="d-flex justify-content-center" aria-label="...">
  3. <ul class="pagination opacity-0">
  4. <?php if ($page > 1): ?>
  5. <li class="page-item">
  6. <a class="page-link" href="javascript: void (0)" onclick="Script.jumpTo (1)">
  7. <img src="./assets/page-first.png" />
  8. <div class="page-link-text">|&lt;</div>
  9. </a>
  10. </li>
  11. <?php else: ?>
  12. <li class="page-item disabled">
  13. <span class="page-link">
  14. <img src="./assets/page-first.png" />
  15. <div class="page-link-text"></div>
  16. </span>
  17. </li>
  18. <?php endif ?>
  19. <?php for ($i = max (min ($page + 10, $pages_max) - 20, 1); $i < $page; ++$i): ?>
  20. <li class="page-item page-<?= $page - $i ?>">
  21. <a class="page-link" href="javascript: void (0)" onclick="Script.jumpTo (<?= $i ?>)">
  22. <img src="./assets/page-body.png" />
  23. <div class="page-link-text"><?= $i ?></div>
  24. </a>
  25. </li>
  26. <?php endfor ?>
  27. <li class="page-item active" aria-current="page">
  28. <span class="page-link">
  29. <img src="./assets/page-body.png" />
  30. <div class="page-link-text"><?= $page ?></div>
  31. </span>
  32. </li>
  33. <?php for ($i = $page + 1; $i <= min (max ($page - 10, 1) + 20, $pages_max); ++$i): ?>
  34. <li class="page-item page-<?= $i - $page ?>">
  35. <a class="page-link" href="javascript: void (0)" onclick="Script.jumpTo (<?= $i ?>)">
  36. <img src="./assets/page-body.png" />
  37. <div class="page-link-text"><?= $i ?></div>
  38. </a>
  39. </li>
  40. <?php endfor ?>
  41. <?php if ($page < $pages_max): ?>
  42. <li class="page-item">
  43. <a class="page-link" href="javascript: void (0)" onclick="Script.jumpTo (<?= $pages_max ?>)">
  44. <img src="./assets/page-last.png" />
  45. <div class="page-link-text">&gt;|</div>
  46. </a>
  47. </li>
  48. <?php else: ?>
  49. <li class="page-item disabled">
  50. <span class="page-link">
  51. <img src="./assets/page-last.png" />
  52. <div class="page-link-text"></div>
  53. </span>
  54. </li>
  55. <?php endif ?>
  56. </ul>
  57. </nav>