Autocomplete, überarbeitung Modal

This commit is contained in:
ma0068
2023-11-22 09:02:54 +01:00
parent 364217c36d
commit 92fdf3da4c
8 changed files with 1270 additions and 216 deletions
@@ -11,4 +11,18 @@ class Standort_model extends DB_Model
$this->dbTable = 'public.tbl_standort';
$this->pk = 'standort_id';
}
public function searchStandorte($filter)
{
$qry = "
SELECT
s.kurzbz, s.standort_id
FROM
public.tbl_standort s
WHERE
lower (s.kurzbz) LIKE '%". $this->db->escape_like_str($filter)."%'";
return $this->execQuery($qry);
}
}
@@ -70,3 +70,5 @@ class Adresse_model extends DB_Model
}
}
@@ -11,4 +11,17 @@ class Firma_model extends DB_Model
$this->dbTable = 'public.tbl_firma';
$this->pk = 'firma_id';
}
public function searchFirmen($filter)
{
$qry = "
SELECT
f.name, f.firma_id
FROM
public.tbl_firma f
WHERE
lower (f.name) LIKE '%". $this->db->escape_like_str($filter)."%'";
return $this->execQuery($qry);
}
}