From fdad52f1689c02fcfde3e721df1ab135caa3ca89 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Mon, 15 Jan 2024 15:24:28 +0100 Subject: [PATCH] wareneingang manuell multifilter --- .../content/wareneingang_paketinhalt.tpl | 20 +++++++++++++++++++ www/pages/wareneingang.php | 10 ++++++++++ 2 files changed, 30 insertions(+) diff --git a/www/pages/content/wareneingang_paketinhalt.tpl b/www/pages/content/wareneingang_paketinhalt.tpl index ae03b568..a1dfe0ad 100644 --- a/www/pages/content/wareneingang_paketinhalt.tpl +++ b/www/pages/content/wareneingang_paketinhalt.tpl @@ -96,6 +96,16 @@ [ISLIEFERANTENDE] [ISNOTLIEFERANTSTART] +
+ {|Multifilter|}: + | +
+ + | +
diff --git a/www/pages/wareneingang.php b/www/pages/wareneingang.php index 8a6af126..e933bfb5 100644 --- a/www/pages/wareneingang.php +++ b/www/pages/wareneingang.php @@ -306,6 +306,16 @@ class Wareneingang { "; $where = "geloescht <> 1"; + + $multifilter = $this->app->YUI->TableSearchFilter($name, 8,'multifilter'); + if (!empty($multifilter)) { + $multifilter_array = explode(' ',$multifilter); + $where .= " AND (1=0"; + foreach($multifilter_array as $keyword) { + $where .= " OR name_de LIKE '%".$keyword."%'"; + } + $where .= ")"; + } $count = ""; break; |