From d9afd486ce1706fdfc95095c7b184aa8946d254b Mon Sep 17 00:00:00 2001 From: oesi Date: Wed, 22 Mar 2017 13:21:36 +0100 Subject: [PATCH] =?UTF-8?q?Wenn=20Benotung=20deaktiviert=20ist,=20dann=20w?= =?UTF-8?q?ird=20der=20Gesamtnote=20Men=C3=BCpunkt=20im=20CIS=20deaktivier?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/tw/cis_menu_lv.inc.php | 30 ++++++++++++++++++++++-------- locale/de-AT/lehre.php | 1 + locale/en-US/lehre.php | 2 +- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/include/tw/cis_menu_lv.inc.php b/include/tw/cis_menu_lv.inc.php index ee516d123..f35b51824 100644 --- a/include/tw/cis_menu_lv.inc.php +++ b/include/tw/cis_menu_lv.inc.php @@ -457,14 +457,28 @@ function checkZeilenUmbruch() //Gesamtnote if($is_lector && ((!defined('CIS_LEHRVERANSTALTUNG_GESAMTNOTE_ANZEIGEN') || CIS_LEHRVERANSTALTUNG_GESAMTNOTE_ANZEIGEN) && $angemeldet)) { - $menu[]=array - ( - 'id'=>'core_menu_gesamtnote', - 'position'=>'80', - 'name'=>$p->t('lehre/gesamtnote'), - 'icon'=>'../../../skin/images/button_endnote.png', - 'link'=>'benotungstool/lvgesamtnoteverwalten.php?lvid='.urlencode($lvid).'&stsem='.urlencode($angezeigtes_stsem) - ); + if($lv_obj->benotung) + { + $menu[]=array + ( + 'id'=>'core_menu_gesamtnote', + 'position'=>'80', + 'name'=>$p->t('lehre/gesamtnote'), + 'icon'=>'../../../skin/images/button_endnote.png', + 'link'=>'benotungstool/lvgesamtnoteverwalten.php?lvid='.urlencode($lvid).'&stsem='.urlencode($angezeigtes_stsem) + ); + } + else + { + $menu[]=array + ( + 'id'=>'core_menu_gesamtnote', + 'position'=>'80', + 'name'=>$p->t('lehre/gesamtnote'), + 'icon'=>'../../../skin/images/button_endnote.png', + 'text'=>$p->t('lehre/noteneingabedeaktiviert') + ); + } } // Studentenupload diff --git a/locale/de-AT/lehre.php b/locale/de-AT/lehre.php index 69a144ca5..4304da9d8 100755 --- a/locale/de-AT/lehre.php +++ b/locale/de-AT/lehre.php @@ -44,4 +44,5 @@ $this->phrasen['lehre/nichtzugeteilt']='Sie sind nicht zu dieser Lehrveranstaltu $this->phrasen['lehre/studienordnung']='Studienordnung'; $this->phrasen['lehre/studienplan']='Studienplan'; +$this->phrasen['lehre/noteneingabedeaktiviert']='Noteneingabe deaktiviert'; ?> diff --git a/locale/en-US/lehre.php b/locale/en-US/lehre.php index 94d66c67c..c3d0b5613 100755 --- a/locale/en-US/lehre.php +++ b/locale/en-US/lehre.php @@ -34,5 +34,5 @@ $this->phrasen['lehre/mail']='E-Mail to students'; $this->phrasen['lehre/keinMailverteiler']='There is no e-mail distribution list for the group(s) %s! The students in these groups will not receive an e-mail.'; $this->phrasen['lehre/pinboard']='Pinboard'; - +$this->phrasen['lehre/noteneingabedeaktiviert']='Grades deactivated'; ?>