From 65ba94632151fcd7437979cb1bda357a6a096111 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Wed, 22 Jun 2022 09:39:53 +0200 Subject: [PATCH 1/5] Rework Studienplan->getStudienplanLehrveranstaltung for Templates & use it in Vilesci "Lehrveranstaltung" --- include/studienplan.class.php | 33 ++++++++++++++------- vilesci/lehre/lehrveranstaltung_details.php | 18 ++++------- 2 files changed, 28 insertions(+), 23 deletions(-) diff --git a/include/studienplan.class.php b/include/studienplan.class.php index 7e9963c0a..f180733fe 100644 --- a/include/studienplan.class.php +++ b/include/studienplan.class.php @@ -952,21 +952,34 @@ class studienplan extends basis_db /** * Laedt die Studienplaene zu denen eine Lehrveranstaltung zugeordnet ist */ - public function getStudienplanLehrveranstaltung($lehrveranstaltung_id, $studiensemester_kurzbz) + public function getStudienplanLehrveranstaltung($lehrveranstaltung_id, $studiensemester_kurzbz = null) { $qry= " SELECT - distinct tbl_studienplan.* + DISTINCT tbl_studienplan.* FROM - lehre.tbl_studienplan - JOIN lehre.tbl_studienplan_lehrveranstaltung USING(studienplan_id) + lehre.tbl_studienplan + JOIN lehre.tbl_studienplan_lehrveranstaltung + USING(studienplan_id) WHERE - tbl_studienplan_lehrveranstaltung.lehrveranstaltung_id=".$this->db_add_param($lehrveranstaltung_id, FHC_INTEGER)." - AND EXISTS ( - SELECT 1 FROM lehre.tbl_studienplan_semester - WHERE studienplan_id=tbl_studienplan.studienplan_id - AND studiensemester_kurzbz=".$this->db_add_param($studiensemester_kurzbz)." - AND semester = tbl_studienplan_lehrveranstaltung.semester) + tbl_studienplan_lehrveranstaltung.lehrveranstaltung_id IN ( + SELECT + lv.lehrveranstaltung_id + FROM + lehre.tbl_lehrveranstaltung AS lv + LEFT JOIN lehre.tbl_lehrveranstaltung AS t ON t.lehrveranstaltung_id=lv.lehrveranstaltung_template_id + WHERE + lv.lehrtyp_kurzbz<>'tpl' + AND (lv.lehrveranstaltung_id=" . $this->db_add_param($lehrveranstaltung_id, FHC_INTEGER) . " OR (lv.lehrveranstaltung_template_id=" . $this->db_add_param($lehrveranstaltung_id, FHC_INTEGER) . " AND t.lehrtyp_kurzbz='tpl')) + ) + AND EXISTS ( + SELECT 1 + FROM + lehre.tbl_studienplan_semester + WHERE studienplan_id=tbl_studienplan.studienplan_id". + ($studiensemester_kurzbz != null ? " + AND studiensemester_kurzbz=".$this->db_add_param($studiensemester_kurzbz) : "")." + AND semester = tbl_studienplan_lehrveranstaltung.semester) ORDER BY bezeichnung"; if($result = $this->db_query($qry)) diff --git a/vilesci/lehre/lehrveranstaltung_details.php b/vilesci/lehre/lehrveranstaltung_details.php index 2b3b6a04c..ca683690a 100644 --- a/vilesci/lehre/lehrveranstaltung_details.php +++ b/vilesci/lehre/lehrveranstaltung_details.php @@ -29,6 +29,7 @@ require_once('../../include/lehrtyp.class.php'); require_once('../../include/lehrmodus.class.php'); require_once('../../include/benutzerberechtigung.class.php'); + require_once('../../include/studienplan.class.php'); if (!$db = new basis_db()) die('Es konnte keine Verbindung zum Server aufgebaut werden.'); @@ -508,19 +509,10 @@ } $htmlstr.='
Verwendung in folgenden Studienplänen: '; - $qry ="SELECT distinct tbl_studienplan.bezeichnung - FROM - lehre.tbl_studienplan_lehrveranstaltung - JOIN lehre.tbl_studienplan USING(studienplan_id) - WHERE lehrveranstaltung_id=".$db->db_add_param($lv->lehrveranstaltung_id).' - ORDER BY tbl_studienplan.bezeichnung desc'; - if($result = $db->db_query($qry)) - { - while($row = $db->db_fetch_object($result)) - { - $htmlstr.= $row->bezeichnung.'; '; - } - } + $stdplan = new studienplan(); + if ($stdplan->getStudienplanLehrveranstaltung($lv->lehrveranstaltung_id)) + foreach($stdplan->result as $result) + $htmlstr .= $result->bezeichnung . "; "; $htmlstr.=''; // Details Ende From 2ab548fc87ca4254d57ed7b418eb1fb27a627d05 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Mon, 26 Sep 2022 09:46:16 +0200 Subject: [PATCH 2/5] - absagegrund wird nun mitgespeichert - neue filter - studiengangsleitung kann bestaetigung nur noch ablehnen und nicht loeschen - neue cronjobs - neue formatierung - neue phrasen --- system/phrasesupdate.php | 212 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 206 insertions(+), 6 deletions(-) diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index 9e0a87b6e..f7cc6bc74 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -16426,13 +16426,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Wollen Sie die ausgewählte Maßnahme wirklich löschen?', + 'text' => 'Plan ablehnen', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Do you really want to delete the measure?', + 'text' => 'Reject plan', 'description' => '', 'insertvon' => 'system' ) @@ -16446,13 +16446,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Wollen Sie die Bestätigung wirklich widerrufen?', + 'text' => 'Bestätigung widerrufen', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Do you really want to cancel the confirmation?', + 'text' => 'Revoke confirmation', 'description' => '', 'insertvon' => 'system' ) @@ -16706,13 +16706,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Plan - abgelehnt', + 'text' => 'Maßnahmen - abgelehnt', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Plan - declined', + 'text' => 'Measures - declined', 'description' => '', 'insertvon' => 'system' ) @@ -16758,6 +16758,206 @@ array( ) ) ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'bestaetigungAblehnen', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Bestätigung ablehnen', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Reject confirmation', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'grund', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Grund', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Reason', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'anmerkungstgl', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Anmerkung - Studiengangsleitung', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Note - Study course Director', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'mehrverplant', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => '>=5 ECTS verplant', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => '>=5 ECTS planned', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'wenigerverplant', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => '<5 ECTS verplant', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => '<5 ECTS planned', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'mehrbestaetigt', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => '>=5 ECTS bestätigt', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => '>=5 ECTS confirmed', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'wenigerbestaetigt', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => '<5 ECTS bestätigt', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => '<5 ECTS confirmed', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'alleAkzeptierenPlan', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Alle markierten Pläne akzeptieren', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Accept all marked plans', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'downloadBestaetigung', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Bestätigung herunterladen', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Download confirmation', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'addMassnahme', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Maßnahme hinzufügen', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Add measure', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), array( 'app' => 'core', 'category' => 'gruppenmanagement', From 9e32330a6cd80a7c27a56b5e0d9813d89387c2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Thu, 29 Sep 2022 10:35:21 +0200 Subject: [PATCH 3/5] =?UTF-8?q?Paragraph=20f=C3=BCr=20Plagiatscheck=20ange?= =?UTF-8?q?passt=20bei=20Beurteilungsformularen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/phrasesupdate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index 9e0a87b6e..29fa236fb 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -8740,13 +8740,13 @@ Any unusual occurrences 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Der Plagiatscheck wurde durchgeführt und bestätigt, dass der zentrale Inhalt der Arbeit im erforderlichen Ausmaß eigenständig verfasst wurde (vgl. Satzungsteil Studienrechtliche Bestimmungen / Prüfungsordnung, § 18 Abs. 2 und 3).', + 'text' => 'Der Plagiatscheck wurde durchgeführt und bestätigt, dass der zentrale Inhalt der Arbeit im erforderlichen Ausmaß eigenständig verfasst wurde (vgl. Satzungsteil Studienrechtliche Bestimmungen / Prüfungsordnung, § 20 Abs. 2 und 3).', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'The plagiarism check has been carried out and confirms that the central content of the paper has been written independently to the required extent (cf. part of the Statutes on Studies Act Provisions / Examination Regulations, § 18 Para. 2 and 3).', + 'text' => 'The plagiarism check has been carried out and confirms that the central content of the paper has been written independently to the required extent (cf. part of the Statutes on Studies Act Provisions / Examination Regulations, § 20 Para. 2 and 3).', 'description' => '', 'insertvon' => 'system' ) From 3967494775d5b5fb9b340ba57848f2a0a1befcf2 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Fri, 30 Sep 2022 12:52:47 +0200 Subject: [PATCH 4/5] - typo gefixed --- vilesci/stammdaten/variablen_details.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vilesci/stammdaten/variablen_details.php b/vilesci/stammdaten/variablen_details.php index 1a9cd6056..b367dee1b 100644 --- a/vilesci/stammdaten/variablen_details.php +++ b/vilesci/stammdaten/variablen_details.php @@ -117,7 +117,7 @@ if(isset($_POST["schick"])) $variable=new variable(); if($variable->load($uid, $name)) - $varialbe->new = false; + $variable->new = false; else $variable->new = true; From 49124f31007e4452bd833b1049d59ecd9cbdf3cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 3 Oct 2022 15:22:32 +0200 Subject: [PATCH 5/5] Added JQueryUI css --- cis/private/lehre/lesson.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cis/private/lehre/lesson.php b/cis/private/lehre/lesson.php index 4d8c872a1..8ac751ba3 100644 --- a/cis/private/lehre/lesson.php +++ b/cis/private/lehre/lesson.php @@ -102,6 +102,7 @@ if (isset($_GET["handbuch"])){ +