r2l by Yoav
[squirrelmail.git] / plugins / calendar / functions.php
index d6d3087b34af50fbfb61678690388d70e489974a..be12a0d7290e1f797fa529d448ed2f17c7135690 100644 (file)
@@ -7,7 +7,7 @@
  *
  *  miscelenous functions.
  *
  *
  *  miscelenous functions.
  *
- *  18 Jan 2002 Adapted to official SM rules philippe@squirrelmail.org.
+ * $Id$
  */
 
 
  */
 
 
@@ -15,8 +15,9 @@ function calendar_header() {
     //Add Second layer ofCalendar links to upper menu
     global $color,$year,$day,$month;
 
     //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";
 
     displayInternalLink("plugins/calendar/calendar.php?year=$year&month=$month",_("Month View"),"right");
     echo "&nbsp;&nbsp\n";
@@ -24,7 +25,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 "&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>';
 
 }
 
 
 }
 
@@ -109,7 +110,7 @@ function select_option_priority($selected) {
 
 function select_option_year($selected) {
 
 
 function select_option_year($selected) {
 
-    for ($i=1900;$i<2100;$i++){
+    for ($i=1902;$i<2038;$i++){
         if ($i==$selected){
             echo "            <OPTION VALUE=\"$i\" SELECTED>$i</OPTION>\n";
         } else {
         if ($i==$selected){
             echo "            <OPTION VALUE=\"$i\" SELECTED>$i</OPTION>\n";
         } else {