fhiiqm/start.php
changeset 19 33ee23fafd4d
parent 13 741b35e9ebbe
child 21 97dba0fe820c
--- a/fhiiqm/start.php	Mon Nov 21 16:24:43 2011 +0100
+++ b/fhiiqm/start.php	Fri Dec 09 14:33:22 2011 +0100
@@ -32,6 +32,16 @@
 //    print_r ($_SESSION['recht']);
     
     include_once($_SERVER["DOCUMENT_ROOT"] . "/fhiiqm/inc/menu.inc.php");
+    if (date("Y-m-d") < date("Y-m-d", mktime(0,0,0,12,25,2011)))
+    {
+        echo "<p>&nbsp;</p><p class='red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+            <img src='/fhiiqm/img/weihnachtsmann.gif' height='75' />";
+        $heute = new DateTime();
+        $weih = new DateTime('2011-12-24');
+        $tage = $weih -> diff($heute)->days+1;
+        echo "noch $tage Tage bis <em>Weihnachten</em>!</p>";
+    }
+
 ?>
 </div>
 <div id="renavi" align="right"><img src="/fhiiqm/img/fhi.jpg" border="0" alt="FHI" width="100%"/>&nbsp;&nbsp;&nbsp;</div>