commit before branching
This commit is contained in:
@@ -1,17 +1,7 @@
|
||||
<?php
|
||||
require_once('Models/FacilityDataSet.php');
|
||||
require_once("Models/Paginator.php");
|
||||
$filterArray = [
|
||||
'titlFilter' => "",
|
||||
'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);
|
||||
|
Reference in New Issue
Block a user