diff --git a/admin/index.php b/admin/index.php index 988fd699..32de2fd3 100644 --- a/admin/index.php +++ b/admin/index.php @@ -2,8 +2,8 @@ /** * @Author: prpr * @Date: 2016-02-03 14:39:50 - * @Last Modified by: prpr - * @Last Modified time: 2016-02-10 15:05:08 + * @Last Modified by: printempw + * @Last Modified time: 2016-03-06 14:07:38 */ require "../includes/session.inc.php"; if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是管理员'); @@ -55,8 +55,10 @@ if (!$user->is_admin) header('Location: ../index.php?msg=看起来你并不是
query("SELECT * FROM users"); + $result = $db->query("SELECT * FROM users ORDER BY `uid` LIMIT ".(string)(($page_now-1)*30).", 30"); + $page_total = $db->getRecordNum()/30; while ($row = $result->fetch_array()) { ?>