示例#1
0
文件: ads.class.php 项目: abdouh/pets
 static function pagination($total)
 {
     $pages = array();
     if (isset($_GET['p']) && is_numeric($_GET['p'])) {
         $page = intval($_GET['p']);
     } else {
         $page = 1;
     }
     if ($page > $total) {
         $page = 1;
     }
     return Temp::pagination_list($page, $_GET, $total);
 }