= 0) { $whereConditions[] = "status = $status"; } if ($role >= 0) { $whereConditions[] = "irole = $role"; } if ($keyword) { $whereConditions[] = "username LIKE '%$keyword%'"; } $whereStr = !empty($whereConditions) ? implode(' AND ', $whereConditions) : ''; // 获取总记录数 $total = $db->count('users', $whereStr); // 计算分页信息 $pagination = getPagination($total, $page, $pageSize); // 获取用户列表 $orderBy = "id ASC"; $limit = "{$pagination['offset']}, {$pagination['pageSize']}"; $userList = $db->getAll('users', $whereStr, '*', $orderBy, $limit); // 页面标题 $pageTitle = "用户管理"; ?> <?php echo $pageTitle; ?> - <?php echo getSiteTitle(); ?>

用户管理

重置
ID 用户名 角色 状态 注册时间 最后登录 操作
管理员 普通用户 正常 禁用
暂无用户数据