summaryrefslogtreecommitdiff
path: root/paginate.php
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-03-17 23:49:04 +0800
committerchai <chaifix@163.com>2022-03-17 23:49:04 +0800
commitcecb6f1a2e6e7f43601ec4aeac481817f9979422 (patch)
tree02a2fa2452f0f692aa26117a30f1d5b8028cb922 /paginate.php
parent90483f6eb389f041e0dbd0fca8bb766edbc85910 (diff)
* paginate
Diffstat (limited to 'paginate.php')
-rw-r--r--paginate.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/paginate.php b/paginate.php
new file mode 100644
index 0000000..c6ce295
--- /dev/null
+++ b/paginate.php
@@ -0,0 +1,23 @@
+<div id="paginate">
+
+<?php
+// external variables:
+// echo $current_page_index ;
+// echo $total_page ;
+// echo $url;
+
+
+ for ($p=0; $p<$total_page; $p++) {
+ if($p == $current_page_index){
+ html_paginate_link_current($url, $p);
+ }
+ else {
+ html_paginate_link($url, $p);
+ }
+ }
+
+?>
+
+</div>
+
+<div style="clear:both;"></div>