summaryrefslogtreecommitdiff
path: root/paginate.php
blob: e276f5378593ce0d587f9e2dbfe707eedae9394b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div id="paginate">

<?php 
// external variables: 
// echo $current_page_index ;
// echo $total_page ;
// echo $url;

    if($total_page > 1){
        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>