$total) $indice_fin=$total; $nbpage=ceil($total/$pas); if($nbpage) { $pagination='
'; $pagination.='

'.$indice_debut.'-'.$indice_fin.' sur '.$total.'

'; if($indice==1) $pagination.=''.$tpl_intitule_prec.''; else $pagination.=''.$tpl_intitule_prec.''; $nb_max_page=8; if($indice>5) { if($nbpage-$indice>=5) $limite1=$indice-4; else $limite1=$nbpage-$nb_max_page; } if($limite1<1) $limite1=1; $limite2=$limite1+$nb_max_page; if($limite2>=$nbpage) $limite2=$nbpage; for ($page=$limite1; $page<=$limite2; $page++) { if($page==$indice) $pagination.=''.$page.''; else $pagination.=''.$page.''; } if($indice<$nbpage) $pagination.=''.$tpl_intitule_suiv.''; else $pagination.=''.$tpl_intitule_suiv.''; $pagination.='
'; echo $pagination; } $debu=($pas*$indice)-$pas; $requete.="order by sdate desc, ordre_news limit ".$debu.",".$pas; //echo '
'; include("../common/articles_news.php"); } ?>