- echo " <TABLE BORDER=0 CELLPADDING=2 CELLSPACING=1 BGCOLOR=\"$color[0]\">\n".
- " <TR><TH COLSPAN=2 BGCOLOR=\"$color[4]\">\n".
- _("Event Has been added!") . "<br>\n".
- " <TR><TD ALIGN=RIGHT BGCOLOR=\"$color[4]\">" . _("Date:") . "</TD>\n".
- " <TD ALIGN=LEFT BGCOLOR=\"$color[4]\">$month/$day/$year</TD></TR>\n".
- " <TR><TD ALIGN=RIGHT BGCOLOR=\"$color[4]\">" . _("Time:") . "</TD>\n".
- " <TD ALIGN=LEFT BGCOLOR=\"$color[4]\">$event_hour:$event_minute</TD></TR>\n".
- " <TR><TD ALIGN=RIGHT BGCOLOR=\"$color[4]\">" . _("Title:") . "</TD>\n".
- " <TD ALIGN=LEFT BGCOLOR=\"$color[4]\">$event_title</TD></TR>\n".
- " <TR><TD ALIGN=RIGHT BGCOLOR=\"$color[4]\">" . _("Message:") . "</TD>\n".
- " <TD ALIGN=LEFT BGCOLOR=\"$color[4]\">$event_text</TD></TR>\n".
- " <TR><TD COLSPAN=2 BGCOLOR=\"$color[4]\">\n".
- "<A HREF=\"day.php?year=$year&month=$month&day=$day\">" . _("Day View") . "</A>\n".
- " </TD></TR>\n".
- " </TABLE>\n";
+ echo html_tag( 'table',
+ html_tag( 'tr',
+ html_tag( 'th', _("Event Has been added!") . "<br />\n", '', $color[4], 'colspan="2"' )
+ ) .
+ html_tag( 'tr',
+ html_tag( 'td', _("Date:"), 'right', $color[4] ) . "\n" .
+ html_tag( 'td', date_intl(_("m/d/Y"),mktime(0,0,0,$month,$day,$year)), 'left', $color[4] ) . "\n"
+ ) .
+ html_tag( 'tr',
+ html_tag( 'td', _("Time:"), 'right', $color[4] ) . "\n" .
+ html_tag( 'td', date_intl(_("H:i"),mktime($event_hour,$event_minute,0,$month,$day,$year)), 'left', $color[4] ) . "\n"
+ ) .
+ html_tag( 'tr',
+ html_tag( 'td', _("Title:"), 'right', $color[4] ) . "\n" .
+ html_tag( 'td', sm_encode_html_special_chars($event_title,ENT_NOQUOTES), 'left', $color[4] ) . "\n"
+ ) .
+ html_tag( 'tr',
+ html_tag( 'td', _("Message:"), 'right', $color[4] ) . "\n" .
+ html_tag( 'td', nl2br(sm_encode_html_special_chars($event_text,ENT_NOQUOTES)), 'left', $color[4] ) . "\n"
+ ) .
+ html_tag( 'tr',
+ html_tag( 'td',
+ "<a href=\"day.php?year=$year&month=$month&day=$day\">" . _("Day View") . "</a>\n" ,
+ 'left', $color[4], 'colspan="2"' ) . "\n"
+ ) ,
+ '', $color[0], 'width="100%" border="0" cellpadding="2" cellspacing="1"' ) ."\n";