diff --git a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php index b65af39b4..fa9bdc980 100644 --- a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php +++ b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php @@ -1,50 +1,47 @@ , - * Andreas Oesterreicher and - * Rudolf Hangl < rudolf.hangl@technikum-wien.at > - * Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at > + * Andreas Oesterreicher and + * Rudolf Hangl < rudolf.hangl@technikum-wien.at > + * Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at > */ -require_once('../../../../config/cis.config.inc.php'); -require_once('../../../../config/global.config.inc.php'); -require_once('../../../../include/functions.inc.php'); -require_once('../../../../include/lehrveranstaltung.class.php'); -require_once('../../../../include/studiengang.class.php'); -require_once('../../../../include/studiensemester.class.php'); -require_once('../../../../include/lehreinheit.class.php'); -require_once('../../../../include/benutzerberechtigung.class.php'); -require_once('../../../../include/uebung.class.php'); -require_once('../../../../include/beispiel.class.php'); -require_once('../../../../include/studentnote.class.php'); -require_once('../../../../include/datum.class.php'); -require_once('../../../../include/legesamtnote.class.php'); -require_once('../../../../include/lvgesamtnote.class.php'); -require_once('../../../../include/zeugnisnote.class.php'); -require_once('../../../../include/pruefung.class.php'); -require_once('../../../../include/person.class.php'); -require_once('../../../../include/benutzer.class.php'); -require_once('../../../../include/mitarbeiter.class.php'); -require_once('../../../../include/mail.class.php'); -require_once('../../../../include/phrasen.class.php'); -require_once('../../../../include/note.class.php'); -require_once('../../../../include/notenschluessel.class.php'); -require_once('../../../../include/studienplan.class.php'); -require_once('../../../../include/addon.class.php'); +require_once ('../../../../config/cis.config.inc.php'); +require_once ('../../../../config/global.config.inc.php'); +require_once ('../../../../include/functions.inc.php'); +require_once ('../../../../include/lehrveranstaltung.class.php'); +require_once ('../../../../include/studiengang.class.php'); +require_once ('../../../../include/studiensemester.class.php'); +require_once ('../../../../include/lehreinheit.class.php'); +require_once ('../../../../include/benutzerberechtigung.class.php'); +require_once ('../../../../include/uebung.class.php'); +require_once ('../../../../include/beispiel.class.php'); +require_once ('../../../../include/studentnote.class.php'); +require_once ('../../../../include/datum.class.php'); +require_once ('../../../../include/legesamtnote.class.php'); +require_once ('../../../../include/lvgesamtnote.class.php'); +require_once ('../../../../include/zeugnisnote.class.php'); +require_once ('../../../../include/pruefung.class.php'); +require_once ('../../../../include/person.class.php'); +require_once ('../../../../include/benutzer.class.php'); +require_once ('../../../../include/mitarbeiter.class.php'); +require_once ('../../../../include/mail.class.php'); +require_once ('../../../../include/phrasen.class.php'); +require_once ('../../../../include/note.class.php'); +require_once ('../../../../include/notenschluessel.class.php'); +require_once ('../../../../include/studienplan.class.php'); +require_once ('../../../../include/addon.class.php'); $summe_stud = 0; $summe_t2 = 0; @@ -54,30 +51,30 @@ $grades = array(); $sprache = getSprache(); $p = new phrasen($sprache); -if (!$db = new basis_db()) +if (! $db = new basis_db()) die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung')); $user = get_uid(); -if (!check_lektor($user)) +if (! check_lektor($user)) die($p->t('global/keineBerechtigungFuerDieseSeite')); $rechte = new benutzerberechtigung(); $rechte->getBerechtigungen($user); -if (isset($_GET['lvid']) && is_numeric($_GET['lvid'])) //Lehrveranstaltung_id +if (isset($_GET['lvid']) && is_numeric($_GET['lvid'])) // Lehrveranstaltung_id $lvid = $_GET['lvid']; else die($p->t('global/fehlerBeiDerParameteruebergabe')); -if (isset($_GET['lehreinheit_id']) && is_numeric($_GET['lehreinheit_id'])) //Lehreinheit_id +if (isset($_GET['lehreinheit_id']) && is_numeric($_GET['lehreinheit_id'])) // Lehreinheit_id $lehreinheit_id = $_GET['lehreinheit_id']; else $lehreinheit_id = ''; -//Laden der Lehrveranstaltung +// Laden der Lehrveranstaltung $lv_obj = new lehrveranstaltung(); -if (!$lv_obj->load($lvid)) +if (! $lv_obj->load($lvid)) die($lv_obj->errormsg); -//Studiengang laden +// Studiengang laden $stg_obj = new studiengang($lv_obj->studiengang_kz); $datum_obj = new datum(); @@ -87,7 +84,7 @@ if (isset($_GET['stsem'])) else $stsem = ''; -if ($stsem != '' && !check_stsem($stsem)) +if ($stsem != '' && ! check_stsem($stsem)) die($p->t('anwesenheitsliste/studiensemesterIstUngueltig')); $datum_obj = new datum(); @@ -95,6 +92,11 @@ $datum_obj = new datum(); $noten_obj = new note(); $noten_obj->getAll(); +$sprachen = new sprache(); +$sprachen->getAll(true); + +$errormsg = ''; + echo ' @@ -144,6 +146,26 @@ echo ' border-width:1px; border-color:#333333; } + .error + { + padding: 15px; + margin-bottom: 20px; + border: 1px solid transparent; + border-radius: 4px; + color: #a94442; + background-color: #f2dede; + border-color: #ebccd1; + } + .warning + { + padding: 15px; + margin-bottom: 20px; + border: 1px solid transparent; + border-radius: 4px; + color: #8a6d3b; + background-color: #fcf8e3; + border-color: #faebcc; + }