Show date in red if assignment date has passed
authormoodler <moodler>
Mon, 28 Oct 2002 02:25:18 +0000 (02:25 +0000)
committermoodler <moodler>
Mon, 28 Oct 2002 02:25:18 +0000 (02:25 +0000)
mod/assignment/view.php

index 05e04c2..85a74a8 100644 (file)
@@ -57,6 +57,9 @@
     }
 
     $strdifference = format_time($assignment->timedue - time());
+    if (($assignment->timedue - time()) < 0) {
+        $strdifference = "<FONT COLOR=RED>$strdifference</FONT>";
+    }
     $strduedate = userdate($assignment->timedue)." ($strdifference)";
 
     print_simple_box_start("CENTER");