diff --git a/.~lock.Assessment Brief Form 2024-25.docx# b/.~lock.Assessment Brief Form 2024-25.docx# deleted file mode 100644 index 8d50ed3..0000000 --- a/.~lock.Assessment Brief Form 2024-25.docx# +++ /dev/null @@ -1 +0,0 @@ -,boris,boris-ThinkPad-T480,28.11.2024 18:42,file:///home/boris/.config/libreoffice/4; \ No newline at end of file diff --git a/paginationcontroller.php b/paginationcontroller.php index 8e0debc..21f0a07 100644 --- a/paginationcontroller.php +++ b/paginationcontroller.php @@ -1,17 +1,7 @@ "", - 'cateFilter' => "", - 'descFilter' => "", - 'statFilter' => "", - 'strtFilter' => "", - 'cntyFilter' => "", - 'townFilter' => "", - 'postFilter' => "", - 'contFilter' => "" -]; + $filterArray = [ 0 => "", 1 => "", @@ -23,17 +13,7 @@ $filterArray = [ 7 => "", 8 => "" ]; -$values = [ - "Title" => 0, - "Category" => 1, - "Description" => 2, - "Status" => 3, - "Street" => 4, - "County" => 5, - "Town" => 6, - "Postcode" => 7, - "Contributor" => 8, -]; + $rowLimit = 5; //$_POST['rowCount']; $facilityDataSet = new FacilityDataSet(); @@ -51,7 +31,7 @@ if (isset($_POST['applyFilters']) && isset($_POST['filter'])) { $filterKey = filter_input(INPUT_POST, 'filter', FILTER_SANITIZE_STRING); // Set the filter and generate the new URI - $filterSet = $facilityDataSet->setFilterUri($applyFilters, $filterArray[$filterKey] ?? ''); + $filterSet = $facilityDataSet->setFilterUri($applyFilters, $filterArray[$filterKey]); // Parse the existing query string parse_str($filterSet["newUri"], $queryParams);