diff options
Diffstat (limited to 'paginate.php')
-rw-r--r-- | paginate.php | 23 |
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> |