upload auto fill offer

This commit is contained in:
xiaomlove
2022-05-25 02:15:41 +08:00
parent 4ccfa9fc3a
commit 69f02de4eb
8 changed files with 46 additions and 10 deletions
+4 -5
View File
@@ -6,11 +6,10 @@ $q = $_REQUEST['q'] ?? '';
if (!empty($q)) {
$query->where('username', 'like', "%{$q}%");
}
$total = $query->toBase()->getCountForPagination();
$page = $_REQUEST['page'] ?? 1;
$perPage = 20;
$rows = $query->forPage($page, $perPage)->orderBy('id', 'desc')->get()->toArray();
list($paginationTop, $paginationBottom, $limit) = pager($perPage, $total, "?");
$total = (clone $query)->count();
$perPage = 50;
list($paginationTop, $paginationBottom, $limit, $offset) = pager($perPage, $total, "?");
$rows = (clone $query)->offset($offset)->take($perPage)->orderBy('id', 'desc')->get()->toArray();
$header = [
'id' => 'ID',
'uid' => 'UID',