$start=1;
$end=$total_pages;
if($total_pages>$showpage){
if($page-$pageoffset>0 && $page+$pageoffset<$total_pages){
$start=$page-$pageoffset;
$end=$page+$pageoffset;
}
if($page-$pageoffset<=0){
$end=$start+2*$pageoffset;
}
if($page+$pageoffset>=$total_pages){
$start=$end-2*$pageoffset;
}
}
超字数,高手看,谢
$end=$total_pages;
if($total_pages>$showpage){
if($page-$pageoffset>0 && $page+$pageoffset<$total_pages){
$start=$page-$pageoffset;
$end=$page+$pageoffset;
}
if($page-$pageoffset<=0){
$end=$start+2*$pageoffset;
}
if($page+$pageoffset>=$total_pages){
$start=$end-2*$pageoffset;
}
}
超字数,高手看,谢