Because it is written at work, so if all by the department posted out I am afraid of the company, so I put the form to delete it. Oh, don't be offended. The format is the standard PHP code:--------------------------------------------------------------------------------/********** | +--------------------------------------------------- | CLASS Name:pagebar | +--------------------------------------------------- | Author:arvan [e-mail:arvan@5n9.com qq:8817776] | Create DATE:2003-7-17 | Note: | Do for pagination | +--------------------------------------------------- | Warning:no ... | +---------------------------------------------------**********/class Pagebar {var $total; var $onepage; var $num; var $ PageCount; var $total _page; var $offset; var $linkhead; function Pagebar ($total, $onepage, $form _vars=) {$pagecount = $_get[pagecount]; $this->total = $total; $this->ONEP age = $onepage; $this->total_page = ceil ($total/$onepage); if (empty ($pagecount)) {$this->pagecount = 1; $this->offset = 0;} else {$this->pagecount = $pagecount; $this-& Gt;offset = ($pagecount-1) * $onepage; } if (!Empty ($form _vars)) {$vars = explode ("|", $form _vars), $chk = $vars [0]; $chk _value = $_post[$chk]; if (empty ($chk _value)) {$formlink = "";} else {for ($i =0; $i Linkhead = $_server[php_self]. "?". $formlink; } else {$this->linkhead = $_server[php_self]. "?". $linkft. $formlink; }} #End function Pagebar (); function offset () {return $this->offset;} #End function offset (); function Pre_page ($char =) {$linkhead = $this->linkhead; $pagecount = $this->pagecount; if (empty ($char)) {$char = "[<]"; if ($pagecount >1) {$pre _page = $pagecount-1; return "$char";} else {return;}} #End function Pre_page (); function Next_page ($char =) {$linkhead = $this->linkhead; $total _page = $this->total_page; $pagecount = $this->p Agecount; if (empty ($char)) {$char = "[
http://www.bkjia.com/PHPjc/532181.html www.bkjia.com true http://www.bkjia.com/PHPjc/532181.html techarticle because it is written at work, so if all by the department posted out I am afraid of the company, so I put the form to delete it. Oh, don't be offended. The format is more standard ...