From 1d07cb400bc0b50e94a6eebd91519c564f0fd0ce Mon Sep 17 00:00:00 2001 From: Karl Burkhart Date: Mon, 2 May 2011 15:06:32 +0000 Subject: [PATCH] added loadDokumenttyp() --- include/dokument.class.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/dokument.class.php b/include/dokument.class.php index f12b60478..babef35a0 100644 --- a/include/dokument.class.php +++ b/include/dokument.class.php @@ -353,5 +353,25 @@ class dokument extends basis_db return false; } } + + public function loadDokumenttyp($dokument_kurzbz) + { + $qry="Select * FROM public.tbl_dokument where dokument_kurzbz ='".addslashes($dokument_kurzbz)."';"; + + if($this->db_query($qry)) + { + if($row = $this->db_fetch_object()) + { + $this->dokument_kurzbz = $row->dokument_kurzbz; + $this->bezeichnung = $row->bezeichnung; + return true; + } + } + else + { + $this->errormsg ='Fehler beim Laden der Daten'; + return false; + } + } } ?> \ No newline at end of file