mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-03 21:29:28 +00:00
84a78e42e4
- Studentenansicht - Ansicht für alte Arbeiten für Lektoren - Legende für Farbcodes
353 lines
14 KiB
PHP
353 lines
14 KiB
PHP
<?php
|
|
$stsemobj = new studiensemester();
|
|
//$stsem = $stsemobj->getAktorNext();
|
|
$stsem = $stsemobj->getNearest();
|
|
?>
|
|
<table class="tabcontent">
|
|
<tr>
|
|
<td width="159" class='tdvertical' nowrap>
|
|
<table class="tabcontent">
|
|
<tr>
|
|
<td nowrap><a class="HyperItem" href="../index.html" target="_top"><< HOME</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
</tr>
|
|
<!-- ************* Meine CIS ******************* -->
|
|
<tr>
|
|
<td nowrap><a class="MenuItem" href="?MeineCIS" onClick="return(js_toggle_container('MeineCIS'));" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> Mein CIS</a></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td nowrap>
|
|
<table class="tabcontent" id="MeineCIS" style="display: visible;">
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class='tdwrap' ><a class="Item" href="profile/index.php" target="content" <?php echo (!$aktiv?'style="color: red;"':''); ?>><img src="../../skin/images/menu_item.gif" width="7" height="9"> Profil</a></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class='tdwrap'><a class="Item" href="https://webmail.technikum-wien.at" target="_blank"><img src="../../skin/images/menu_item.gif" width="7" height="9"> Webmail</a></td>
|
|
</tr>
|
|
<?php
|
|
if ($is_student)
|
|
{
|
|
$student = new student($user);
|
|
$datum_obj = new datum();
|
|
//Outgoing
|
|
echo '
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class="tdwrap">
|
|
<a class="Item" href="https://www.service4mobility.com/mobility/BewerbungServlet?identifier=wien20&kz_bew_art=OUT&kz_bew_pers=S&aust_prog=SMS&bew_matr_nr='.rawurlencode(trim($student->matrikelnr)).'&bew_nachname='.rawurlencode($student->nachname).'&bew_vorname='.rawurlencode($student->vorname).'&bew_titel='.rawurlencode($student->titelpre).'&bew_email='.rawurlencode($user.'@'.DOMAIN).'&bew_geb_datum='.rawurlencode($datum_obj->formatDatum($student->gebdatum,'d.m.Y')).'&bew_geschlecht='.rawurlencode(mb_strtoupper($student->geschlecht)).'" target="content">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Mobility</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class="tdwrap">
|
|
<a class="Item" href="https://www.service4mobility.com/mobility/BewerbungServlet?sprache=en&identifier=wien20&kz_bew_art=OUT&kz_bew_pers=S&aust_prog=SMS&bew_matr_nr='.rawurlencode(trim($student->matrikelnr)).'&bew_nachname='.rawurlencode($student->nachname).'&bew_vorname='.rawurlencode($student->vorname).'&bew_titel='.rawurlencode($student->titelpre).'&bew_email='.rawurlencode($user.'@'.DOMAIN).'&bew_geb_datum='.rawurlencode($datum_obj->formatDatum($student->gebdatum,'d.m.Y')).'&bew_geschlecht='.rawurlencode(mb_strtoupper($student->geschlecht)).'" target="content">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Mobility Englisch</a>
|
|
</td>
|
|
</tr>
|
|
';
|
|
|
|
//Dokumente
|
|
echo '<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class="tdwrap"><a class="Item" href="profile/dokumente.php" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> Dokumente</a></td>
|
|
</tr>';
|
|
}
|
|
|
|
echo '
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class="tdwrap"><a class="Item" href="lvplan/stpl_week.php" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> LV-Plan</a></td>
|
|
</tr>';
|
|
|
|
//Projekt-Zeitaufzeichnung
|
|
$qry = "SELECT count(*) as anzahl FROM fue.tbl_projektbenutzer WHERE uid='$user'";
|
|
if($result = $db->db_query($qry))
|
|
{
|
|
if($row = $db->db_fetch_object($result))
|
|
{
|
|
if($row->anzahl>0)
|
|
{
|
|
echo '
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class="tdwrap"><a class="Item" href="tools/zeitaufzeichnung.php" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> Zeitaufzeichnung</a></td>
|
|
</tr>';
|
|
}
|
|
}
|
|
}
|
|
|
|
if ($is_student)
|
|
{
|
|
echo '<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class="tdwrap"><a class="Item" href="lehre/notenliste.php" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> Leistungsbeurteilung</a></td>
|
|
</tr>';
|
|
echo '<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class="tdwrap"><a class="Item" href="profile/zahlungen.php" target="content"><img src="../../skin/images/menu_item.gif" width="7" height="9"> Zahlungen</a></td>
|
|
</tr>';
|
|
echo ' <tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class="tdwrap">
|
|
<a href="?Location" class="MenuItem" onClick="return(js_toggle_container(\'MeineLVs\'));">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Meine LV
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class="tdwrap">
|
|
<table class="tabcontent" id="MeineLVs" style="display: visible;">
|
|
<tr>
|
|
<td class="tdwrap">
|
|
<ul style="margin-top: 0px; margin-bottom: 0px;">';
|
|
|
|
$qry = "SELECT distinct lehrveranstaltung_id, bezeichnung, studiengang_kz, semester, lehre, lehreverzeichnis from campus.vw_student_lehrveranstaltung WHERE uid='$user' AND studiensemester_kurzbz='$stsem' AND lehre=true AND lehreverzeichnis<>'' ORDER BY studiengang_kz, semester, bezeichnung";
|
|
|
|
if($result = $db->db_query($qry))
|
|
{
|
|
while($row = $db->db_fetch_object($result))
|
|
{
|
|
if($row->studiengang_kz==0 && $row->semester==0)
|
|
echo '<li><a class="Item2" title="'.$row->bezeichnung.'" href="freifaecher/lesson.php?lvid='.$row->lehrveranstaltung_id.'" target="content">FF '.CutString($row->bezeichnung,$cutlength).'</a></li>';
|
|
else
|
|
echo '<li><a class="Item2" title="'.$row->bezeichnung.'" href="lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'" target="content">'.$stg[$row->studiengang_kz].$row->semester.' '.CutString($row->bezeichnung,$cutlength).'</a></li>';
|
|
}
|
|
}
|
|
else
|
|
echo "Fehler beim Auslesen der LV";
|
|
echo '
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>';
|
|
//Projektarbeitsabgabe
|
|
echo '
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class="tdwrap">
|
|
<a href="lehre/abgabe_student_frameset.php" class="Item" target="content">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Bachelor- und Diplomarbeitsabgabe
|
|
</a>
|
|
</td>
|
|
</tr>';
|
|
}
|
|
|
|
//Eigene LVs des eingeloggten Lektors anzeigen
|
|
if($is_lector)
|
|
{
|
|
?>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class='tdwrap'>
|
|
<a href="profile/zeitwunsch.php?uid=<?php echo $user; ?>" class="Item" target="content">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Zeitwünsche
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class='tdwrap'>
|
|
<a href="profile/urlaubstool.php" class="Item" target="content">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Urlaubstool
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class='tdwrap'>
|
|
<a href="profile/zeitsperre_resturlaub.php" class="Item" target="content">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Zeitsperre
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class='tdwrap'>
|
|
<a href="profile/lva_liste.php?uid=<?php echo $user; ?>" class="Item" target="content">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> LV-Übersicht
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class='tdwrap'>
|
|
<a href="?Location" class="MenuItem" onClick="return(js_toggle_container('MeineLVs'));">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Meine LV
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class='tdwrap'>
|
|
<table class="tabcontent" id="MeineLVs" style="display: visible;">
|
|
<tr>
|
|
<td class='tdwrap'>
|
|
<ul style="margin-top: 0px; margin-bottom: 0px;">
|
|
<?php
|
|
$qry = "SELECT distinct tbl_lehrveranstaltung.bezeichnung,typ, tbl_studiengang.kurzbz, tbl_lehrveranstaltung.studiengang_kz, semester, lehreverzeichnis, tbl_lehrveranstaltung.lehrveranstaltung_id, tbl_lehrveranstaltung.orgform_kurzbz
|
|
FROM
|
|
lehre.tbl_lehrveranstaltung, lehre.tbl_lehreinheit,
|
|
lehre.tbl_lehreinheitmitarbeiter, public.tbl_studiengang
|
|
WHERE
|
|
tbl_lehrveranstaltung.lehrveranstaltung_id=tbl_lehreinheit.lehrveranstaltung_id AND
|
|
tbl_lehreinheit.lehreinheit_id=tbl_lehreinheitmitarbeiter.lehreinheit_id AND tbl_lehrveranstaltung.studiengang_kz=tbl_studiengang.studiengang_kz AND
|
|
mitarbeiter_uid='$user' AND tbl_lehreinheit.studiensemester_kurzbz='$stsem' AND
|
|
(tbl_lehrveranstaltung.aktiv OR tbl_lehrveranstaltung.studiengang_kz=0) AND tbl_lehrveranstaltung.lehre ORDER BY typ, tbl_studiengang.kurzbz, semester, bezeichnung";
|
|
|
|
if($result = $db->db_query($qry))
|
|
{
|
|
while($row = $db->db_fetch_object($result))
|
|
{
|
|
if($row->studiengang_kz==0 && $row->semester==0)
|
|
echo '<li><a class="Item2" title="'.$row->bezeichnung.'" href="freifaecher/lesson.php?lvid='.$row->lehrveranstaltung_id.'" target="content">FF '.CutString($row->bezeichnung,$cutlength).'</a></li>';
|
|
else
|
|
echo '<li><a class="Item2" title="'.$row->bezeichnung.'" href="lehre/lesson.php?lvid='.$row->lehrveranstaltung_id.'" target="content">'.$stg[$row->studiengang_kz].$row->semester.' '.$row->orgform_kurzbz.' '.CutString($row->bezeichnung, $cutlength).'</a></li>';
|
|
}
|
|
}
|
|
else
|
|
echo "Fehler beim Auslesen des Lehrfaches";
|
|
?>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
<!--Projektarbeitsabgabe-->
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class='tdwrap'>
|
|
<a href="lehre/abgabe_lektor_frameset.html" class="Item" target="content">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Bachelor- und Diplomarbeitsabgabe
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
$berechtigung_kurzbz = 'lehre/abgabetool:download';
|
|
if($rechte->isBerechtigt('admin',0) || $rechte->isBerechtigt($berechtigung_kurzbz))
|
|
{
|
|
?>
|
|
<!--Projektarbeitsabgabe-->
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class='tdwrap'>
|
|
<a href="tools/projektabgabe.php" class="Item" target="content">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Projektabgabeübersicht
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
|
|
if ($rechte->isFix() || $rechte->isBerechtigt('mitarbeiter/zeitsperre'))
|
|
{
|
|
?>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class='tdwrap'>
|
|
<a href="profile/zeitsperre_days.php?days=12" target="content" class="MenuItem" onClick="js_toggle_container('Zeitsperren');">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Zeitsperren
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td nowrap>
|
|
<table class="tabcontent" id="Zeitsperren" style="display: none;">
|
|
<tr>
|
|
<td class='tdwrap'>
|
|
<ul style="margin-top: 0px; margin-bottom: 0px;">
|
|
<?php
|
|
if ($rechte->isBerechtigt('admin',0) || $rechte->isBerechtigt('mitarbeiter'))
|
|
echo '<li><a class="Item2" href="profile/resturlaub.php" target="content">Resturlaub</a></li>';
|
|
if ($rechte->isBerechtigt('admin',0) || $rechte->isBerechtigt('mitarbeiter') || $fkt->checkFunktion('stvLtg')|| $fkt->checkFunktion('gLtg')|| $fkt->checkFunktion('Leitung') || $fkt->checkFunktion('ass'))
|
|
{
|
|
echo '<li><a class="Item2" href="profile/zeitsperre.php?fix=true" target="content">Fix-Angestellte</a></li>';
|
|
echo '<li><a class="Item2" href="profile/zeitsperre.php?fix=true&lektor=true" target="content">Fixe Lektoren</a></li>';
|
|
echo '<li><a class="Item2" href="profile/zeitsperre.php?organisationseinheit=" target="content">Organisationseinheiten</a></li>';
|
|
}
|
|
$stge=$rechte->getStgKz('admin');
|
|
foreach($stg_obj->result as $row)
|
|
if (in_array($row->studiengang_kz,$stge))
|
|
echo '<li><a class="Item2" href="profile/zeitsperre.php?funktion=lkt&stg_kz='.$row->studiengang_kz.'" target="content">Lektoren '.$row->kurzbzlang.'</a></li>';
|
|
?>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php
|
|
//URLAUBE
|
|
//Untergebene holen
|
|
$mitarbeiter = new mitarbeiter();
|
|
$mitarbeiter->getUntergebene($user);
|
|
$untergebene = '';
|
|
|
|
foreach ($mitarbeiter->untergebene as $u_uid)
|
|
{
|
|
if($untergebene!='')
|
|
$untergebene.=',';
|
|
|
|
$untergebene.="'".addslashes($u_uid)."'";
|
|
}
|
|
|
|
if($untergebene!='')
|
|
{
|
|
$qry = "SELECT * FROM public.tbl_person JOIN public.tbl_benutzer USING(person_id) WHERE uid in($untergebene) and tbl_benutzer.aktiv ORDER BY nachname, vorname";
|
|
|
|
if($result = $db->db_query($qry))
|
|
{
|
|
echo '
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td class="tdwrap">
|
|
<a href="profile/urlaubsfreigabe.php" target="content" class="MenuItem" onClick="js_toggle_container(\'urlaub\');">
|
|
<img src="../../skin/images/menu_item.gif" width="7" height="9"> Urlaube
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="tdwidth10" nowrap> </td>
|
|
<td nowrap>
|
|
<table class="tabcontent" id="urlaub" style="display: none;">
|
|
<tr>
|
|
<td class="tdwrap">
|
|
<ul style="margin-top: 0px; margin-bottom: 0px;">';
|
|
echo '<li><a class="Item2" href="profile/urlaubsfreigabe.php" target="content">Alle</a></li>';
|
|
|
|
while($row = $db->db_fetch_object($result))
|
|
{
|
|
echo '<li><a class="Item2" href="profile/urlaubsfreigabe.php?uid='.$row->uid.'" target="content">'."$row->nachname $row->vorname $row->titelpre $row->titelpost".'</a></li>';
|
|
}
|
|
echo '</ul>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>';
|
|
}
|
|
|
|
}
|
|
}
|
|
?>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
|
|
</tr>
|
|
</table>
|