12345678910111213141516171819202122232425 |
- <div class="pagination">
- <span class="userbtn<?= $page == 1 ? " now" : "" ?>">
- <?php if ($page == 1) { ?>
- 最初
- <?php } else { ?>
- <a href="<?= $cur."&page=1" ?>">最初</a>
- <?php } ?>
- </span>
- <?php for ($i = 1; $i <= $sum; $i++) { ?>
- <span class="userbtn<?= $page == $i ? " now" : "" ?>">
- <?php if ($page == $i) { ?>
- <?= $i ?>
- <?php } else { ?>
- <a href="<?= $cur."&page=".$i ?>"><?= $i ?></a>
- <?php } ?>
- </span>
- <?php } ?>
- <span class="userbtn<?= $page == $sum ? " now" : "" ?>">
- <?php if ($page == $sum) { ?>
- 最後
- <?php } else { ?>
- <a href="<?= $cur."&page=".$sum ?>">最後</a>
- <?php } ?>
- </span>
- </div>
|