wareneingang manuell multifilter

This commit is contained in:
OpenXE 2024-01-15 15:24:28 +01:00
parent 1baf957891
commit fdad52f168
2 changed files with 30 additions and 0 deletions

View File

@ -96,6 +96,16 @@
</tr>
[ISLIEFERANTENDE]
[ISNOTLIEFERANTSTART]
<tr [HINZUFUEGENHIDDEN]>
<td>
{|Multifilter|}:
</td>
</tr>
<tr [HINZUFUEGENHIDDEN]>
<td>
<input type="text" name="multifilter" id="multifilter" value="[MULTIFILTER]" size="20" style="width:98%;" form="">
</td>
</tr>
<tr [HINZUFUEGENHIDDEN]>
<td>
<button name="submit" class="ui-button-icon" style="width:100%;" value="manuell_hinzufuegen">{|Hinzuf&uuml;gen|}</button>
@ -170,6 +180,16 @@
<button name="submit" class="ui-button-icon" style="width:100%;" value="speichern" hidden="true"></button>
<table width="100%" border="0" class="mkTableFormular">
<legend>{|Aktionen|}</legend>
<tr [HINZUFUEGENHIDDEN]>
<td>
{|Multifilter|}:
</td>
</tr>
<tr [HINZUFUEGENHIDDEN]>
<td>
<input type="text" name="multifilter" id="multifilter" value="[MULTIFILTER]" size="20" style="width:98%;" form="">
</td>
</tr>
<tr [HINZUFUEGENHIDDEN]>
<td>
<button name="submit" class="ui-button-icon" style="width:100%;" value="manuell_hinzufuegen">{|Hinzuf&uuml;gen|}</button>

View File

@ -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;