diff options
author | chai <chaifix@163.com> | 2022-03-17 23:49:04 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-17 23:49:04 +0800 |
commit | cecb6f1a2e6e7f43601ec4aeac481817f9979422 (patch) | |
tree | 02a2fa2452f0f692aa26117a30f1d5b8028cb922 /template.php | |
parent | 90483f6eb389f041e0dbd0fca8bb766edbc85910 (diff) |
* paginate
Diffstat (limited to 'template.php')
-rw-r--r-- | template.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/template.php b/template.php index 04965b6..49d96ee 100644 --- a/template.php +++ b/template.php @@ -55,4 +55,13 @@ function html_music_player($music) { } +function html_paginate_link($url, $pagei) { + echo '<a href="' . $url . '&page=' . $pagei . '">' . ($pagei + 1) . '</a>'; +} + +function html_paginate_link_current($url, $pagei) { + echo '<a class="current" href="' . $url . '&page=' . $pagei . '">' . ($pagei + 1) . '</a>'; +} + + ?>
\ No newline at end of file |