From 60e1e444e973e8bf4874f6f42448ac8cf1bca8c6 Mon Sep 17 00:00:00 2001 From: kindlm Date: Mon, 18 Jul 2016 12:05:28 +0200 Subject: [PATCH] =?UTF-8?q?Link=20zum=20DMS-File=20in=20Bildpr=C3=BCfung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vilesci/fhausweis/bildpruefung.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vilesci/fhausweis/bildpruefung.php b/vilesci/fhausweis/bildpruefung.php index 5df40c11f..cf44746cd 100755 --- a/vilesci/fhausweis/bildpruefung.php +++ b/vilesci/fhausweis/bildpruefung.php @@ -294,11 +294,11 @@ if (isset($_GET['ansicht'])) { if ($_GET['ansicht'] == 'mitarbeiter') { - $ansicht = 'AND uid IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter)'; + $ansicht = 'AND tbl_benutzer.uid IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter)'; $mitarbeiterSubmit = ''; } if ($_GET['ansicht'] == 'studenten') - $ansicht = 'AND uid NOT IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter)'; + $ansicht = 'AND tbl_benutzer.uid NOT IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter)'; } else { @@ -320,7 +320,7 @@ $qry_anzahl_mitarbeiter = " WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1) AND 'abgewiesen' NOT IN (SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1) - AND uid IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter) + AND tbl_benutzer.uid IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter) "; $anzahl_ma = ''; if($result_anzahl = $db->db_query($qry_anzahl_mitarbeiter)) @@ -388,9 +388,11 @@ $qry = " FROM public.tbl_person JOIN public.tbl_benutzer USING(person_id) + JOIN public.tbl_akte USING (person_id) WHERE foto is not NULL AND tbl_benutzer.aktiv + AND tbl_akte.dokument_kurzbz='Lichtbil' ".$ansicht; @@ -453,6 +455,8 @@ if($result = $db->db_query($qry)) echo ''; echo '


'; echo 'Bild Upload'; + echo '

'; + echo 'DMS Download'; echo ''; } else