mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
This commit is contained in:
@@ -136,7 +136,7 @@ echo '
|
||||
<tr>
|
||||
<th>'.$p->t('tools/ampelStatus').'</th>
|
||||
<th>'.$p->t('tools/ampelBeschreibung').'</th>
|
||||
<th>'.$p->t('global/institut').'</th>
|
||||
<th>'.$p->t('global/organisationseinheit').'</th>
|
||||
<th>'.$p->t('tools/ampelMitarbeiter').'</th>
|
||||
<th>'.$p->t('tools/ampelBestaetigtAm').'</th>
|
||||
<th>'.$p->t('tools/ampelRestdauer').'</th>
|
||||
|
||||
+12
-4
@@ -449,20 +449,28 @@ class ampel extends basis_db
|
||||
{
|
||||
while($row = $this->db_fetch_object($result))
|
||||
{
|
||||
// Alle Mitarbeiter dazu holen
|
||||
// Alle Mitarbeiter/Studenten dazu holen
|
||||
$qry = "SELECT
|
||||
distinct on (tbl_ampel_benutzer_bestaetigt.ampel_benutzer_bestaetigt_id, a.uid) *,
|
||||
tbl_ampel_benutzer_bestaetigt.insertamum,tbl_ampel_benutzer_bestaetigt.insertvon
|
||||
FROM
|
||||
(".$row->benutzer_select.") a
|
||||
JOIN public.tbl_benutzerfunktion USING(uid)
|
||||
JOIN campus.vw_benutzer USING(uid)
|
||||
LEFT JOIN public.tbl_benutzerfunktion USING(uid)
|
||||
LEFT JOIN public.tbl_ampel_benutzer_bestaetigt on(public.tbl_ampel_benutzer_bestaetigt.uid=a.uid AND ampel_id='".$row->ampel_id."')
|
||||
WHERE
|
||||
(tbl_ampel_benutzer_bestaetigt.ampel_id is null OR tbl_ampel_benutzer_bestaetigt.ampel_id='".$row->ampel_id."')
|
||||
AND
|
||||
(funktion_kurzbz='oezuordnung' AND oe_kurzbz in(".$this->implode4SQL($oe_arr)."))
|
||||
|
||||
(
|
||||
(funktion_kurzbz='oezuordnung' AND oe_kurzbz in(".$this->implode4SQL($oe_arr)."))
|
||||
OR
|
||||
(funktion_kurzbz is null
|
||||
AND (SELECT oe_kurzbz FROM
|
||||
public.tbl_studiengang JOIN public.tbl_student USING(studiengang_kz)
|
||||
WHERE vw_benutzer.uid=tbl_student.student_uid)
|
||||
in(".$this->implode4SQL($oe_arr).")
|
||||
)
|
||||
)
|
||||
";
|
||||
|
||||
if($result_ma = $this->db_query($qry))
|
||||
|
||||
Reference in New Issue
Block a user