$mitarbeit = $row->mitarbeitspunkte != '' ? $row->mitarbeitspunkte : 0;
         }
     }
     echo "\n\t\t<br>\n\t\t\t<table border='1' width='210'>\n\t\t\t<tr>\n\t\t\t\t<td colspan='2' class='ContentHeader2'>Diese Kreuzerlliste:</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td width='180'>" . $p->t('benotungstool/punkteInsgesamtMoeglich') . ":</td>\n\t\t\t\t<td width='30'>{$punkte_gesamt}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>" . $p->t('benotungstool/punkteEingetragen') . ":</td>\n\t\t\t\t<td>{$punkte_eingetragen}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t\t<br><br>\n\t\t\t<table border='1' width='210'>\n\t\t\t<tr>\n\t\t\t\t<td colspan='2' class='ContentHeader2'>" . $p->t('benotungstool/alleKreuzerllistenDieserUebung') . ":</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td width='180'>" . $p->t('benotungstool/punkteInsgesamtMoeglich') . ":</td>\n\t\t\t\t<td width='30'>{$punkte_gesamt_alle}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>" . $p->t('benotungstool/punkteEingetragen') . ":</td>\n\t\t\t\t<td>{$punkte_eingetragen_alle}</td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t\t<br><br>\n\t\t\t<table border='1' width='210'>\n\t\t\t<tr>\n\t\t\t\t<td colspan='2' class='ContentHeader2'>" . $p->t('benotungstool/mitarbeitspunkte') . ":</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td width='180'>" . $p->t('benotungstool/bisherInsgesamt') . ":</td>\n\t\t\t\t<td width='30'>{$mitarbeit_alle}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>" . $p->t('benotungstool/dieseKreuzerlliste') . ":</td>\n\t\t\t\t<td><input type='text' size=2 name='punkte' value='{$mitarbeit}'></td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t\t";
     echo "\n\t\t</td></tr>\n\t\t<tr>\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>\n\t\t\t\t<input type='button' value='" . $p->t('global/zurueck') . "' onclick='history.back();'>\n\t\t\t\t<input type='submit' value='" . $p->t('global/speichern') . "' name='submit'>\n\t\t\t</td>\n\t\n\t\t</tr>\n\t\t</table>\n\t\n\t\t</form>\n\t\t";
 } else {
     if (is_numeric($_GET['uebung_id'])) {
         $ueb_obj->load_studentuebung($uid, $uebung_id);
         if ($ueb_obj->abgabe_id) {
             $ueb_obj->load_abgabe($ueb_obj->abgabe_id);
             $filename = $ueb_obj->abgabedatei;
         } else {
             $filename = '';
         }
         //Abgaben benoten
         $studentnote = new studentnote($lehreinheit_id, $stsem, $uid, $uebung_id);
         $studentnote->calc_note($uebung_id, $uid);
         echo "<span class='studentnote'>" . $p->t('benotungstool/note') . ": " . $studentnote->note . " (Gewicht: " . $ueb_obj->gewicht . ")</span><br><br>";
         if ($filename != '') {
             echo $p->t('benotungstool/abgabedatei') . ": <a href='studentenpunkteverwalten.php?lvid={$lvid}&stsem={$stsem}&lehreinheit_id={$lehreinheit_id}&uebung_id={$uebung_id}&uid={$uid}&download_abgabe={$filename}'>" . $filename . "</a><br><br>";
         }
         echo "\n\t\t<form accept-charset='UTF-8' method='POST' action='studentenpunkteverwalten.php?lvid={$lvid}&stsem={$stsem}&lehreinheit_id={$lehreinheit_id}&uebung_id={$uebung_id}&uid={$uid}'>\n\t\t<table width='100%'><tr><td valign='top'>\n\t\t" . $p->t('global/anmerkung') . ":<br>\n\t\t<textarea name='anmerkung' cols=50 rows=5>" . $anmerkung . "</textarea>\n\t\t</td><td>\n\t\t<table border='1'>\n\t\t<tr>\n\t\t\t<td class='ContentHeader2'>Note</td>\n\t\t\t<td><input type='text' name='note' value='{$note}'><input type='hidden' name='abgabe' value='1'></td>\n\t\t</tr>";
         echo "\n\t\t<tr>\n\t\t\t<td colspan='2'>\n\t\t\t\t<input type='button' value='" . $p->t('global/zurueck') . "' onclick='history.back();'>\n\t\t\t\t<input type='submit' value='" . $p->t('global/speichern') . "' name='submit'>\t\n\t\t\t</td>\n\t\n\t\t</tr>\n\t\t</table>\n\t\t</form>";
     }
 }
 echo "</td></tr></table>";
 echo "<table>\n";
 echo "\t<tr>\n";
 echo "\t<form accept-charset='UTF-8' method='POST' action='studentenpunkteverwalten.php?lvid={$lvid}&lehreinheit_id={$lehreinheit_id}&uebung_id={$uebung_id}&stsem={$stsem}&uid={$uid}' enctype='multipart/form-data'>\n";
 echo "\t\t<td>\n";
 echo "\t\t\t<b>" . $p->t('benotungstool/studentenabgabedatei') . ":</b><br><input type='file' name='abgabedatei'> <input type='submit' name='abgabe' value='" . $p->t('benotungstool/abgeben') . "'>";
					<td colspan='8' align='center'><b>Verband $row_grp->verband ".($row_grp->gruppe!=''?"Gruppe $row_grp->gruppe":'')."</b></td>
				</tr>";
				$qry_stud = "SELECT uid, vorname, nachname, matrikelnr FROM campus.vw_student_lehrveranstaltung
				             WHERE studiengang_kz='$row_grp->studiengang_kz' AND
				             semester='$row_grp->semester' ".
							 ($row_grp->verband!=''?" AND trim(verband)=trim('$row_grp->verband')":'').
							 ($row_grp->gruppe!=''?" AND trim(gruppe)=trim('$row_grp->gruppe')":'').
				            " ORDER BY nachname, vorname";
		}
