- echo " <TR BGCOLOR=\"$color[$eo]\"><TD>$ehour:$eminute$elength</TD>\n" .
- " <TD WIDTH=\"100%\">[";
- echo ($calbar[priority]==1) ? "<FONT COLOR=\"$color[1]\">$calbar[title]</FONT>" : "$calbar[title]";
- echo"] $calbar[message] </TD>\n" .
- " <TD ALIGN=CENTER><FONT SIZE=-1><nobr>\n" .
- "<A HREF=\"event_edit.php?year=$year&month=$month&day=$day&hour=".substr($calfoo[key],0,2)."&minute=".substr($calfoo[key],2,2)."\">".
- _("EDIT") . "</A> | \n" .
- "<A HREF=\"event_delete.php?dyear=$year&dmonth=$month&dday=$day&dhour=".substr($calfoo[key],0,2)."&dminute=".substr($calfoo[key],2,2)."&year=$year&month=$month&day=$day\">" .
- _("DEL") . '</A>' .
- " </nobr></FONT></TD></TR>\n";
+ echo html_tag( 'tr', '', '', $color[$eo] ) .
+ html_tag( 'td', date_intl(_("H:i"),mktime($ehour,$eminute,0,1,1,0)) . $elength, 'left' ) .
+ html_tag( 'td', '', 'left' ) . '[';
+ echo ($calbar['priority']==1) ?
+ "<font color=\"$color[1]\">".sm_encode_html_special_chars($calbar['title']).'</font>' :
+ sm_encode_html_special_chars($calbar['title']);
+ echo'] <div style="margin-left:10px">'.nl2br(sm_encode_html_special_chars($calbar['message'])).'</div>' .
+ html_tag( 'td',
+ "<font size=\"-1\"><nobr>\n" .
+ "<a href=\"event_edit.php?year=$year&month=$month&day=$day&hour=".
+ substr($calfoo['key'],0,2)."&minute=".substr($calfoo['key'],2,2)."\">".
+ _("EDIT") . "</a> | \n" .
+ "<a href=\"event_delete.php?dyear=$year&dmonth=$month&dday=$day&dhour=".
+ substr($calfoo['key'],0,2)."&dminute=".substr($calfoo['key'],2,2).
+ "&year=$year&month=$month&day=$day\">" .
+ _("DEL") . '</a>' .
+ "</nobr></font>\n" ,
+ 'center' );
+ }