From 9ba6f3b538b123c67ee7d3a045816ed0b3e656d6 Mon Sep 17 00:00:00 2001 From: Cris Date: Tue, 2 Mar 2021 15:44:46 +0100 Subject: [PATCH 1/3] Fixed HTML code appearing within mail message body . by breaking lines with \n . using nowrap to avoid breaking text Signed-off-by: cris-technikum --- content/statistik/bewerberstatistik.php | 36 ++++++++++++++----------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/content/statistik/bewerberstatistik.php b/content/statistik/bewerberstatistik.php index 932a8c6cb..47e5dd0ec 100644 --- a/content/statistik/bewerberstatistik.php +++ b/content/statistik/bewerberstatistik.php @@ -1733,6 +1733,7 @@ else $content .= ""; $content .= ''; + $content .= "\n"; } //Aufsplittungen für Mischformen holen @@ -1744,28 +1745,32 @@ else { if ($db->db_num_rows($result) > 0) { - $content .= "

Aufsplittung Mischformen


"; - $content .= "\n - - - "; + $content .= "

"; + $content .= "

Aufsplittung Mischformen


"; + $content .= "\n
Studiengang
"; + $content .= "\n"; + $content .= "\n"; + $content .= "\n"; foreach ($studenttypes as $heading) { - $content .= ""; + $content .= "\n"; } - $content .= ""; + $content .= "\n"; + $content .= "\n\n"; //orgformheadings (VZ, BB,...) ausgeben for ($i = 0; $i < $noStudenttypes; $i++) { foreach ($orgform_arr as $row_orgform) { - $content .= ""; } } - $content .= ""; + $content .= "\n"; + $content .= "\n"; + $content .= "\n"; $sumarr = array(); @@ -1773,13 +1778,13 @@ else { $content .= "\n"; $content .= ''; - $content .= ""; + $content .= "\n"; foreach ($studenttypes as $key => $value) { foreach ($orgform_arr as $row_orgform) { $fullAlias = $key."_".mb_strtolower($row_orgform); - $content .= ""; //Summe berechnen @@ -1794,14 +1799,15 @@ else } } } - $content .= ""; + $content .= "\n"; $content .= "\n"; - $content .= ''; - $content .= ""; + $content .= ""; + $content .= ''; + $content .= "\n"; foreach ($sumarr as $sum) { - $content .= ""; + $content .= "\n"; } $content .= ""; $content .= '
Studiengang$heading$heading
 
