From 30c42458613abad589797bd85d86f5ffe797c535 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Thu, 27 Feb 2025 08:35:05 +0100 Subject: [PATCH] - international skills -> diplomasupp - notenuebernahme mail - student uebersicht ueberarbeitet - phrases angepasst --- rdf/diplomasupplement.xml.php | 52 +++++++++++++++++++++++++++++++++++ system/phrasesupdate.php | 36 ++++++++++++++++++------ 2 files changed, 80 insertions(+), 8 deletions(-) diff --git a/rdf/diplomasupplement.xml.php b/rdf/diplomasupplement.xml.php index 189aa0c05..41d046a99 100644 --- a/rdf/diplomasupplement.xml.php +++ b/rdf/diplomasupplement.xml.php @@ -386,6 +386,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") echo ' '.$titel_en.''; $praktikum = false; $auslandssemester = false; + $internationalskills = false; $qry = "SELECT projektarbeit_id FROM @@ -403,6 +404,56 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") } } + if ($row->typ === 'b') + { + //check if extension international skills is active + $qry = "SELECT 1 + FROM information_schema.tables + WHERE table_schema = 'extension' AND table_name = 'tbl_internat_massnahme'"; + + if($result = $db->db_query($qry)) + { + if ($db->db_num_rows($result) === 1) + { + $qry = "SELECT bezeichnung_mehrsprachig[1] as \"internationalskill_deutsch\", + bezeichnung_mehrsprachig[2] as \"internationalskill_english\" + FROM extension.tbl_internat_massnahme_zuordnung zuordnung + JOIN extension.tbl_internat_massnahme massnahme ON zuordnung.massnahme_id = massnahme.massnahme_id + JOIN extension.tbl_internat_massnahme_zuordnung_status zstatus ON zuordnung.massnahme_zuordnung_id = zstatus.massnahme_zuordnung_id + JOIN tbl_prestudent ON zuordnung.prestudent_id = tbl_prestudent.prestudent_id + JOIN tbl_student ON tbl_prestudent.prestudent_id = tbl_student.prestudent_id + WHERE zstatus.massnahme_status_kurzbz = 'confirmed' + AND tbl_student.student_uid = ".$db->db_add_param($uid_arr[$i])." + AND zstatus.massnahme_zuordnung_status_id = ( + SELECT MAX(sub_zstatus.massnahme_zuordnung_status_id) + FROM extension.tbl_internat_massnahme_zuordnung_status sub_zstatus + WHERE sub_zstatus.massnahme_zuordnung_id = zuordnung.massnahme_zuordnung_id + ) + GROUP BY zuordnung.massnahme_zuordnung_id, tbl_student.student_uid, tbl_prestudent.prestudent_id, tbl_prestudent.studiengang_kz, bezeichnung_mehrsprachig;"; + + if($db->db_query($qry)) + { + if($db->db_num_rows() > 0) + { + $internationalskills = true; + echo ""; + while($row1 = $db->db_fetch_object()) + { + echo ""; + echo "internationalskill_deutsch]]>"; + echo ""; + + echo ""; + echo "internationalskill_english]]>"; + echo ""; + } + echo ""; + } + } + } + } + } + $qry = "SELECT tbl_bisio.bisio_id, von, bis, lehreinheit_id, (SELECT STRING_AGG ( tbl_zweck.bezeichnung, @@ -461,6 +512,7 @@ if (isset($_REQUEST["xmlformat"]) && $_REQUEST["xmlformat"] == "xml") $abschlusspruefungsdatum = ''; $abschlussbeurteilung=''; $pruefungstyp_kurzbz=''; + $abschlussbeurteilung_deutsch = ''; if($db->db_query($qry)) { diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index 2eb88bc9c..e6acc4854 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -19211,13 +19211,33 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Maßnahmen - geplant', + 'text' => 'Maßnahme - geplant', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Measures - planned', + 'text' => 'Measure - planned', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'international', + 'category' => 'international', + 'phrase' => 'geplanteMassnahmenDesc', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Die Maßhname wurde geplant.', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'The measure was planned.', 'description' => '', 'insertvon' => 'system' ) @@ -19271,13 +19291,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Maßnahmen - durchgeführt', + 'text' => 'Maßnahme - durchgeführt', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Measures - performed', + 'text' => 'Measure - performed', 'description' => '', 'insertvon' => 'system' ) @@ -19311,13 +19331,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Maßnahmen - abgelehnt', + 'text' => 'Maßnahme - abgelehnt', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Measures - declined', + 'text' => 'Measure - declined', 'description' => '', 'insertvon' => 'system' ) @@ -19411,13 +19431,13 @@ array( 'phrases' => array( array( 'sprache' => 'German', - 'text' => 'Anmerkung - Studiengangsleitung', + 'text' => 'Begründung - Studiengangsleitung', 'description' => '', 'insertvon' => 'system' ), array( 'sprache' => 'English', - 'text' => 'Note - Study course Director', + 'text' => 'Reason - Study course Director', 'description' => '', 'insertvon' => 'system' )