diff --git a/application/controllers/jobs/AntragJob.php b/application/controllers/jobs/AntragJob.php index 131cfdced..0663be94b 100644 --- a/application/controllers/jobs/AntragJob.php +++ b/application/controllers/jobs/AntragJob.php @@ -306,11 +306,24 @@ class AntragJob extends JOB_Controller foreach ($prestudents as $prestudent) { - $result = $this->prestudentlib->setAbbrecher($prestudent->prestudent_id, $prestudent->studiensemester_kurzbz, $insertvon); - if (isError($result)) + $result = $this->StudierendenantragstatusModel->insert([ + 'studierendenantrag_id' => $prestudent->studierendenantrag_id, + 'studierendenantrag_statustyp_kurzbz' => Studierendenantragstatus_model::STATUS_DEREGISTERED, + 'insertvon' => 'AntragJob' + ]); + if (isError($result)) { $this->logError(getError($result)); - else - $count++; + } else { + $deregisterStatus = getData($result); + + $result = $this->prestudentlib->setAbbrecher($prestudent->prestudent_id, '', $insertvon); + if (isError($result)) { + $this->StudierendenantragstatusModel->delete($deregisterStatus); + $this->logError(getError($result)); + } else { + $count++; + } + } } $this->logInfo($count . " Students set to Abbrecher"); } diff --git a/application/libraries/PrestudentLib.php b/application/libraries/PrestudentLib.php index 989e14585..ae4ad59c6 100644 --- a/application/libraries/PrestudentLib.php +++ b/application/libraries/PrestudentLib.php @@ -74,7 +74,7 @@ class PrestudentLib $result = $this->_ci->PrestudentstatusModel->withGrund($statusgrund_kurzbz)->insert([ 'prestudent_id' => $prestudent_id, 'status_kurzbz' => Prestudentstatus_model::STATUS_ABBRECHER, - 'studiensemester_kurzbz' => $studiensemester_kurzbz, + 'studiensemester_kurzbz' => $prestudent_status->studiensemester_kurzbz, 'ausbildungssemester' => $prestudent_status->ausbildungssemester, 'datum' => $datum, 'insertvon' => $insertvon, @@ -135,7 +135,7 @@ class PrestudentLib } //noch nicht eingetragene Zeugnisnoten auf 9 setzen - $result = $this->_ci->ZeugnisnoteModel->getZeugnisnoten($student->student_uid, $studiensemester_kurzbz); + $result = $this->_ci->ZeugnisnoteModel->getZeugnisnoten($student->student_uid, $prestudent_status->studiensemester_kurzbz); if (isError($result)) return $result; $result = getData($result) ?: []; @@ -181,7 +181,7 @@ class PrestudentLib //Studentlehrverband setzen $this->_ci->StudentlehrverbandModel->update([ - 'studiensemester_kurzbz' => $studiensemester_kurzbz, + 'studiensemester_kurzbz' => $prestudent_status->studiensemester_kurzbz, 'student_uid' => $student->student_uid ], [ 'studiengang_kz' => $student->studiengang_kz, diff --git a/application/models/education/Pruefung_model.php b/application/models/education/Pruefung_model.php index 0d6ad4158..4debc3e28 100644 --- a/application/models/education/Pruefung_model.php +++ b/application/models/education/Pruefung_model.php @@ -164,6 +164,7 @@ class Pruefung_model extends DB_Model $this->addSelect('ps.prestudent_id'); $this->addSelect('lv.bezeichnung as lvbezeichnung'); $this->addSelect('le.studiensemester_kurzbz'); + $this->addSelect('a.studierendenantrag_id'); $this->addSelect('a.typ'); $this->addSelect('campus.get_status_studierendenantrag(a.studierendenantrag_id) status'); diff --git a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php index d018beda8..6c65559d9 100644 --- a/application/views/lehre/lehrauftrag/acceptLehrauftrag.php +++ b/application/views/lehre/lehrauftrag/acceptLehrauftrag.php @@ -142,14 +142,17 @@ $this->load->view(
- +
- p->t('dms' , 'informationsblattExterneLehrende'); ?> + p->t('ui' , 'hinweistextLehrauftrag'); ?> + + p->t('dms' , 'informationsblattExterneLehrende'); ?> +

- +
diff --git a/cis/index.php b/cis/index.php index 38af9f50d..d490a201a 100644 --- a/cis/index.php +++ b/cis/index.php @@ -215,7 +215,13 @@ function loadampel()
- + t('menu/sucheOrtDokumentInhalt'); + else + $searchText = $p->t('menu/suchePersonOrtDokumentInhalt'); + ?> +
diff --git a/cis/private/tools/suche.php b/cis/private/tools/suche.php index 54c912ae5..09d63b12a 100644 --- a/cis/private/tools/suche.php +++ b/cis/private/tools/suche.php @@ -126,6 +126,9 @@ if (!$searchPerson && !$searchOrt && !$searchDms && !$searchContent && !$searchO function searchPerson($searchItems) { + if (defined('CIS_ALLOW_PERSON_SEARCH') && !CIS_ALLOW_PERSON_SEARCH) + return false; + global $db, $p, $noalias, $uid; $bn = new benutzer(); //search only active and Mitarbeiter with positive Personalnr @@ -182,18 +185,13 @@ function searchPerson($searchItems) echo '',$row->vorname, ''; echo ''; - if(!defined('CIS_SUCHE_PROFIL_ANZEIGEN')) - echo '',$row->nachname,''; - else if(!CIS_SUCHE_PROFIL_ANZEIGEN) - { - $mitarbeiter = new Mitarbeiter($uid); - if($mitarbeiter->errormsg === NULL) - echo '',$row->nachname,''; - else + + $mitarbeiter = new Mitarbeiter(); + if (defined('CIS_SUCHE_PROFIL_ANZEIGEN') && CIS_SUCHE_PROFIL_ANZEIGEN === false && !$mitarbeiter->load($uid)) echo $row->nachname; - } else echo '',$row->nachname,''; + if($row->aktiv==false) echo ' (ausgeschieden)'; elseif(isKarenziert($row->uid)) diff --git a/cis/testtool/frage.php b/cis/testtool/frage.php index 9f6cd4fb7..0aa37b299 100644 --- a/cis/testtool/frage.php +++ b/cis/testtool/frage.php @@ -148,6 +148,30 @@ echo ' alert(t("testtool/alleFragenBeantwortet")."'"?>); return true; } + + $(document).ready(function () { + $(document).bind('cut copy paste', function(e) + { + if (document.querySelector('.frage')) + { + e.preventDefault(); + } + }); + + $(document).on("keydown", function (e) + { + if (((e.ctrlKey || e.metaKey) && e.keyCode === 85) || e.keyCode === 123) + { + e.preventDefault(); + } + }); + + $(document).on("contextmenu", function (e) + { + e.preventDefault(); + }); + + }); //]]> @@ -598,7 +622,7 @@ if($frage->frage_id!='') $display_well = $frage->nummer == 0 ? '' : 'well'; // don't style frage 0 because this is always the introduction to gebiet echo ' -
+
'. $frage->text. '
diff --git a/cis/testtool/gebietfertig.php b/cis/testtool/gebietfertig.php index d8f9982d0..cf0a86ae2 100644 --- a/cis/testtool/gebietfertig.php +++ b/cis/testtool/gebietfertig.php @@ -50,9 +50,22 @@ $p = new phrasen($sprache_user); - + +




t('testtool/zeitAbgelaufen');?>

diff --git a/cis/testtool/login.php b/cis/testtool/login.php index 475ee9f00..d1944fe7a 100644 --- a/cis/testtool/login.php +++ b/cis/testtool/login.php @@ -426,6 +426,26 @@ if (isset($_POST['save']) && isset($_SESSION['prestudent_id'])) });'; ?> + $(document).bind('cut copy paste', function(e) + { + if (document.querySelector('.frage')) + { + e.preventDefault(); + } + }); + + $(document).on("keydown", function (e) + { + if (((e.ctrlKey || e.metaKey) && e.keyCode === 85) || e.keyCode === 123) + { + e.preventDefault(); + } + }); + + $(document).on("contextmenu", function (e) + { + e.preventDefault(); + }); // If Browser is any other than Mozilla Firefox and the test includes any MathML, // show message to use Mozilla Firefox var ua = navigator.userAgent; diff --git a/cis/testtool/menu.php b/cis/testtool/menu.php index 11fbc61d5..7c8b12b9d 100644 --- a/cis/testtool/menu.php +++ b/cis/testtool/menu.php @@ -414,7 +414,17 @@ else + +




t('testtool/prueflingGesperrt');?>

diff --git a/cis/testtool/topbar.php b/cis/testtool/topbar.php index 8432d4f41..7ca218ede 100644 --- a/cis/testtool/topbar.php +++ b/cis/testtool/topbar.php @@ -71,6 +71,18 @@ function changeSprache(sprache) parent.menu.location.href = parent.menu.location.pathname + '?sprache_user=' + sprache; // refreshes menu.php parent.content.location.href = parent.content.location.pathname + '?' + content_params; // refreshes login.php or frage.php } + + $(document).on("keydown", function (e) { + if (((e.ctrlKey || e.metaKey) && e.keyCode === 85) || e.keyCode === 123) + { + e.preventDefault(); + } + }); + + $(document).on("contextmenu", function (e) + { + e.preventDefault(); + });
diff --git a/vilesci/stammdaten/statistik_details.php b/vilesci/stammdaten/statistik_details.php index 8ad12dc0b..867766fa3 100644 --- a/vilesci/stammdaten/statistik_details.php +++ b/vilesci/stammdaten/statistik_details.php @@ -1,261 +1,279 @@ - - * Andreas Oesterreicher < andreas.oesterreicher@technikum-wien.at > - * Karl Burkhart < burkhart@technikum-wien.at > - */ -/** - * Seite zur Wartung der Statistiken - */ -require_once('../../config/vilesci.config.inc.php'); -require_once('../../include/statistik.class.php'); -require_once('../../include/benutzerberechtigung.class.php'); -require_once('../../include/berechtigung.class.php'); -require_once('../../include/functions.inc.php'); - -if(!$db = new basis_db()) -{ - die('Es konnte keine Verbindung zum Server aufgebaut werden.'); -} - -$user = get_uid(); - -$rechte = new benutzerberechtigung(); -$rechte->getBerechtigungen($user); - -if(!$rechte->isBerechtigt('basis/statistik', null, 'suid')) - die('Sie haben keine Berechtigung fuer diese Seite'); -?> - - - - Statistik - Details - - - - - - - - load($statistik_kurzbz); - } - else - { - $statistik_kurzbz = filter_input(INPUT_POST, 'statistik_kurzbz'); - $exists = false; - $statistik->berechtigung_kurzbz='addon/reports'; - } - - if(isset($_POST['save'])) - { - $statistik_kurzbz_orig = (isset($_POST['statistik_kurzbz_orig']) ? $_POST['statistik_kurzbz_orig'] : die('Statistik_kurzbz_orig fehlt')); - $bezeichnung = (isset($_POST['bezeichnung']) ? $_POST['bezeichnung'] : die('Bezeichnung fehlt')); - $url = (isset($_POST['url']) ? $_POST['url'] : die('URL fehlt')); - $sql = (isset($_POST['sql']) ? $_POST['sql'] : die('SQL fehlt')); - $gruppe = (isset($_POST['gruppe']) ? $_POST['gruppe'] : die('Gruppe fehlt')); - $content_id = (isset($_POST['content_id']) ? $_POST['content_id'] : die('ContentID fehlt')); - $publish = (isset($_POST['publish']) ? true : false); - $berechtigung_kurzbz = (isset($_POST['berechtigung_kurzbz']) ? $_POST['berechtigung_kurzbz'] : die('Berechtigungkurzbz fehlt')); - $preferences = (isset($_POST['preferences']) ? $_POST['preferences'] : die('preferences fehlt')); - - if(!$exists) - { - $statistik->insertamum = date('Y-m-d H:i:s'); - $statistik->insertvon = $user; - $statistik->new = true; - } - - $statistik->statistik_kurzbz = $statistik_kurzbz; - $statistik->statistik_kurzbz_orig = $statistik_kurzbz_orig; - $statistik->bezeichnung = $bezeichnung; - $statistik->url = $url; - $statistik->sql = $sql; - $statistik->gruppe = $gruppe; - $statistik->content_id = $content_id; - $statistik->publish = $publish; - $statistik->updateamum = date('Y-m-d H:i:s'); - $statistik->updatevon = $user; - $statistik->berechtigung_kurzbz = $berechtigung_kurzbz; - $statistik->preferences = $preferences; - - // Check if the SQL string contains functions to decrypt data and if there are - // variables to replace the value of the password (no clear password wanted!) - if (isSQLDecryptionValid($statistik->sql)) - { - $success = $statistik->save(); - - if($success): - ?> - Daten erfolgreich gespeichert - - - errormsg ?> - - - preferences); - - if(empty($preferences)) - { - $statistik->preferences = << -
-
- new === false): ?> - Bearbeiten - - - Neu - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
KurzbzGruppe
BezeichnungContentID - content_id)): ?> - -  ContentID content_id?> bearbeiten - - - -
URLBerechtigung - getBerechtigungen(); - ?> - -
SQL
Publishpublish ? 'checked="checked"' : '' ?>>
Preferences
-
-
- -
-
- - + + * Andreas Oesterreicher < andreas.oesterreicher@technikum-wien.at > + * Karl Burkhart < burkhart@technikum-wien.at > + */ +/** + * Seite zur Wartung der Statistiken + */ +require_once('../../config/vilesci.config.inc.php'); +require_once('../../include/statistik.class.php'); +require_once('../../include/benutzerberechtigung.class.php'); +require_once('../../include/berechtigung.class.php'); +require_once('../../include/functions.inc.php'); + +if(!$db = new basis_db()) +{ + die('Es konnte keine Verbindung zum Server aufgebaut werden.'); +} + +$user = get_uid(); + +$rechte = new benutzerberechtigung(); +$rechte->getBerechtigungen($user); + +if(!$rechte->isBerechtigt('basis/statistik', null, 'suid')) + die('Sie haben keine Berechtigung fuer diese Seite'); +?> + + + + Statistik - Details + + + + + + + + load($statistik_kurzbz); + } + else + { + $statistik_kurzbz = filter_input(INPUT_POST, 'statistik_kurzbz'); + $exists = false; + $statistik->berechtigung_kurzbz='addon/reports'; + } + + if(isset($_POST['save'])) + { + $statistik_kurzbz_orig = (isset($_POST['statistik_kurzbz_orig']) ? $_POST['statistik_kurzbz_orig'] : die('Statistik_kurzbz_orig fehlt')); + $bezeichnung = (isset($_POST['bezeichnung']) ? $_POST['bezeichnung'] : die('Bezeichnung fehlt')); + $url = (isset($_POST['url']) ? $_POST['url'] : die('URL fehlt')); + $sql = (isset($_POST['sql']) ? $_POST['sql'] : die('SQL fehlt')); + $gruppe = (isset($_POST['gruppe']) ? $_POST['gruppe'] : die('Gruppe fehlt')); + $content_id = (isset($_POST['content_id']) ? $_POST['content_id'] : die('ContentID fehlt')); + $publish = (isset($_POST['publish']) ? true : false); + $berechtigung_kurzbz = (isset($_POST['berechtigung_kurzbz']) ? $_POST['berechtigung_kurzbz'] : die('Berechtigungkurzbz fehlt')); + $preferences = (isset($_POST['preferences']) ? $_POST['preferences'] : die('preferences fehlt')); + + if(!$exists) + { + $statistik->insertamum = date('Y-m-d H:i:s'); + $statistik->insertvon = $user; + $statistik->new = true; + } + + $statistik->statistik_kurzbz = $statistik_kurzbz; + $statistik->statistik_kurzbz_orig = $statistik_kurzbz_orig; + $statistik->bezeichnung = $bezeichnung; + $statistik->url = $url; + $statistik->sql = $sql; + $statistik->gruppe = $gruppe; + $statistik->content_id = $content_id; + $statistik->publish = $publish; + $statistik->updateamum = date('Y-m-d H:i:s'); + $statistik->updatevon = $user; + $statistik->berechtigung_kurzbz = $berechtigung_kurzbz; + $statistik->preferences = $preferences; + + // Check if the SQL string contains functions to decrypt data and if there are + // variables to replace the value of the password (no clear password wanted!) + if (isSQLDecryptionValid($statistik->sql)) + { + $success = $statistik->save(); + + if($success): + ?> + Daten erfolgreich gespeichert + + + errormsg ?> + + + preferences); + + if(empty($preferences)) + { + $statistik->preferences = << +
+
+ new === false): ?> + Bearbeiten - + + Neu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KurzbzGruppe
BezeichnungContentID + content_id)): ?> + +  ContentID content_id?> bearbeiten + + + +
URLBerechtigung + getBerechtigungen(); + ?> + +
SQL
Publishpublish ? 'checked="checked"' : '' ?>>
Preferences
+
+
+ +
+
+ +