**文件:page.class.php**
#### * 基本語法:
1、控制器語法
~~~
$pg=new page("select * from content order by id desc"); //獲取頁面所需數據
$article_list=$pg->get_list(20);//設定每頁展示多少條數據
$pagelink=$pg->get_page("/".$url."/list_{page}.html");//設置頁碼鏈接
~~~
2、模板語法
~~~
<div class="page_link">{$pagelink}</div>
~~~