- checksystem auf 3.4 umgebaut

- vilesci raumtypen inaktive raumtypen werden markiert
- tempus karteireiter ort zeigt nur aktive raumtypen an
- raumsuche auf aktive raumtypen eingeschraenkt
This commit is contained in:
ma0048
2023-03-01 10:44:47 +01:00
parent 37364d9775
commit 7bb340a415
8 changed files with 43 additions and 26 deletions
+6 -2
View File
@@ -52,10 +52,14 @@ class raumtyp extends basis_db
* Laedt alle verfuegbaren Raumtypen
* @return true wenn ok, false im Fehlerfall
*/
public function getAll()
public function getAll($aktiv = null)
{
$qry = 'SELECT * FROM public.tbl_raumtyp ORDER BY raumtyp_kurzbz;';
$qry = 'SELECT * FROM public.tbl_raumtyp';
if (!is_null($aktiv))
$qry .= ' WHERE aktiv = '.$this->db_add_param($aktiv, FHC_BOOLEAN);
$qry .= ' ORDER BY raumtyp_kurzbz';
if(!$this->db_query($qry))
{
$this->errormsg = 'Fehler beim Laden der Datensaetze';