From 575c15c3338d0b60a163e6fb662d3fbf3d0ef561 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Sat, 8 Jun 2024 10:03:14 +0200 Subject: [PATCH] adress search filter search in delivery adress --- phpwf/plugins/class.yui.php | 19 +++++++++++++++++++ www/pages/content/adresse_table_filter.tpl | 20 +++++++++++++------- 2 files changed, 32 insertions(+), 7 deletions(-) diff --git a/phpwf/plugins/class.yui.php b/phpwf/plugins/class.yui.php index c2d2398e..a276877c 100644 --- a/phpwf/plugins/class.yui.php +++ b/phpwf/plugins/class.yui.php @@ -5275,6 +5275,25 @@ url:strUrl, success:function(html){strReturn = html;}, async:false ) "; } + + if(isset($parameter['lieferadresse']) && !empty($parameter['lieferadresse'])) { + $paramsArray[] = " + ( + a.id IN + ( + SELECT + adresse + FROM + lieferadressen lfadr + WHERE + lfadr.name LIKE '%" . $parameter['lieferadresse'] . "%' OR + lfadr.strasse LIKE '%" . $parameter['lieferadresse'] . "%' OR + lfadr.plz LIKE '%" . $parameter['lieferadresse'] . "%' OR + lfadr.ort LIKE '%" . $parameter['lieferadresse'] . "%' + ) + ) + "; + } if(isset($parameter['abteilung']) && !empty($parameter['abteilung'])) { $paramsArray[] = "a.abteilung LIKE '%".$parameter['abteilung']."%' "; diff --git a/www/pages/content/adresse_table_filter.tpl b/www/pages/content/adresse_table_filter.tpl index 28437af7..551aaecb 100644 --- a/www/pages/content/adresse_table_filter.tpl +++ b/www/pages/content/adresse_table_filter.tpl @@ -62,10 +62,14 @@ {|E-Mail|}: - - {|Kunde hat Abo|} {|Marketingsperre|}: {|Lead|}: - - + + {|Lieferadresse|}: + + + + {|Kunde hat Abo|} {|Marketingsperre|}: {|Lead|}: + + @@ -150,13 +154,15 @@ [ROLLEN] - Gruppen: - + + + Gruppen: + - +