Since I wrote it while at work, I would be sorry for the company if I posted it all from the department, so I deleted the form jumps. Don't be surprised. . . The format is relatively standard for 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->onepage = $onepage; $this->total_page = ceil($total/$onepage); if (empty($pagecount)) { $this->pagecount = 1; $this->offset = 0; } else { $this->pagecount = $pagecount; $this->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