mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 09:22:22 +00:00
studentenansicht
handbuch
This commit is contained in:
@@ -67,6 +67,23 @@ function check_lektor($uid, $conn)
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
function check_lektor_lehreinheit($conn, $uid, $lehreinheit_id)
|
||||
{
|
||||
// uid von View 'Lektor' holen
|
||||
$sql_query="SELECT mitarbeiter_uid FROM lehre.tbl_lehreinheitmitarbeiter WHERE mitarbeiter_uid='$uid' AND lehreinheit_id = '$lehreinheit_id'";
|
||||
//echo $sql_query;
|
||||
$result=pg_query($conn, $sql_query) or die(pg_last_error($conn));
|
||||
$num_rows=pg_num_rows($result);
|
||||
// Wenn kein ergebnis return 0 sonst ID
|
||||
if ($num_rows>0)
|
||||
{
|
||||
$row=pg_fetch_object($result);
|
||||
return $row->mitarbeiter_uid;
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
function check_student($uid, $conn)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user