*/
// studentenquery
$qry_stud = "SELECT uid, vorname, nachname, matrikelnr FROM campus.vw_student_lehrveranstaltung JOIN campus.vw_student using(uid) WHERE  studiensemester_kurzbz = " . $db->db_add_param($stsem) . " and lehreinheit_id = " . $db->db_add_param($lehreinheit_id, FHC_INTEGER) . " ORDER BY nachname, vorname";
if ($result_stud = $db->db_query($qry_stud)) {
    $i = 1;
    while ($row_stud = $db->db_fetch_object($result_stud)) {
        $studentnote = new studentnote();
        $studentnote->calc_gesamtnote($lehreinheit_id, $stsem, $row_stud->uid);
        //echo $studentnote->debug;
        $legesamtnote = new legesamtnote($lehreinheit_id);
        if (!$legesamtnote->load($row_stud->uid, $lehreinheit_id)) {
            $note = null;
        } else {
            $note = $legesamtnote->note;
        }
        if ($studentnote->studentgesamtnote != 0) {
            $note_calc = round($studentnote->studentgesamtnote, 2);
        } else {
            $note_calc = null;
        }
        echo "\n\t\t<tr class='liste" . $i % 2 . "'>\n\t\t\t<td><a href='studentenpunkteverwalten.php?lvid={$lvid}&lehreinheit_id={$lehreinheit_id}&uebung_id={$uebung_id}&uid={$row_stud->uid}&stsem={$stsem}' class='Item'>{$row_stud->uid}</a></td>\n\t\t\t<td><a href='studentenpunkteverwalten.php?lvid={$lvid}&lehreinheit_id={$lehreinheit_id}&uebung_id={$uebung_id}&uid={$row_stud->uid}&stsem={$stsem}' class='Item'>{$row_stud->nachname}</a></td>\n\t\t\t<td><a href='studentenpunkteverwalten.php?lvid={$lvid}&lehreinheit_id={$lehreinheit_id}&uebung_id={$uebung_id}&uid={$row_stud->uid}&stsem={$stsem}' class='Item'>{$row_stud->vorname}</a></td>";
        echo "<td>{$note_calc}</td>";