$orderlist = Db::name("pay_order")->where($sql)->order("id", "desc") ->paginate(10);
$pagestr= $orderlist->render();
$this->assign('pagestr', $pagestr);
<style type="text/css">
.pagination li{list-style:none;float:left;margin-left:10px;
padding:0 10px;
background-color:#82aee0;
height:26px;
line-height:26px;
cursor:pointer;color:#fff;
margin-top: 5px;
}
.pagination li a{color:white;padding: 0;line-height: inherit;border: none;}
.pagination li a:hover{background-color: #82aee0;}
.pagination li.active{background-color:white;color:gray;}
.pagination li.disabled{background-color:white;color:gray;}
</style>
{$pagestr}