Märkte-Tabelle vollständig sortierbar machen
This commit is contained in:
1 parent
12a376c8fa
commit
46e31c5cbd
3 files changed
+34
-5
No files matched your search
+6
-2
@@ -79,16 +79,20 @@ if ($currentUser !== null) {
|
||||
'page_size' => 20,
|
||||
];
|
||||
$marketOccurrencesTable['has_more'] = count($marketOccurrencesTable['rows']) >= $marketLimit;
|
||||
$marketDefinitionSort = (string) ($_GET['market_definition_sort'] ?? 'name');
|
||||
$marketDefinitionDirection = strtoupper((string) ($_GET['market_definition_dir'] ?? 'ASC'));
|
||||
$marketDefinitionsTable = [
|
||||
'rows' => market_management_search_markets($pdo, [
|
||||
'include_archived' => false,
|
||||
'sort' => 'name',
|
||||
'sort_direction' => 'ASC',
|
||||
'sort' => $marketDefinitionSort,
|
||||
'sort_direction' => $marketDefinitionDirection,
|
||||
'limit' => 100,
|
||||
'offset' => 0,
|
||||
]),
|
||||
'categories' => market_management_list_categories($pdo),
|
||||
'organizers' => market_management_list_organizers($pdo),
|
||||
'sort_column' => $marketDefinitionSort,
|
||||
'sort_direction' => $marketDefinitionDirection,
|
||||
];
|
||||
if ((string) ($_GET['bestellungen_fragment'] ?? '') === '1') {
|
||||
echo auth_render_bestellungen_content($bestellungenTable);
|
||||
|
||||
Reference in new issue
Block a user