- "</A></CENTER><BR>".
- "</CENTER></B>".
- "</TD></TR></TABLE>";
- echo "<TABLE WIDTH=\"100%\" BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">".
- "<TR><TD BGCOLOR=\"$color[4]\">";
- echo "$bodyheader </TD></TR></TABLE>";
-
- echo "<TABLE WIDTH=\"98%\" BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">".
- "<TR><TD BGCOLOR=\"$color[4]\"><TT><BR>";
- echo "$body </TT></TD></TR><table><br>";
- echo '<table width="100%"><tr>'.
- "<td bgcolor=\"$color[9]\" width=\"100%\" align=\"center\">".
- '<form action="download.php" method="post"><small>'.
- "<input type=\"hidden\" name=\"passed_id\" value=\"$id\">".
- "<input type=\"hidden\" name=\"mailbox\" value=\"".$mailbox."\">".
- "<input type=\"hidden\" name=\"startMessage\" value=\"$startMessage\">".
- "<input type=\"hidden\" name=\"passed_ent_id\" value=\"$ent_id\">".
- "<input type=\"hidden\" name=\"extract_message\" value=\"1\">".
- _("Save to:") .
- ' <select name="targetMailbox">';
- get_extract_to_target_list($imapConnection);
+ "</A><BR>".
+ "</b></center>";
+ echo html_tag( 'tr',
+ html_tag( 'td', $td_str, 'left' )
+ ) .
+
+ "</TABLE>\n" .
+ html_tag( 'table',
+ html_tag( 'tr',
+ html_tag( 'td', $bodyheader, 'left', $color[4] )
+ ) ,
+ 'center', '', 'width="100%" border="0" cellspacing="0" cellpadding="2"' ) . "\n" .
+ html_tag( 'table',
+ html_tag( 'tr',
+ html_tag( 'td', '<tt><br>' . $body . '</tt>', 'left', $color[4] )
+ ) ,
+ 'center', '', 'width="98%" border="0" cellspacing="0" cellpadding="2"' ) . "<br>\n";
+
+ echo html_tag( 'table', '', '', '', 'width="100%"' ) .
+ html_tag( 'tr' ) .
+ html_tag( 'td', '', 'center', $color[9], 'width="100%"' ) .
+ '<form action="download.php" method="post"><small>'.
+ "<input type=\"hidden\" name=\"passed_id\" value=\"$id\">".
+ "<input type=\"hidden\" name=\"mailbox\" value=\"".$mailbox."\">".
+ "<input type=\"hidden\" name=\"startMessage\" value=\"$startMessage\">".
+ "<input type=\"hidden\" name=\"passed_ent_id\" value=\"$ent_id\">".
+ "<input type=\"hidden\" name=\"extract_message\" value=\"1\">".
+ _("Save to:") .
+ ' <select name="targetMailbox">';
+ get_extract_to_target_list($imapConnection);