diff --git a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php index e3b09909e..1500715fc 100644 --- a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php +++ b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php @@ -172,8 +172,13 @@ foreach($noten_obj->result as $row) // ****************************************** function saveLVNote(uid) { - note = document.getElementById(uid).note.value; + note = document.getElementById(uid).note.value; note_label = document.getElementById(uid).note.label; + if(note=='') + { + alert('Bitte wählen Sie eine Note aus'); + return false; + } if(document.getElementById(uid).punkte) punkte = document.getElementById(uid).punkte.value; else @@ -992,7 +997,7 @@ echo " { if(CIS_GESAMTNOTE_PUNKTE) { - $punkte_vorschlag = round($note_le/$le_anz); + $punkte_vorschlag = round($note_le/$le_anz,2); $notenschluessel = new notenschluessel(); $note_vorschlag = $notenschluessel->getNote($punkte_vorschlag, $lvid, $stsem); } diff --git a/cis/private/lehre/notenliste.php b/cis/private/lehre/notenliste.php index ee8595805..8edd1152d 100644 --- a/cis/private/lehre/notenliste.php +++ b/cis/private/lehre/notenliste.php @@ -25,6 +25,7 @@ * das betreffende Studiensemester kann ausgewaehlt werden */ require_once('../../../config/cis.config.inc.php'); +require_once('../../../config/global.config.inc.php'); require_once('../../../include/functions.inc.php'); require_once('../../../include/studiensemester.class.php'); require_once('../../../include/datum.class.php'); @@ -153,8 +154,15 @@ else $tbl= " - - + "; + if(defined('CIS_GESAMTNOTE_PUNKTE') && CIS_GESAMTNOTE_PUNKTE) + $tbl.=""; + + $tbl.=" "; + if(defined('CIS_GESAMTNOTE_PUNKTE') && CIS_GESAMTNOTE_PUNKTE) + $tbl.=""; + + $tbl.=" "; @@ -176,10 +184,16 @@ else else $tbl.=$row->lvnote; } - if($row->lvpunkte!='') - $tbl.=' ('.((float)$row->lvpunkte).')'; $tbl.= ""; + + // LV Gesamtnote Punkte + if(defined('CIS_GESAMTNOTE_PUNKTE') && CIS_GESAMTNOTE_PUNKTE) + { + $lvpunkte = ($row->lvpunkte!=''?(float)$row->lvpunkte:''); + $tbl.=""; + } + if ($row->note != $row->lvnote && $row->lvnote != NULL) $markier = " style='border: 1px solid red;'"; else @@ -190,11 +204,15 @@ else $tbl.=$notenarr[$row->note]; else $tbl.=$row->note; - - if($row->punkte!='') - $tbl.=' ('.((float)$row->punkte).')'; $tbl .= ""; + + if(defined('CIS_GESAMTNOTE_PUNKTE') && CIS_GESAMTNOTE_PUNKTE) + { + $punkte = ($row->punkte!=''?((float)$row->punkte):''); + $tbl.=""; + } + $tbl .= ''; $pruefung = new pruefung(); @@ -220,6 +238,8 @@ else } $tbl.=''; } + else + $tbl.=''; $tbl .= ""; } diff --git a/content/student/studentDBDML.php b/content/student/studentDBDML.php index 597cd1396..093457a38 100644 --- a/content/student/studentDBDML.php +++ b/content/student/studentDBDML.php @@ -2391,7 +2391,7 @@ if(!$error) $studiensemester_kurzbz=$semester_aktuell; $notenschluessel = new notenschluessel(); - if($note = $notenschluessel->getNote($punkte, $lehrveranstaltung_id, $studiensemester_kurzbz)) + if(($note = $notenschluessel->getNote($punkte, $lehrveranstaltung_id, $studiensemester_kurzbz))!==false) { $return = true; $error = false;
".$p->t('global/lehrveranstaltung')."".$p->t('benotungstool/lvNote')."".$p->t('benotungstool/zeugnisnote')."".$p->t('benotungstool/lvNote')."".$p->t('benotungstool/punkte')."".$p->t('benotungstool/zeugnisnote')."".$p->t('benotungstool/punkte')."".$p->t('tools/benotungsdatumDerZeugnisnote')." ".$p->t('benotungstool/pruefung')."
".$lvpunkte."".$punkte."'.$datum_obj->formatDatum($row->benotungsdatum,'d.m.Y').'