您好,欢迎访问一九零五行业门户网

bootstrap分页函数

bootstrap分页函数
#bug较多 请勿使用#
 $max)
        {
            $stop = $max;
        }
for($i = $start; $i         {
            if($i == $p)
            {
                // 选中当前页
                $page .= ''.$i.'';
            }
            else
            {
                $page .= ''.$i.'';
            }
        }
// 末页
        $page .= '»';
    }
return $page;
}public function index($p = 1)
    {
        $db = m(shop);
$data = $db->page($p, 10)->order(id desc)->select();
        $this->assign(data, $data);
$page = boot_page($db->count(), 10, 5, $p);
        $this->assign(page, $page);
$this->display();
    }
{$page}
ad:真正免费,域名+虚机+企业邮箱=0元
其它类似信息

推荐信息