diff --git a/content/student/studentdetailoverlay.xul.php b/content/student/studentdetailoverlay.xul.php
index 845d48397..4b4fbdd63 100644
--- a/content/student/studentdetailoverlay.xul.php
+++ b/content/student/studentdetailoverlay.xul.php
@@ -806,24 +806,24 @@ echo '';
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/content/student/studentrolledialog.xul.php b/content/student/studentrolledialog.xul.php
index 37ec0e983..615531e82 100644
--- a/content/student/studentrolledialog.xul.php
+++ b/content/student/studentrolledialog.xul.php
@@ -93,6 +93,9 @@ $user=get_uid();
+
+
+
"/>
diff --git a/include/bismeldestichtag.class.php b/include/bismeldestichtag.class.php
index 675dc4953..a12716bed 100644
--- a/include/bismeldestichtag.class.php
+++ b/include/bismeldestichtag.class.php
@@ -91,10 +91,9 @@ class bismeldestichtag extends basis_db
}
/**
- * Liefert die Antwort eines Pruefling zu einer Frage
+ * Liefert zuletzt erreichten Meldestichtag
*
- * @param $pruefling_id
- * @param $frage_id
+ * @param $studiensemester_kurzbz
* @return boolean
*/
public function getLastReachedMeldestichtag($studiensemester_kurzbz = null)
diff --git a/rdf/prestudentrolle.rdf.php b/rdf/prestudentrolle.rdf.php
index 7a3dd636b..6592043bf 100644
--- a/rdf/prestudentrolle.rdf.php
+++ b/rdf/prestudentrolle.rdf.php
@@ -35,6 +35,7 @@ require_once('../include/prestudent.class.php');
require_once('../include/datum.class.php');
require_once('../include/statusgrund.class.php');
require_once('../include/student.class.php');
+require_once('../include/bismeldestichtag.class.php');
$rdf_url='http://www.technikum-wien.at/prestudentrolle';
$datum = new datum();
@@ -80,6 +81,8 @@ foreach($statusgrund->result as $row)
$studentlehrverband = new student();
$uid = $studentlehrverband->getUid($prestudent_id);
+
+$erstes_stichtag_inaktiv = true;
foreach($ps->result as $row)
{
$lehrverband = '-';
@@ -99,6 +102,21 @@ foreach($ps->result as $row)
}
}
+ // prüfen, ob Meldestichtag erreicht
+ $bismeldestichtag = new bismeldestichtag();
+ $stichtag_erreicht = $bismeldestichtag->checkMeldestichtagErreicht($row->studiensemester_kurzbz, $row->datum);
+
+ // Variablen für layout von prestudentstatus Anzeige
+ $stichtagsaktiv = $stichtag_erreicht ? 'stichtagsinaktiv' : 'stichtagsaktiv';
+ $aktiv = $stichtag_erreicht ? 'false' : 'true';
+
+ // erstes mal stichtag erreicht -> anderes layout
+ if ($stichtag_erreicht && $erstes_stichtag_inaktiv)
+ {
+ $stichtagsaktiv = 'erstes_stichtagsinaktiv';
+ $erstes_stichtag_inaktiv = false;
+ }
+
echo '
@@ -123,6 +141,8 @@ foreach($ps->result as $row)
insertvon.']]>
formatDatum($row->updateamum,'d.m.Y H:i:s').']]>
updatevon.']]>
+
+
';
diff --git a/skin/tempus.css b/skin/tempus.css
index 7684fddb1..597be41f8 100644
--- a/skin/tempus.css
+++ b/skin/tempus.css
@@ -234,3 +234,19 @@ treechildren::-moz-tree-row(makeItMarked)
width: 25px;
height:25px;
}
+
+treechildren::-moz-tree-cell(stichtagsinaktiv)
+{
+ background-color: #e6e6e6;
+}
+
+treechildren::-moz-tree-cell(erstes_stichtagsinaktiv)
+{
+ background-color: #e6e6e6;
+ border-top: 1px solid grey;
+}
+
+label.warning
+{
+ font-weight: bold;
+}