/web/htdocs/www.euroroma.net/home/admin/paginazionealtre.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?
                
//PAGINE
                
if($current_page == 1) { // se siamo nella prima pagina
                    
$precedente "<< ";
                    }
                    else {
                        
$previous_page = ($current_page 1);
                        
$precedente "<a href=\"?page=$previous_page&stato=".$stato ."&ID=".$ID ."&cat=".$_GET['cat']."&ID_speciale=".$_GET['ID_speciale']."&rubrica=".$_SESSION['cat']."\" title=\"Vai alla pagina precedente\" class=\"pagine\"><< </a>";
                    }

                if(
$current_page == $tot_pages) { // se siamo nell'ultima pagina
                    
$successiva " >>";
                } 
                else {
                    
$next_page = ($current_page 1);
                    
$successiva "<a href=\"?page=$next_page&stato=".$stato ."&ID=".$ID ."&cat=".$_GET['cat']."&ID_speciale=".$_GET['ID_speciale']."&rubrica=".$_SESSION['cat']."\" title=\"Vai alla pagina successiva\" class='pagine'> >></a>";
                }

                if(
$current_page == && $tot_pages == 1)
                {
                    
$paginazione "";
                }else{
                    if(
$tot_records<$per_page){
                        
$paginazione "$current_page/$tot_pages";
                    }else if(
$current_page==1)
                        {
                        if(
$current_page == $tot_pages)
                        {
                            if(
$current_page == 1)
                            
$paginazione "$current_page/$tot_pages";
                        }else
                            { 
                            
$paginazione "$current_page/$tot_pages - $successiva"
                            }
                    }else if(
                        
$current_page==$tot_pages)
                        {
                            
$paginazione "$precedente - $current_page/$tot_pages";
                    }else{
                        
$paginazione "$precedente -  $current_page/$tot_pages - $successiva";
                    }
                }
                
?>