implementovane zobrazenie archivu,

TODO: dorobit load dalsich stran,
zmena FullScreenLoader namiesto zatmavenia na rozmazanie,
pridana podmienka na editable pre zobrazenie BUG, pouzitelne ked sa otvara archivovany bug
This commit is contained in:
2025-05-17 21:21:42 +02:00
parent 506e847b5d
commit e6f3ef4ab2
7 changed files with 157 additions and 20 deletions

13
api.php
View File

@ -32,7 +32,10 @@ switch ($action) {
$result = reportGetAll($_REQUEST['status']);
break;
case 'getAllGrouped':
$result = reportGetAllGrouped($_REQUEST['status']);
$result = reportGetAllGrouped(json_decode($_REQUEST['status'], true), $_REQUEST['page'] == 'null' ? null : $_REQUEST['page']);
break;
case 'getArchived':
$result = reportGetArchived($_REQUEST['page'] == 'null' ? null : $_REQUEST['page']);
break;
case 'updateOrdNum':
$suc = reportUpdateOrdnum($_REQUEST['ordnums']);
@ -137,6 +140,14 @@ function help()
'description' => 'Get all reports grouped by group',
'params' => [
'status' => '(ptional) Report status, default: 0,1,2,3',
'page' => '(ptional) Page number, default: null = vsetky',
]
],
'getArchived' => [
'name' => 'getArchived',
'description' => 'Get archived reports',
'params' => [
'page' => '(ptional) Page number, default: null = vsetky',
]
],
'updateOrdNum' => [