"; + $content .= "\n"; $content .= $row_orgform; $content .= "
".mb_strtoupper($row->typ.$row->kurzbz)." ($row->kurzbzlang)".mb_strtoupper($row->typ.$row->kurzbz)." ($row->kurzbzlang)"; + $content .= "\n"; $content .= $row->{$fullAlias}; $content .= "
Summe
Summe".$sum."".$sum."
'; From 989772402df998d21c030ca2e2ff7cf5fe771f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 23 Mar 2021 08:38:55 +0100 Subject: [PATCH 2/3] =?UTF-8?q?LVA-Liste=20pr=C3=BCft=20die=20Vertragszuor?= =?UTF-8?q?dnung=20jetzt=20pro=20Lehreinheit=20statt=20pro=20LV?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cis/private/profile/lva_liste.php | 2 +- include/vertrag.class.php | 77 +++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 1 deletion(-) diff --git a/cis/private/profile/lva_liste.php b/cis/private/profile/lva_liste.php index f2d175dbf..4b0cedc02 100644 --- a/cis/private/profile/lva_liste.php +++ b/cis/private/profile/lva_liste.php @@ -217,7 +217,7 @@ if ($num_rows > 0) && CIS_LV_LEKTORINNENZUTEILUNG_VERTRAGSPRUEFUNG_VON != '') { $vertrag = new vertrag(); - if (!$vertrag->isVertragErteiltLV($row->lehrveranstaltung_id, $stdsem, $user)) + if (!$vertrag->isVertragErteiltLE($row->lehreinheit_id, $stdsem, $user)) { continue; } diff --git a/include/vertrag.class.php b/include/vertrag.class.php index 37c2fc9e2..1d9ec364b 100644 --- a/include/vertrag.class.php +++ b/include/vertrag.class.php @@ -1245,5 +1245,82 @@ class vertrag extends basis_db return false; } } + + /** + * Prueft ob ein Mitarbeiter einen erteilten Vertrag zu einer Lehreinheit besitzt. + * @param $lehreinheit ID der Lehreinheit + * @param $studiensemester_kurzbz Studiensemester das geprueft wird + * @param $mitarbeiter_uid UID des Mitarbeiters + */ + public function isVertragErteiltLE($lehreinheit_id, $studiensemester_kurzbz, $mitarbeiter_uid) + { + if (defined('CIS_LV_LEKTORINNENZUTEILUNG_VERTRAGSPRUEFUNG_VON') + && CIS_LV_LEKTORINNENZUTEILUNG_VERTRAGSPRUEFUNG_VON != '') + { + // Liegt das Studiensemester vor dem Pruefdatum, wird die LV immer als Erteilt angezeigt + $qry = " + SELECT + tbl_studiensemester.start + FROM + public.tbl_studiensemester + WHERE + studiensemester_kurzbz=".$this->db_add_param($studiensemester_kurzbz)." + AND tbl_studiensemester.start < (SELECT start + FROM public.tbl_studiensemester stsem WHERE + stsem.studiensemester_kurzbz=".$this->db_add_param(CIS_LV_LEKTORINNENZUTEILUNG_VERTRAGSPRUEFUNG_VON)." + )"; + + if ($result = $this->db_query($qry)) + { + if ($this->db_num_rows($result)>0) + { + // Wenn das Studiensemester vor dem Pruefdatum liegt, gilt der Vertrag immer als erteilt. + return true; + } + } + else + { + $this->errormsg = 'Fehler beim Laden des Studiensemesters'; + return false; + } + } + + $qry = " + SELECT + 1 + FROM + lehre.tbl_lehreinheitmitarbeiter + JOIN lehre.tbl_lehreinheit USING(lehreinheit_id) + JOIN lehre.tbl_vertrag USING(vertrag_id) + JOIN lehre.tbl_vertrag_vertragsstatus USING(vertrag_id) + WHERE + tbl_lehreinheitmitarbeiter.mitarbeiter_uid=".$this->db_add_param($mitarbeiter_uid)." + AND tbl_lehreinheit.studiensemester_kurzbz=".$this->db_add_param($studiensemester_kurzbz)." + AND tbl_lehreinheit.lehreinheit_id=".$this->db_add_param($lehreinheit_id)." + AND tbl_vertrag_vertragsstatus.vertragsstatus_kurzbz='erteilt' + AND NOT EXISTS( + SELECT 1 FROM lehre.tbl_vertrag_vertragsstatus vstatus + WHERE vstatus.vertrag_id = tbl_vertrag.vertrag_id + AND vstatus.vertragsstatus_kurzbz='storno' + ) + "; + + if ($result = $this->db_query($qry)) + { + if ($this->db_num_rows($result) > 0) + { + return true; + } + else + { + return false; + } + } + else + { + $this->errormsg = 'Fehler beim Laden der Daten'; + return false; + } + } } ?> From 10441baff3491f8b18f1fa1af6c24eb3aac58d85 Mon Sep 17 00:00:00 2001 From: ma0048 Date: Tue, 23 Mar 2021 09:34:49 +0100 Subject: [PATCH 3/3] sortierung anhand kurztext --- application/widgets/Nation_widget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/widgets/Nation_widget.php b/application/widgets/Nation_widget.php index 94a028ba7..7e0c9d47b 100644 --- a/application/widgets/Nation_widget.php +++ b/application/widgets/Nation_widget.php @@ -6,7 +6,7 @@ class Nation_widget extends DropdownWidget { // Nation $this->load->model('codex/Nation_model', 'NationModel'); - $this->NationModel->addOrder('nation_code'); + $this->NationModel->addOrder('kurztext'); $this->addSelectToModel($this->NationModel, 'nation_code', 'kurztext');