From ebb1eced99a0a2df4d58108bc397acce42536cc5 Mon Sep 17 00:00:00 2001 From: Nikolaus Krondraf Date: Mon, 13 Apr 2015 07:55:16 +0200 Subject: [PATCH 1/3] add missing primary key for table public.tbl_notiz_dokument --- system/checksystem.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/checksystem.php b/system/checksystem.php index 49a200fa4..a528ca281 100644 --- a/system/checksystem.php +++ b/system/checksystem.php @@ -2836,6 +2836,8 @@ if(!$result = @$db->db_query("SELECT 1 FROM public.tbl_notiz_dokument LIMIT 1;") notiz_id integer NOT NULL, dms_id integer NOT NULL ); + + ALTER TABLE public.tbl_notiz_dokument ADD CONSTRAINT pk_notiz_dokument PRIMARY KEY (notiz_id, dms_id); ALTER TABLE public.tbl_notiz_dokument ADD CONSTRAINT fk_notiz_dokument_notiz FOREIGN KEY (notiz_id) REFERENCES public.tbl_notiz (notiz_id) ON UPDATE CASCADE ON DELETE CASCADE; ALTER TABLE public.tbl_notiz_dokument ADD CONSTRAINT fk_notiz_dokument_dms FOREIGN KEY (dms_id) REFERENCES campus.tbl_dms (dms_id) ON UPDATE CASCADE ON DELETE CASCADE; From efaaa56d948bec6e7f35e92919cb3e6056d43800 Mon Sep 17 00:00:00 2001 From: oesi Date: Tue, 14 Apr 2015 10:08:47 +0200 Subject: [PATCH 2/3] =?UTF-8?q?Neuen=20Config=20Eintrag=20hinzugef=C3=BCgt?= =?UTF-8?q?=20ob=20die=20LV-Note=20vom=20Lektor=20eingetragen=20werden=20d?= =?UTF-8?q?arf=20wenn=20bereis=20eine=20Zeugnisnote=20vorhanden=20ist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../benotungstool/lvgesamtnoteverwalten.php | 67 ++++++++++--------- config/global.config-default.inc.php | 3 + 2 files changed, 40 insertions(+), 30 deletions(-) diff --git a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php index 1500715fc..f0ee6c199 100644 --- a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php +++ b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php @@ -1021,41 +1021,48 @@ echo " else $hide = "style='display:block;visibility:visible;'"; - echo " -
- - "; - - // Punkte - if(CIS_GESAMTNOTE_PUNKTE) + if(!defined('CIS_GESAMTNOTE_UEBERSCHREIBEN') || CIS_GESAMTNOTE_UEBERSCHREIBEN || (!CIS_GESAMTNOTE_UEBERSCHREIBEN && is_null($znote))) { - //$punkte_lv = $punkte_vorschlag; - echo ''; - } + echo " + + + "; + + // Punkte + if(CIS_GESAMTNOTE_PUNKTE) + { + //$punkte_lv = $punkte_vorschlag; + echo ''; + } - // Noten DropDown - if($punkte_vorschlag!='' && CIS_GESAMTNOTE_PUNKTE) - $disabled='disabled="disabled"'; - else - $disabled=''; - echo ''; + echo ''; + foreach($noten_obj->result as $row_note) + { + if($row_note->note == $note_vorschlag) + $selected='selected'; + else + $selected=''; - if($row_note->lehre && $row_note->aktiv) - echo ''; + if($row_note->lehre && $row_note->aktiv) + echo ''; + } + echo ''; + echo " + + uid."');\"> + + "; + } + else + { + echo ''; } - echo ''; - echo " - - uid."');\"> -
- "; if(isset($noten_array[$note_lv]) && $noten_array[$note_lv]['positiv']==false) $negmarkier = " style='color:red; font-weight:bold;'"; diff --git a/config/global.config-default.inc.php b/config/global.config-default.inc.php index e1dd3eeb8..0d887e51a 100644 --- a/config/global.config-default.inc.php +++ b/config/global.config-default.inc.php @@ -45,6 +45,9 @@ define('CIS_ANWESENHEITSLISTE_NOTENLISTE_ANZEIGEN',true); // Punkte bei der Noteneingabe anzeigen define('CIS_GESAMTNOTE_PUNKTE',false); +// Gibt an ob der Lektor erneut eine LVNote eintragen kann wenn bereits eine Zeugnisnote vorhanden ist (true | false) DEFAULT true +define('CIS_GESAMTNOTE_UEBERSCHREIBEN',true); + // Anzeigeoptionen für LV-Plan Menü define('CIS_LVPLAN_EXPORT_ANZEIGEN',true); define('CIS_LVPLAN_PERSONENAUSWAHL_ANZEIGEN',true); From 8512a6a8992c6626bc021e32ba17b0acdb4a3378 Mon Sep 17 00:00:00 2001 From: oesi Date: Tue, 14 Apr 2015 10:10:52 +0200 Subject: [PATCH 3/3] =?UTF-8?q?Bug=20behoben=20bei=20dem=20im=20Tempus=20b?= =?UTF-8?q?eim=20Ziehen=20einer=20Stunde=20der=20Hintergrund=20weiss=20wir?= =?UTF-8?q?d=20Bug=20behoben=20bei=20dem=20in=20der=20neuen=20Seamonkey=20?= =?UTF-8?q?Version=20die=20Anzeige=20bei=20aktivierten=20Kollissionscheck?= =?UTF-8?q?=20und=20Stundenplan-Tabelle=20nicht=20rot=20wird=20Bug=20behob?= =?UTF-8?q?en=20bei=20dem=20das=20Kontextmen=C3=BC=20bei=20den=20Stundenpl?= =?UTF-8?q?andetails=20transparent=20angezeigt=20wurde?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/dragboard.js.php | 5 +++-- content/lvplanung/stpl-details-overlay.xul.php | 4 ++-- content/tempus.js.php | 9 +++++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/content/dragboard.js.php b/content/dragboard.js.php index 4ef557e10..45e1fe27b 100644 --- a/content/dragboard.js.php +++ b/content/dragboard.js.php @@ -462,7 +462,7 @@ var boardObserver= if (evt.target.tagName=="label") evt.target.setAttribute("style","background-color:#AAFFAA;"); else - evt.target.setAttribute("style",styleNow+"border:1px dashed black;"); + evt.target.setAttribute("style",styleNow+";border:1px dashed black;"); }, onDragExit: function (evt,flavour,session) { @@ -470,7 +470,7 @@ var boardObserver= if (evt.target.tagName=="label") evt.target.setAttribute("style",""); else - evt.target.setAttribute("style",styleNow+"border:1px solid black;"); + evt.target.setAttribute("style",styleNow+";border:1px solid black;"); }, onDragOver: function(evt,flavour,session) { @@ -495,6 +495,7 @@ var boardObserver= var stunde=evt.target.getAttribute("stunde"); var new_datum=evt.target.getAttribute("datum"); + if (evt.target.tagName=="label") { var new_ort=evt.target.getAttribute("ort_kurzbz"); diff --git a/content/lvplanung/stpl-details-overlay.xul.php b/content/lvplanung/stpl-details-overlay.xul.php index 55d069d6d..d29d395b0 100644 --- a/content/lvplanung/stpl-details-overlay.xul.php +++ b/content/lvplanung/stpl-details-overlay.xul.php @@ -44,10 +44,10 @@ echo ''; - + - +