WIP Preorder web gui changes

This commit is contained in:
Frank Schubert
2022-10-11 12:29:26 +02:00
parent 3f7e96d320
commit 2c7223d1a0
5 changed files with 99 additions and 14 deletions

View File

@@ -165,6 +165,18 @@ class PreorderModel {
}
}
if(array_key_exists("type", $filter)) {
$type = $filter['type'];
if(is_array($type) && count($type)) {
$where .= " AND type IN ('".implode("','",$type)."')";
} else {
$type = FronkDB::singleton()->escape($filter['type']);
if($type) {
$where .= " AND type like '%$type%'";
}
}
}
if(array_key_exists("ucode", $filter)) {
$ucode = FronkDB::singleton()->escape($filter['ucode']);
if($ucode) {