Keep on going... rg=0
[squirrelmail.git] / plugins / calendar / functions.php
index 570c3126938b5216ddb4c4e401841bec5d89ec5b..e11bb049e241b05b7e0de53a7f1f54b5cd777d91 100644 (file)
@@ -1,11 +1,14 @@
 <?php
-/*
- *  functions.php
+
+/**
+ * functions.php
+ *
+ * Copyright (c) 2002 The SquirrelMail Project Team
+ * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
- *  Copyright (c) 2001 Michal Szczotka <michal@tuxy.org>
- *  Licensed under the GNU GPL. For full terms see the file COPYING.
+ * Originally contrubuted by Michal Szczotka <michal@tuxy.org>
  *
- *  miscelenous functions.
+ * miscelenous functions.
  *
  * $Id$
  */
@@ -15,8 +18,9 @@ function calendar_header() {
     //Add Second layer ofCalendar links to upper menu
     global $color,$year,$day,$month;
 
-    echo "<TABLE BGCOLOR=\"$color[0]\" BORDER=0 WIDTH=\"100%\" CELLSPACING=0 CELLPADDING=2>".
-         "<TR><TD ALIGN=left WIDTH=\"100%\">";
+    echo html_tag( 'table', '', '', $color[0], 'border="0" width="100%" cellspacing="0" cellpadding="2"' ) .
+         html_tag( 'tr' ) .
+         html_tag( 'td', '', 'left', '', 'width="100%"' );
 
     displayInternalLink("plugins/calendar/calendar.php?year=$year&month=$month",_("Month View"),"right");
     echo "&nbsp;&nbsp\n";
@@ -24,7 +28,7 @@ function calendar_header() {
     echo "&nbsp;&nbsp\n";
     // displayInternalLink("plugins/calendar/event_create.php?year=$year&month=$month&day=$day",_("Add Event"),"right");
     // echo "&nbsp;&nbsp\n";
-    echo '</TD></TR>';
+    echo '</td></tr>';
 
 }
 
@@ -143,4 +147,4 @@ function select_option_day($selected) {
     }
 }
 
-?>
\ No newline at end of file
+?>