手拿鏡
艾杜紗
桌鏡
// $totalpg=99;
if(empty($pg) or $pg==1){$pg=1;$ppg=1;$pgs=1;}else{$ppg=$pg-1;}
if(empty($actionpage)){
$actionpage = explode('/',$_SERVER['PHP_SELF']);
$last_num = count($actionpage) - 1;
$actionpage = $actionpage[$last_num]."?";
}
$current_ten=floor(($pg-1)/10)*10+1;
$pten=$current_ten-10;
$nten=$current_ten+10;
$where_txt = $where_state;
?>
if($pg != 1 ){?>
}?>
if(($pg-1) != 0){?>
< PREV
}?>
$x=1;for($i=$current_ten;$totalpg >= $i;$i++){?>
if($i==$pg){?>
9
}else{?>
9
}
if($x++ >= 10){break;} ?>
}?>
if($totalpg > $pg){?>
Next >
}?>
if($pg != $totalpg ){?>
}?>