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(
-
+
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()
|
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 '
-
+
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/content/student/studentabschlusspruefungoverlay.xul.php b/content/student/studentabschlusspruefungoverlay.xul.php
index f24500275..90ca765d8 100644
--- a/content/student/studentabschlusspruefungoverlay.xul.php
+++ b/content/student/studentabschlusspruefungoverlay.xul.php
@@ -194,17 +194,27 @@ echo '';
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/content/student/studentnotenoverlay.xul.php b/content/student/studentnotenoverlay.xul.php
index 241bdf616..e766d33f3 100644
--- a/content/student/studentnotenoverlay.xul.php
+++ b/content/student/studentnotenoverlay.xul.php
@@ -346,15 +346,25 @@ echo "
diff --git a/content/student/studentprojektarbeitoverlay.xul.php b/content/student/studentprojektarbeitoverlay.xul.php
index 834fbc329..7f08666c1 100644
--- a/content/student/studentprojektarbeitoverlay.xul.php
+++ b/content/student/studentprojektarbeitoverlay.xul.php
@@ -279,14 +279,24 @@ $is_hidden = (!defined('FAS_STUDIERENDE_PROJEKTARBEIT_VERTRAGSDETAILS_ANZEIGEN')
@@ -483,14 +493,24 @@ $is_hidden = (!defined('FAS_STUDIERENDE_PROJEKTARBEIT_VERTRAGSDETAILS_ANZEIGEN')
diff --git a/content/student/studentpruefungoverlay.xul.php b/content/student/studentpruefungoverlay.xul.php
index 216a22756..2c2a3970a 100644
--- a/content/student/studentpruefungoverlay.xul.php
+++ b/content/student/studentpruefungoverlay.xul.php
@@ -216,14 +216,24 @@ echo '';
diff --git a/include/mitarbeiter.class.php b/include/mitarbeiter.class.php
index b7d56bd3d..bb2a7b478 100644
--- a/include/mitarbeiter.class.php
+++ b/include/mitarbeiter.class.php
@@ -1086,12 +1086,33 @@ class mitarbeiter extends benutzer
funktion_kurzbz='Leitung' AND
(datum_von is null OR datum_von<=now()) AND
(datum_bis is null OR datum_bis>=now()) AND
- oe_kurzbz in (SELECT oe_kurzbz
- FROM public.tbl_benutzerfunktion
- WHERE
+ oe_kurzbz in (
+ SELECT
+ oe_kurzbz
+ FROM
+ public.tbl_benutzerfunktion
+ WHERE
funktion_kurzbz='oezuordnung' AND uid=".$this->db_add_param($uid)." AND
(datum_von is null OR datum_von<=now()) AND
(datum_bis is null OR datum_bis>=now())
+ ORDER BY
+ (
+ SELECT
+ 1
+ FROM
+ hr.tbl_vertragsbestandteil_funktion
+ JOIN hr.tbl_vertragsbestandteil vbsfkt USING(vertragsbestandteil_id)
+ JOIN hr.tbl_vertragsbestandteil vbskarenz USING(dienstverhaeltnis_id)
+ WHERE
+ tbl_vertragsbestandteil_funktion.benutzerfunktion_id=tbl_benutzerfunktion.benutzerfunktion_id
+ AND vbskarenz.vertragsbestandteiltyp_kurzbz='karenz'
+ AND
+ (
+ now()::date BETWEEN COALESCE(vbskarenz.von, '1970-01-01') AND COALESCE(vbskarenz.bis, '2170-12-31')
+ OR
+ now()::date BETWEEN COALESCE(vbskarenz.von, '1970-01-01') AND COALESCE(vbskarenz.bis, '2170-12-31')
+ )
+ ) NULLS FIRST LIMIT 1
)
ORDER BY datum_von DESC ";
@@ -1120,6 +1141,138 @@ class mitarbeiter extends benutzer
return $return;
}
+ /**
+ * Prueft ob eine Person im angegebenen Zeitraum Vorgesetzter von einem Mitarbeiter ist
+ * @param $leiter UID der zu pruefenden Leitungsposition
+ * @param $mitarbeiter UID der zu pruefenden Leitungsposition
+ * @param $datumvon Von Datum des zu pruefenden Zeitraums
+ * @param $datumbis BIS Datum des zu pruefenden Zeitraums
+ */
+ public function isVorgesetzterByDate($leiter, $mitarbeiter, $datumvon, $datumbis)
+ {
+ // Alle OEs der zu pruefenden Leitungsposition holen (oes_leitung)
+ // Alle OEs des zu pruefenden Mitarbeiters holen (oes_mitarbeiter)
+ // OE-Ueberschneidungen pruefen
+
+ $qry = "
+ WITH RECURSIVE
+ oes_leitung (oe_kurzbz, oe_parent_kurzbz, level) AS
+ (
+ SELECT
+ oe_kurzbz,
+ oe_parent_kurzbz,
+ 1 as level
+ FROM
+ public.tbl_organisationseinheit
+ WHERE
+ oe_kurzbz IN (
+
+ -- Leitung im Zeitraum X
+ SELECT oe_kurzbz FROM public.tbl_benutzerfunktion
+ WHERE
+ funktion_kurzbz='Leitung'
+ AND uid=".$this->db_add_param($leiter)."
+ AND
+ (
+ ".$this->db_add_param($datumvon)." BETWEEN COALESCE(tbl_benutzerfunktion.datum_von, '1970-01-01') AND COALESCE(tbl_benutzerfunktion.datum_bis, '2170-12-31')
+ OR
+ ".$this->db_add_param($datumbis)." BETWEEN COALESCE(tbl_benutzerfunktion.datum_von, '1970-01-01') AND COALESCE(tbl_benutzerfunktion.datum_bis, '2170-12-31')
+ )
+
+ )
+
+ UNION ALL
+
+ SELECT
+ o.oe_kurzbz,
+ o.oe_parent_kurzbz,
+ oes_leitung.level + 1 as level
+ FROM
+ public.tbl_organisationseinheit o, oes_leitung
+ WHERE
+ o.oe_parent_kurzbz = oes_leitung.oe_kurzbz
+ ),
+ oes_mitarbeiter (oe_kurzbz, oe_parent_kurzbz, level) AS
+ (
+ SELECT
+ oe_kurzbz,
+ oe_parent_kurzbz,
+ 1 as level
+ FROM
+ public.tbl_organisationseinheit
+ WHERE
+ oe_kurzbz IN (
+
+ -- OEZuordnung im Zeitraum X - bevorzugt nicht karenziert
+ SELECT oe_kurzbz FROM public.tbl_benutzerfunktion
+ WHERE
+ funktion_kurzbz='oezuordnung'
+ AND uid=".$this->db_add_param($mitarbeiter)."
+ AND (
+ ".$this->db_add_param($datumvon)." BETWEEN COALESCE(tbl_benutzerfunktion.datum_von, '1970-01-01') AND COALESCE(tbl_benutzerfunktion.datum_bis, '2170-12-31')
+ OR
+ ".$this->db_add_param($datumbis)." BETWEEN COALESCE(tbl_benutzerfunktion.datum_von, '1970-01-01') AND COALESCE(tbl_benutzerfunktion.datum_bis, '2170-12-31')
+ )
+ ORDER BY
+ (
+ SELECT
+ 1
+ FROM
+ hr.tbl_vertragsbestandteil_funktion
+ JOIN hr.tbl_vertragsbestandteil vbsfkt USING(vertragsbestandteil_id)
+ JOIN hr.tbl_vertragsbestandteil vbskarenz USING(dienstverhaeltnis_id)
+ WHERE
+ tbl_vertragsbestandteil_funktion.benutzerfunktion_id=tbl_benutzerfunktion.benutzerfunktion_id
+ AND vbskarenz.vertragsbestandteiltyp_kurzbz='karenz'
+ AND
+ (
+ ".$this->db_add_param($datumvon)." BETWEEN COALESCE(vbskarenz.von, '1970-01-01') AND COALESCE(vbskarenz.bis, '2170-12-31')
+ OR
+ ".$this->db_add_param($datumbis)." BETWEEN COALESCE(vbskarenz.von, '1970-01-01') AND COALESCE(vbskarenz.bis, '2170-12-31')
+ )
+ ) NULLS FIRST LIMIT 1
+
+ )
+
+ UNION ALL
+
+ SELECT
+ o.oe_kurzbz,
+ o.oe_parent_kurzbz,
+ oes_mitarbeiter.level + 1 as level
+ FROM
+ public.tbl_organisationseinheit o, oes_mitarbeiter
+ WHERE
+ o.oe_kurzbz = oes_mitarbeiter.oe_parent_kurzbz
+ )
+ SELECT
+ oe_kurzbz, level
+ FROM
+ oes_leitung
+ WHERE
+ oe_kurzbz in (SELECT oe_kurzbz FROM oes_mitarbeiter)
+ ORDER BY
+ oe_kurzbz, level
+ ";
+
+ 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;
+ }
+ }
+
/**
* Gibt ein Array mit den UIDs der Vorgesetzten zum Zeitpunkt des korrespondierenden Timesheets zurück
* @param $uid
@@ -1139,13 +1292,30 @@ class mitarbeiter extends benutzer
funktion_kurzbz='Leitung' AND
(datum_von is null OR datum_von<=".$this->db_add_param($date).") AND
(datum_bis is null OR datum_bis>=".$this->db_add_param($date).") AND
- oe_kurzbz in (SELECT oe_kurzbz
- FROM public.tbl_benutzerfunktion
- WHERE
- funktion_kurzbz='oezuordnung' AND uid=".$this->db_add_param($uid)." AND
- (datum_von is null OR (datum_von<= ".$this->db_add_param($date).")) AND
- (datum_bis is null OR (datum_bis>=".$this->db_add_param($date)."))
- )
+ oe_kurzbz in (
+ SELECT
+ oe_kurzbz
+ FROM
+ public.tbl_benutzerfunktion
+ WHERE
+ funktion_kurzbz='oezuordnung' AND uid=".$this->db_add_param($uid)." AND
+ (datum_von is null OR (datum_von<= ".$this->db_add_param($date).")) AND
+ (datum_bis is null OR (datum_bis>=".$this->db_add_param($date)."))
+ ORDER BY
+ (
+ SELECT
+ 1
+ FROM
+ hr.tbl_vertragsbestandteil_funktion
+ JOIN hr.tbl_vertragsbestandteil vbsfkt USING(vertragsbestandteil_id)
+ JOIN hr.tbl_vertragsbestandteil vbskarenz USING(dienstverhaeltnis_id)
+ WHERE
+ tbl_vertragsbestandteil_funktion.benutzerfunktion_id=tbl_benutzerfunktion.benutzerfunktion_id
+ AND vbskarenz.vertragsbestandteiltyp_kurzbz='karenz'
+ AND (vbskarenz.von <= ".$this->db_add_param($date)." OR vbskarenz.von is null)
+ AND (vbskarenz.bis >= ".$this->db_add_param($date)." OR vbskarenz.bis is null)
+ ) NULLS FIRST LIMIT 1
+ )
ORDER BY datum_von DESC ";
if (is_numeric($limit))
@@ -1754,7 +1924,7 @@ class mitarbeiter extends benutzer
{
if (is_null($uid))
$uid = $this->uid;
-
+
$qry = "
SELECT o.oe_kurzbz AS standardkostenstelle, o.bezeichnung
FROM public.tbl_benutzerfunktion bf
@@ -1771,7 +1941,7 @@ class mitarbeiter extends benutzer
$obj = new StdClass();
$obj->oekurzbz = $row->standardkostenstelle;
$obj->bezeichnung = $row->bezeichnung;
-
+
$this->result []= $obj;
}
return true;
diff --git a/include/statistik.class.php b/include/statistik.class.php
index a72c8bbeb..34477a548 100644
--- a/include/statistik.class.php
+++ b/include/statistik.class.php
@@ -512,7 +512,7 @@ class statistik extends basis_db
$this->csv='';
$this->json=array();
$this->countRows=0;
- set_time_limit(120);
+ set_time_limit(600);
// In case a decryption function is used then perform password substitution
$this->sql = $this->replaceSQLDecryptionPassword($this->sql);
diff --git a/include/zgv.class.php b/include/zgv.class.php
index a225df8a2..20e2ef353 100644
--- a/include/zgv.class.php
+++ b/include/zgv.class.php
@@ -25,23 +25,23 @@ require_once(dirname(__FILE__).'/sprache.class.php');
class zgv extends basis_db
{
- public $zgv_code;
- public $zgv_bez;
- public $zgv_kurzbz;
+ public $zgv_code;
+ public $zgv_bez;
+ public $zgv_kurzbz;
- public $zgvmas_code;
- public $zgvmas_bez;
- public $zgvmas_kurzbz;
+ public $zgvmas_code;
+ public $zgvmas_bez;
+ public $zgvmas_kurzbz;
- public $zgvdoktor_code;
- public $zgvdoktor_bez;
- public $zgvdoktor_kurzbz;
+ public $zgvdoktor_code;
+ public $zgvdoktor_bez;
+ public $zgvdoktor_kurzbz;
- public $bezeichnung;
+ public $bezeichnung;
- public $result = array();
+ public $result = array();
- public function __construct($zgv_code=null)
+ public function __construct($zgv_code=null)
{
parent::__construct();
@@ -49,155 +49,174 @@ class zgv extends basis_db
$this->load($zgv_code);
}
- /**
- * Lädt eine zgv von tbl_zgv
- * @param $zgv_code
- * @return boolean
- */
- public function load($zgv_code)
- {
- $sprache = new sprache();
- $qry = 'SELECT *,'.$sprache->getSprachQuery('bezeichnung').' FROM bis.tbl_zgv WHERE zgv_code = '.$this->db_add_param($zgv_code, FHC_INTEGER).';';
+ /**
+ * Lädt eine zgv von tbl_zgv
+ * @param $zgv_code
+ * @return boolean
+ */
+ public function load($zgv_code)
+ {
+ $sprache = new sprache();
+ $qry = 'SELECT *,'.$sprache->getSprachQuery('bezeichnung').' FROM bis.tbl_zgv WHERE zgv_code = '.$this->db_add_param($zgv_code, FHC_INTEGER).';';
- if($result = $this->db_query($qry))
- {
- if($row = $this->db_fetch_object($result))
- {
- $this->zgv_code = $row->zgv_code;
- $this->zgv_bez = $row->zgv_bez;
- $this->zgv_kurzbz = $row->zgv_kurzbz;
- $this->bezeichnung=$sprache->parseSprachResult('bezeichnung',$row);
- }
- return true;
- }
- else
- {
- $this->errormsg = "Fehler bei der Abfrage aufgetreten";
- return false;
- }
-
- }
+ if($result = $this->db_query($qry))
+ {
+ if($row = $this->db_fetch_object($result))
+ {
+ $this->zgv_code = $row->zgv_code;
+ $this->zgv_bez = $row->zgv_bez;
+ $this->zgv_kurzbz = $row->zgv_kurzbz;
+ $this->bezeichnung=$sprache->parseSprachResult('bezeichnung',$row);
+ }
+ return true;
+ }
+ else
+ {
+ $this->errormsg = "Fehler bei der Abfrage aufgetreten";
+ return false;
+ }
+ }
/**
- * Lädt eine Master-ZGV von tbl_zgvmaster
- * @param $zgvmas_code
- * @return boolean
- */
- public function load_mas($zgvmas_code)
- {
- $sprache = new sprache();
- $qry = 'SELECT *,'.$sprache->getSprachQuery('bezeichnung').' FROM bis.tbl_zgvmaster WHERE zgvmas_code = '.$this->db_add_param($zgvmas_code, FHC_INTEGER).';';
+ * Lädt eine Master-ZGV von tbl_zgvmaster
+ * @param $zgvmas_code
+ * @return boolean
+ */
+ public function load_mas($zgvmas_code)
+ {
+ $sprache = new sprache();
+ $qry = 'SELECT *,'.$sprache->getSprachQuery('bezeichnung').' FROM bis.tbl_zgvmaster WHERE zgvmas_code = '.$this->db_add_param($zgvmas_code, FHC_INTEGER).';';
- if($result = $this->db_query($qry))
- {
- if($row = $this->db_fetch_object($result))
- {
- $this->zgvmas_code = $row->zgvmas_code;
- $this->zgvmas_bez = $row->zgvmas_bez;
- $this->zgvmas_kurzbz = $row->zgvmas_kurzbz;
- $this->bezeichnung=$sprache->parseSprachResult('bezeichnung',$row);
- }
- return true;
- }
- else
- {
- $this->errormsg = "Fehler bei der Abfrage aufgetreten";
- return false;
- }
+ if($result = $this->db_query($qry))
+ {
+ if($row = $this->db_fetch_object($result))
+ {
+ $this->zgvmas_code = $row->zgvmas_code;
+ $this->zgvmas_bez = $row->zgvmas_bez;
+ $this->zgvmas_kurzbz = $row->zgvmas_kurzbz;
+ $this->bezeichnung=$sprache->parseSprachResult('bezeichnung',$row);
+ }
+ return true;
+ }
+ else
+ {
+ $this->errormsg = "Fehler bei der Abfrage aufgetreten";
+ return false;
+ }
+ }
- }
+ /**
+ * lädt alle ZGVs von tbl_zgv
+ * @return boolean
+ */
+ public function getAll($onlyAktiv = false)
+ {
+ $sprache = new sprache();
+ $qry ='SELECT *,'.$sprache->getSprachQuery('bezeichnung').' FROM bis.tbl_zgv';
- /**
- * lädt alle ZGVs von tbl_zgv
- * @return boolean
- */
- public function getAll()
- {
- $sprache = new sprache();
- $qry ='SELECT *,'.$sprache->getSprachQuery('bezeichnung').' FROM bis.tbl_zgv;';
+ if ($onlyAktiv === true)
+ {
+ $qry .= " WHERE aktiv";
+ }
- if($result = $this->db_query($qry))
- {
- while($row = $this->db_fetch_object($result))
- {
- $zgv = new zgv();
- $zgv->zgv_code = $row->zgv_code;
- $zgv->zgv_bez = $row->zgv_bez;
- $zgv->zgv_kurzbz = $row->zgv_kurzbz;
- $zgv->bezeichnung=$sprache->parseSprachResult('bezeichnung',$row);
+ $qry .= " ORDER BY zgv_bez";
- $this->result[] = $zgv;
- }
- return true;
- }
- else
- {
- $this->errormsg = 'Fehler bei der Abfrage aufgetreten';
- return false;
- }
- }
+ if($result = $this->db_query($qry))
+ {
+ while($row = $this->db_fetch_object($result))
+ {
+ $zgv = new zgv();
+ $zgv->zgv_code = $row->zgv_code;
+ $zgv->zgv_bez = $row->zgv_bez;
+ $zgv->zgv_kurzbz = $row->zgv_kurzbz;
+ $zgv->bezeichnung=$sprache->parseSprachResult('bezeichnung',$row);
- /**
- * Lädt alle Master ZGVs von tbl_zgvmaster
- * @return boolean
- */
- public function getAllMaster()
- {
- $sprache = new sprache();
- $qry = 'SELECT *,'.$sprache->getSprachQuery('bezeichnung').' FROM bis.tbl_zgvmaster;';
+ $this->result[] = $zgv;
+ }
+ return true;
+ }
+ else
+ {
+ $this->errormsg = 'Fehler bei der Abfrage aufgetreten';
+ return false;
+ }
+ }
- if($result = $this->db_query($qry))
- {
- while($row = $this->db_fetch_object($result))
- {
- $zgv_master = new zgv();
+ /**
+ * Lädt alle Master ZGVs von tbl_zgvmaster
+ * @return boolean
+ */
+ public function getAllMaster($onlyAktiv = false)
+ {
+ $sprache = new sprache();
+ $qry = 'SELECT *,'.$sprache->getSprachQuery('bezeichnung').' FROM bis.tbl_zgvmaster';
- $zgv_master->zgvmas_code = $row->zgvmas_code;
- $zgv_master->zgvmas_bez = $row->zgvmas_bez;
- $zgv_master->zgvmas_kurzbz = $row->zgvmas_kurzbz;
- $zgv_master->bezeichnung=$sprache->parseSprachResult('bezeichnung',$row);
+ if ($onlyAktiv === true)
+ {
+ $qry .= " WHERE aktiv";
+ }
- $this->result[] = $zgv_master;
- }
- return true;
- }
- else
- {
- $this->errormsg = 'Fehler bei der Abfrage aufgetreten';
- return false;
- }
- }
+ $qry .= " ORDER BY zgvmas_bez";
- /**
- * Lädt alle Doktor ZGVs von tbl_zgvdoktor
- * @return boolean
- */
- public function getAllDoktor()
- {
- $sprache = new sprache();
- $qry='SELECT *,'.$sprache->getSprachQuery('bezeichnung').' FROM bis.tbl_zgvdoktor;';
+ if($result = $this->db_query($qry))
+ {
+ while($row = $this->db_fetch_object($result))
+ {
+ $zgv_master = new zgv();
- if($result = $this->db_query($qry))
- {
- while($row= $this->db_fetch_object($result))
- {
- $zgv_doktor = new zgv();
+ $zgv_master->zgvmas_code = $row->zgvmas_code;
+ $zgv_master->zgvmas_bez = $row->zgvmas_bez;
+ $zgv_master->zgvmas_kurzbz = $row->zgvmas_kurzbz;
+ $zgv_master->bezeichnung=$sprache->parseSprachResult('bezeichnung',$row);
- $zgv_doktor->zgvdoktor_code = $row->zgvdoktor_code;
- $zgv_doktor->zgvdoktor_bez = $row->zgvdoktor_bez;
- $zgv_doktor->zgvdoktor_kurzbz = $row->zgvdoktor_kurzbz;
- $zgv_doktor->bezeichnung=$sprache->parseSprachResult('bezeichnung',$row);
+ $this->result[] = $zgv_master;
+ }
+ return true;
+ }
+ else
+ {
+ $this->errormsg = 'Fehler bei der Abfrage aufgetreten';
+ return false;
+ }
+ }
- $this->result[] = $zgv_doktor;
- }
+ /**
+ * Lädt alle Doktor ZGVs von tbl_zgvdoktor
+ * @return boolean
+ */
+ public function getAllDoktor($onlyAktiv = false)
+ {
+ $sprache = new sprache();
+ $qry='SELECT *,'.$sprache->getSprachQuery('bezeichnung').' FROM bis.tbl_zgvdoktor;';
+
+ if ($onlyAktiv === true)
+ {
+ $qry .= " WHERE aktiv";
+ }
+
+ $qry .= " ORDER BY zgvdoktor_bez";
+
+
+ if($result = $this->db_query($qry))
+ {
+ while($row= $this->db_fetch_object($result))
+ {
+ $zgv_doktor = new zgv();
- }
- else
- {
- $this->erromsg = "Fehler bei der Abfrage aufgetreten";
- return false;
- }
- }
+ $zgv_doktor->zgvdoktor_code = $row->zgvdoktor_code;
+ $zgv_doktor->zgvdoktor_bez = $row->zgvdoktor_bez;
+ $zgv_doktor->zgvdoktor_kurzbz = $row->zgvdoktor_kurzbz;
+ $zgv_doktor->bezeichnung=$sprache->parseSprachResult('bezeichnung',$row);
+
+ $this->result[] = $zgv_doktor;
+ }
+ }
+ else
+ {
+ $this->erromsg = "Fehler bei der Abfrage aufgetreten";
+ return false;
+ }
+ }
}
?>
diff --git a/locale/de-AT/menu.php b/locale/de-AT/menu.php
index 24083d2a2..9e00edacc 100644
--- a/locale/de-AT/menu.php
+++ b/locale/de-AT/menu.php
@@ -8,5 +8,6 @@ $this->phrasen['menu/assistenz']='Zeitsperren aller AssistentInnen';
$this->phrasen['menu/lektoren']='Lektoren';
$this->phrasen['menu/urlaubAlle']='Alle';
$this->phrasen['menu/suchePersonOrtDokumentInhalt']='Suche Person / OE / Ort / Dokument / Inhalt / DW';
+$this->phrasen['menu/sucheOrtDokumentInhalt']='Suche OE / Ort / Dokument / Inhalt / DW';
$this->phrasen['menu/suchePersonOrtDokumentInhaltLang']='Suche Person / Organisationseinheit / Ort / Dokument / Inhalt / Durchwahl';
?>
diff --git a/locale/en-US/menu.php b/locale/en-US/menu.php
index a21ce5ede..9b8fe3f33 100644
--- a/locale/en-US/menu.php
+++ b/locale/en-US/menu.php
@@ -8,5 +8,6 @@ $this->phrasen['menu/assistenz']='Assistants';
$this->phrasen['menu/lektoren']='Lector';
$this->phrasen['menu/urlaubAlle']='All';
$this->phrasen['menu/suchePersonOrtDokumentInhalt']='Search Person / OU / Room / Document / Content / Ext.';
+$this->phrasen['menu/sucheOrtDokumentInhalt']='Search OU / Room / Document / Content / Ext.';
$this->phrasen['menu/suchePersonOrtDokumentInhaltLang']='Search Person / Organisation Unit / Room / Document / Content / Extension';
?>
diff --git a/public/js/components/Studierendenantrag/Form/AbmeldungStgl.js b/public/js/components/Studierendenantrag/Form/AbmeldungStgl.js
index 1650d3638..aafff8ac6 100644
--- a/public/js/components/Studierendenantrag/Form/AbmeldungStgl.js
+++ b/public/js/components/Studierendenantrag/Form/AbmeldungStgl.js
@@ -29,7 +29,8 @@ export default {
switch (this.data?.status)
{
case 'Erstellt': return 'info';
- case 'Genehmigt': return 'success';
+ case 'Genehmigt':
+ case 'Abgemeldet': return 'success';
default: return 'info';
}
},
diff --git a/public/js/components/Studierendenantrag/Form/Wiederholung.js b/public/js/components/Studierendenantrag/Form/Wiederholung.js
index c2aea93f2..c1c668ecb 100644
--- a/public/js/components/Studierendenantrag/Form/Wiederholung.js
+++ b/public/js/components/Studierendenantrag/Form/Wiederholung.js
@@ -37,7 +37,8 @@ export default {
{
case 'Erstellt': return 'info';
case 'Genehmigt': return 'success';
- case 'Verzichtet': return 'danger';
+ case 'Verzichtet':
+ case 'Abgemeldet': return 'danger';
default: return 'info';
}
},
diff --git a/rdf/note.rdf.php b/rdf/note.rdf.php
index 95606729d..9f850db30 100644
--- a/rdf/note.rdf.php
+++ b/rdf/note.rdf.php
@@ -40,7 +40,7 @@ echo '
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:NOTE="'.$rdf_url.'/rdf#"
>
-
+
';
//Daten holen
@@ -48,13 +48,14 @@ $qry = 'SELECT * FROM lehre.tbl_note ORDER BY note';
if(isset($_GET['optional']))
{
echo '
-
-
-
-
-
-
- ';
+
+
+
+
+
+
+
+ ';
}
$db = new basis_db();
@@ -63,13 +64,14 @@ if($db->db_query($qry))
while($row = $db->db_fetch_object())
{
echo '
-
-
+
+
note.']]>
bezeichnung.']]>
anmerkung.']]>
-
- ';
+ db_parse_bool($row->aktiv)?'true':'false') .']]>
+
+ ';
}
}
?>
diff --git a/system/dbupdate_3.4.php b/system/dbupdate_3.4.php
index c8669de28..717cc58f3 100644
--- a/system/dbupdate_3.4.php
+++ b/system/dbupdate_3.4.php
@@ -49,6 +49,7 @@ require_once('dbupdate_3.4/30181_tabelle_anrechnung_neue_attribute_fuer_begruend
require_once('dbupdate_3.4/29529_infocenter_anpassungen.php');
require_once('dbupdate_3.4/29835_uhstat1_erfassung_der_uhstat1_daten_ueber_das_bewerbungstool.php');
require_once('dbupdate_3.4/33714_erhoehter_studienbeitrag_fuer_drittsaatenangehoerig.php');
+require_once('dbupdate_3.4/36275_zeitaufzeichnung_karenz.php');
// *** Pruefung und hinzufuegen der neuen Attribute und Tabellen
diff --git a/system/dbupdate_3.4/36275_zeitaufzeichnung_karenz.php b/system/dbupdate_3.4/36275_zeitaufzeichnung_karenz.php
new file mode 100644
index 000000000..ecdbe31f5
--- /dev/null
+++ b/system/dbupdate_3.4/36275_zeitaufzeichnung_karenz.php
@@ -0,0 +1,16 @@
+db_query("SELECT * FROM information_schema.role_table_grants WHERE table_name='tbl_vertragsbestandteil_funktion' AND table_schema='hr' AND grantee='web' AND privilege_type='SELECT'"))
+{
+ if ($db->db_num_rows($result) == 0)
+ {
+ $qry = "GRANT SELECT ON hr.tbl_vertragsbestandteil_funktion TO web;";
+
+ if (! $db->db_query($qry))
+ echo 'Vertragsbestandteil Funktion Rechte: ' . $db->db_last_error() . ' ';
+ else
+ echo 'Leserechte für Web User auf vertragsbetandteil_funktion hinzugefuegt';
+ }
+}
diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php
index 289346dac..b6b5b2ffc 100644
--- a/system/phrasesupdate.php
+++ b/system/phrasesupdate.php
@@ -4408,7 +4408,7 @@ When on hold, the date is only a reminder.',
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'Procedure and terms of payment',
'description' => '',
'insertvon' => 'system'
)
@@ -4438,7 +4438,16 @@ When on hold, the date is only a reminder.',
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'We would like to draw your attention to the fact that the invoice number must *always* be quoted as the payment reference when making a bank transfer.
+ Otherwise, no automatic payment allocation will take place and there may be a delay in displaying the current payment status of the invoice in CIS.
+
+
+ In the event that the amount has been transferred to an incorrect account, we kindly ask you to contact your bank.
+
+
+ Each invoice is considered "paid" when the total amount has been credited to our account in full.
+
+ ',
'description' => '',
'insertvon' => 'system'
)
@@ -4458,7 +4467,7 @@ When on hold, the date is only a reminder.',
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'FHTW account information',
'description' => '',
'insertvon' => 'system'
)
@@ -4478,7 +4487,7 @@ When on hold, the date is only a reminder.',
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'All payments must be made to the following account number and the invoice number must be entered as the payment reference.',
'description' => '',
'insertvon' => 'system'
)
@@ -4502,7 +4511,11 @@ When on hold, the date is only a reminder.',
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'Foreign bank transfers:
+
+ In the case of foreign bank transfers, the charges are to be paid by the
+
+ the payer in addition to the invoice amounts.',
'description' => '',
'insertvon' => 'system'
)
@@ -4522,7 +4535,7 @@ When on hold, the date is only a reminder.',
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'Invoices & payment confirmations',
'description' => '',
'insertvon' => 'system'
)
@@ -4543,7 +4556,7 @@ When on hold, the date is only a reminder.',
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'Why is the deposit still outstanding despite payment?',
'description' => '',
'insertvon' => 'system'
)
@@ -4565,7 +4578,9 @@ Die Transaktion und die Bearbeitung der Zahlung, kann bis zu sechs Werktage daue
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'The most common reason for this is that the invoice number is not entered as the payment reference in the bank transfer.
+In this case, we kindly ask you to send an e-mail to billing@technikum-wien.at with a payment confirmation.
+The transaction and processing of the payment can take up to six working days.',
'description' => '',
'insertvon' => 'system'
)
@@ -4585,7 +4600,7 @@ Die Transaktion und die Bearbeitung der Zahlung, kann bis zu sechs Werktage daue
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'I have not received an invoice, what should I do?',
'description' => '',
'insertvon' => 'system'
)
@@ -4606,7 +4621,8 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'In this case, please check your spam folder. If the invoice has not been sent, please inform us at billing@technikum-wien.at.
+The invoice will be sent to you again. The amount is only to be transferred after receipt of the invoice',
'description' => '',
'insertvon' => 'system'
)
@@ -4626,7 +4642,7 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'Refund of the tuition fee',
'description' => '',
'insertvon' => 'system'
)
@@ -4652,7 +4668,13 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'The tuition fee will not be refunded if...
+-Freshmen who do not take up their study place after the start of the semester (September 1 / February 16)
+-Students who discontinue their studies after the start of the semester (September 1 / February 16).
+
+-Interruption before 15.10. or 15.3.: tuition fees will be refunded
+-Interruption after 15.10. or 15.3.: Tuition fee will not be refunded
+-No tuition fees are payable in the semesters following the interruption; however, the ÖH fee must be paid in each semester of the interruption',
'description' => '',
'insertvon' => 'system'
)
@@ -4672,7 +4694,7 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'You are exempt from paying tuition fees and have received an invoice for tuition fees?',
'description' => '',
'insertvon' => 'system'
)
@@ -4692,7 +4714,7 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'Please contact your study program assistant. The outstanding invoice will be canceled.',
'description' => '',
'insertvon' => 'system'
)
@@ -4712,7 +4734,7 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'I made a mistake with the transfer, what should I do?',
'description' => '',
'insertvon' => 'system'
)
@@ -4732,7 +4754,7 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'Please report the error to billing@technikum-wien.at.',
'description' => '',
'insertvon' => 'system'
)
@@ -4752,7 +4774,7 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'An invoice has been transferred twice, what should I do?',
'description' => '',
'insertvon' => 'system'
)
@@ -4772,7 +4794,7 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'If an invoice has been transferred twice, please report this to billing@technikum-wien.at. We will refund you one payment.',
'description' => '',
'insertvon' => 'system'
)
@@ -4792,7 +4814,7 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'There are several items on the invoice - should a transfer be made for each item?',
'description' => '',
'insertvon' => 'system'
)
@@ -4812,7 +4834,7 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'No, the total amount shown on the invoice must always be transferred.',
'description' => '',
'insertvon' => 'system'
)
@@ -4832,7 +4854,7 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'When can the amount be transferred?',
'description' => '',
'insertvon' => 'system'
)
@@ -4852,13 +4874,32 @@ Die Rechnung wird Ihnen erneut zugesendet. Erst nach Erhalt der Rechn
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'We would like to point out that bank transfers should only be made on receipt of the invoice. Please state the invoice number as the payment reference.',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'infocenter',
+ 'category' => 'infocenter',
+ 'phrase' => 'zahlungsempfaenger',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Fachhochschule Technikum Wien',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'University of Applied Sciences Technikum Wien',
'description' => '',
'insertvon' => 'system'
)
)
),
-
array(
'app' => 'core',
'category' => 'password',
@@ -24135,7 +24176,27 @@ array(
'insertvon' => 'system'
)
)
- )
+ ),
+ array(
+ 'app' => 'lehrauftrag',
+ 'category' => 'ui',
+ 'phrase' => 'hinweistextLehrauftrag',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Hinweis: Das Akzeptieren von Lehraufträgen ersetzt alle vorhergehenden Lehraufträge dieses Studiensemesters.',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Note: Accepting teaching assignments replaces all previous teaching assignments for this study semester.',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ )
);
diff --git a/vilesci/stammdaten/auswertung_fhtw.php b/vilesci/stammdaten/auswertung_fhtw.php
index e52235fda..aa39889cb 100644
--- a/vilesci/stammdaten/auswertung_fhtw.php
+++ b/vilesci/stammdaten/auswertung_fhtw.php
@@ -1081,77 +1081,6 @@ if ($punkteUebertragen)
$msg_warning .= ' Der Prestudent '.$array['prestudent_id'].' hat bereits Gesamtpunkte eingetragen.';
}
}
-
- $zuBewerberMachen = filter_input(INPUT_POST, 'zuBewerberMachen', FILTER_VALIDATE_BOOLEAN);
- // Wenn zuBewerberMachen true ist, wird der Prestudent auch zum Bewerber gemacht
- if ($zuBewerberMachen)
- {
- $prestudent = new prestudent($array['prestudent_id']);
-
- // Checken, ob schon Bewerberstatus vorhanden ist
- if (!$prestudent->load_rolle($array['prestudent_id'], 'Bewerber', $prestudentrolle->studiensemester_kurzbz, $prestudentrolle->ausbildungssemester))
- {
- // Checken, ob Abgewiesener-Status vorhanden ist
- if (!$prestudent->load_rolle($array['prestudent_id'], 'Abgewiesener', $prestudentrolle->studiensemester_kurzbz, $prestudentrolle->ausbildungssemester))
- {
- // Um einen Bewerberstatus zu setzen, muss "reihungstestangetreten" true sein
- if ($prestudent->reihungstestangetreten == true)
- {
- // Um einen Bewerberstatus zu setzen, muss die ZGV ausgefüllt sein
- if ($prestudent->zgv_code != '')
- {
- $studiengang = new studiengang($prestudent->studiengang_kz);
- // Bei Mastern muss auch die ZGV-Master ausgefüllt sein
- if ($studiengang->typ == 'm' && $prestudent->zgvmas_code == '')
- {
- $msg_error .= ' Fehler beim speichern des Bewerberstatus für Prestudent '.$array['prestudent_id'].'. Es muss zuerst eine Master-ZGV eingetragen sein.';
- }
- else
- {
- $prestudent->new = true;
- $prestudent->prestudent_id = $array['prestudent_id'];
- $prestudent->status_kurzbz = 'Bewerber';
- $prestudent->studiensemester_kurzbz = $prestudentrolle->studiensemester_kurzbz;
- $prestudent->ausbildungssemester = $prestudentrolle->ausbildungssemester;
- $prestudent->datum = date('Y-m-d');
- $prestudent->insertamum = date('Y-m-d H:i:s');
- $prestudent->insertvon = $user;
- $prestudent->orgform_kurzbz = $prestudentrolle->orgform_kurzbz;
- $prestudent->bestaetigtam = '';
- $prestudent->bestaetigtvon = '';
- $prestudent->bewerbung_abgeschicktamum = '';
- $prestudent->studienplan_id = $prestudentrolle->studienplan_id;
-
- if (!$prestudent->save_rolle())
- {
- $msg_error .= ' Fehler beim speichern des Bewerberstatus für Prestudent '.$array['prestudent_id'].': '.$prestudent->errormsg;
- }
- else
- {
- $count_success_bewerber++;
- }
- }
- }
- else
- {
- $msg_error .= ' Fehler beim speichern des Bewerberstatus für Prestudent '.$array['prestudent_id'].'. Es muss zuerst eine ZGV eingetragen sein.';
- }
- }
- else
- {
- $msg_error .= ' Fehler beim speichern des Bewerberstatus für Prestudent '.$array['prestudent_id'].'. Zuerst muss "Reihungstestverfahren absolviert" gesetzt sein.';
- }
- }
- else
- {
- $msg_error .= ' Fehler beim speichern des Bewerberstatus für Prestudent '.$array['prestudent_id'].'. Es ist bereits ein Abgewiesener-Status vorhanden';
- }
- }
- else
- {
- $msg_warning .= ' Der Prestudent '.$array['prestudent_id'].' hat bereits einen Bewerberstatus';
- }
- }
}
}
@@ -2440,30 +2369,7 @@ else
{
$("#uebertragenOptions").toggle(300);
});
-
- if($("#uebertragenOptionGesamtpunkte").not(":checked"))
- {
- $("#div_checkbox_bewerber").addClass("disabled");
- $("#div_checkbox_bewerber").find("label").addClass("text-muted");
- $("#div_checkbox_bewerber").find("label").prop("title", "Erst \"Gesamtpunkte\" und \"Reihungsverfahren absolviert\" setzen");
- $("#uebertragenOptionBewerber").prop("disabled", true);
- }
- $("#uebertragenOptionGesamtpunkte").on("click", function(e)
- {
- if($(this).is(":checked"))
- {
- $("#div_checkbox_bewerber").removeClass("disabled");
- $("#div_checkbox_bewerber").find("label").removeClass("text-muted");
- $("#uebertragenOptionBewerber").prop("disabled", false);
- }
- else
- {
- $("#div_checkbox_bewerber").addClass("disabled");
- $("#div_checkbox_bewerber").find("label").addClass("text-muted");
- $("#div_checkbox_bewerber").find("label").prop("title", "Erst \"Gesamtpunkte\" und \"Reihungsverfahren absolviert\" setzen");
- $("#uebertragenOptionBewerber").prop("disabled", true);
- }
- });
+
});
function deleteResult(prestudent_id, gebiet_id, name, gebiet_bezeichnung)
@@ -2859,17 +2765,11 @@ else
{
var prestudentPunkteArr = [];
var gesamtpunkteSetzen = false;
- var zuBewerberMachen = false;
if ($("input.prestudentCheckbox:checked").length === 0)
{
alert("Bitte wählen Sie mindestens einen Eintrag aus der Liste");
return false;
}
- else if ($("#uebertragenOptionBewerber:checked").length === 1 && $("#uebertragenOptionGesamtpunkte:checked").length !== 1)
- {
- alert("Um den Bewerberstatus setzen zu können, muss \"Gesamtpunkte\" und \"Reihungsverfahren absolviert\" gesetzt sein");
- return false;
- }
else
{
$("input.prestudentCheckbox:checked").each(function()
@@ -2886,15 +2786,10 @@ else
{
gesamtpunkteSetzen = true;
}
- if ($("#uebertragenOptionBewerber:checked").length === 1)
- {
- zuBewerberMachen = true;
- }
data = {
prestudentPunkteArr: prestudentPunkteArr,
gesamtpunkteSetzen: gesamtpunkteSetzen,
- zuBewerberMachen: zuBewerberMachen,
punkteUebertragen: true
};
@@ -3246,8 +3141,9 @@ else
+
-
+
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 = <<
-
-
-
+
+ * 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 = <<
+
+
+
|