class ajaxpage{ var $result; var $anchors; var $total; var $db; var $网页特效p/jsp.html target=_blank >jsp教程agination; function __construct($qry,$starting,$recpage,$jspagination) { $this->db = &$globals['db']; $this->jspagination = $jspagination; $rst = $this->db->query($qry); $numrows = $this->db->num_rows; $qry .= " limit $starting, $recpage";
################if you dont want the numbers just comment this block###############
$norepeat = 3;//no of pages showing in the left and right side of the current page in the anchors $j = 1; $anch = ""; for($i=$page_showing; $i>1; $i--){ $fpreviouspage = $i-1; $page = ceil($fpreviouspage*$recpage)-$recpage; $anch = "