commit before branching
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
,boris,boris-ThinkPad-T480,28.11.2024 18:42,file:///home/boris/.config/libreoffice/4;
|
|
@@ -1,17 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once('Models/FacilityDataSet.php');
|
require_once('Models/FacilityDataSet.php');
|
||||||
require_once("Models/Paginator.php");
|
require_once("Models/Paginator.php");
|
||||||
$filterArray = [
|
|
||||||
'titlFilter' => "",
|
|
||||||
'cateFilter' => "",
|
|
||||||
'descFilter' => "",
|
|
||||||
'statFilter' => "",
|
|
||||||
'strtFilter' => "",
|
|
||||||
'cntyFilter' => "",
|
|
||||||
'townFilter' => "",
|
|
||||||
'postFilter' => "",
|
|
||||||
'contFilter' => ""
|
|
||||||
];
|
|
||||||
$filterArray = [
|
$filterArray = [
|
||||||
0 => "",
|
0 => "",
|
||||||
1 => "",
|
1 => "",
|
||||||
@@ -23,17 +13,7 @@ $filterArray = [
|
|||||||
7 => "",
|
7 => "",
|
||||||
8 => ""
|
8 => ""
|
||||||
];
|
];
|
||||||
$values = [
|
|
||||||
"Title" => 0,
|
|
||||||
"Category" => 1,
|
|
||||||
"Description" => 2,
|
|
||||||
"Status" => 3,
|
|
||||||
"Street" => 4,
|
|
||||||
"County" => 5,
|
|
||||||
"Town" => 6,
|
|
||||||
"Postcode" => 7,
|
|
||||||
"Contributor" => 8,
|
|
||||||
];
|
|
||||||
$rowLimit = 5; //$_POST['rowCount'];
|
$rowLimit = 5; //$_POST['rowCount'];
|
||||||
|
|
||||||
$facilityDataSet = new FacilityDataSet();
|
$facilityDataSet = new FacilityDataSet();
|
||||||
@@ -51,7 +31,7 @@ if (isset($_POST['applyFilters']) && isset($_POST['filter'])) {
|
|||||||
$filterKey = filter_input(INPUT_POST, 'filter', FILTER_SANITIZE_STRING);
|
$filterKey = filter_input(INPUT_POST, 'filter', FILTER_SANITIZE_STRING);
|
||||||
|
|
||||||
// Set the filter and generate the new URI
|
// 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 the existing query string
|
||||||
parse_str($filterSet["newUri"], $queryParams);
|
parse_str($filterSet["newUri"], $queryParams);
|
||||||
|
Reference in New Issue
Block a user