Insert the current date via JavaScript
authorJoey Schulze <joey@infodrom.org>
Thu, 1 Feb 2007 10:46:09 +0000 (10:46 +0000)
committerJoey Schulze <joey@infodrom.org>
Thu, 1 Feb 2007 10:46:09 +0000 (10:46 +0000)
Styles/infocon.style

index 377d192..afdfe2e 100644 (file)
@@ -138,7 +138,21 @@ printf "Letzte 
 
 #  <td width=100% valign=top><font face=Helvetica>
 
-<div style="padding-top: 2em"></div>
+<div class="date">
+<script type="text/javascript">
+  var today = new Date;
+  var year = today.getYear;
+  var mon = ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'];
+
+  if (year < 200)
+    year += 1900;    
+
+  if (year > 2006 && year < 2100)
+    document.write(today.getDate()
+                   +". " + mon[today.getMonth()]
+                   +" " + year);
+</script>
+</div>
 
 <div id=page>
 <div id=border>