ニジカもんすたぁ!! トップ・ページ 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.0 KiB

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