echo '<TABLE ALIGN=center CELLSPACING=0 BORDER=0>' . "\n";
if ($compose_new_win == '1') {
echo '<TABLE ALIGN=CENTER BGCOLOR="'.$color[0].'" WIDTH="100%" BORDER=0>'."\n" .
- ' <TR><TD></TD><TD ALIGN="RIGHT"><INPUT TYPE="BUTTON" NAME="Close" onClick="return self.close()" VALUE='._("Close").'></TD></TR>'."\n";
+ ' <TR><TD></TD>'. html_tag( 'td', '', 'right' ) . '<INPUT TYPE="BUTTON" NAME="Close" onClick="return self.close()" VALUE='._("Close").'></TD></TR>'."\n";
}
if ($location_of_buttons == 'top') {
showComposeButtonRow();
$idents = getPref($data_dir, $username, 'identities', 0);
if ($idents > 1) {
echo ' <TR>' . "\n" .
- ' <TD BGCOLOR="' . $color[4] . '" WIDTH="10%" ALIGN=RIGHT>' .
+ html_tag( 'td', '', 'right', $color[4], 'WIDTH="10%"' ) .
_("From:") . '</TD>' . "\n" .
- ' <TD BGCOLOR="' . $color[4] . '" WIDTH="90%">' . "\n" .
+ html_tag( 'td', '', 'left', $color[4], 'WIDTH="90%"' ) .
' <select name=identity>' . "\n" .
' <option value=default>' .
htmlspecialchars(getPref($data_dir, $username, 'full_name'));
' </TR>' . "\n";
}
echo ' <TR>' . "\n" .
- ' <TD BGCOLOR="' . $color[4] . '" WIDTH="10%" ALIGN=RIGHT>' .
+ html_tag( 'td', '', 'right', $color[4], 'WIDTH="10%"' ) .
_("To:") . '</TD>' . "\n" .
- ' <TD BGCOLOR="' . $color[4] . '" WIDTH="90%">' . "\n" .
+ html_tag( 'td', '', 'left', $color[4], 'WIDTH="90%"' ) .
' <INPUT TYPE=text NAME="send_to" VALUE="' .
htmlspecialchars($send_to) . '" SIZE=60><BR>' . "\n" .
' </TD>' . "\n" .
' </TR>' . "\n" .
' <TR>' . "\n" .
- ' <TD BGCOLOR="' . $color[4] . '" ALIGN=RIGHT>' .
+ html_tag( 'td', '', 'right', $color[4] ) .
_("CC:") . '</TD>' . "\n" .
- ' <TD BGCOLOR="' . $color[4] . '" ALIGN=LEFT>' . "\n" .
+ html_tag( 'td', '', 'left', $color[4] ) .
' <INPUT TYPE=text NAME="send_to_cc" SIZE=60 VALUE="' .
htmlspecialchars($send_to_cc) . '"><BR>' . "\n" .
' </TD>' . "\n" .
' </TR>' . "\n" .
' <TR>' . "\n" .
- ' <TD BGCOLOR="' . $color[4] . '" ALIGN=RIGHT>' .
+ html_tag( 'td', '', 'right', $color[4] ) .
_("BCC:") . '</TD>' . "\n" .
- ' <TD BGCOLOR="' . $color[4] . '" ALIGN=LEFT>' . "\n" .
+ html_tag( 'td', '', 'left', $color[4] ) .
' <INPUT TYPE=text NAME="send_to_bcc" VALUE="' .
htmlspecialchars($send_to_bcc) . '" SIZE=60><BR>' . "\n" .
' </TD>' . "\n" .
' </TR>' . "\n" .
' <TR>' . "\n" .
- ' <TD BGCOLOR="' . $color[4] . '" ALIGN=RIGHT>' .
+ html_tag( 'td', '', 'right', $color[4] ) .
_("Subject:") . '</TD>' . "\n" .
- ' <TD BGCOLOR="' . $color[4] . '" ALIGN=LEFT>' . "\n";
+ html_tag( 'td', '', 'left', $color[4] ) . "\n";
echo ' <INPUT TYPE=text NAME=subject SIZE=60 VALUE="' .
htmlspecialchars($subject) . '">' . "\n" .
' </TD>' . "\n" .
showComposeButtonRow();
} else {
echo ' <TR>' . "\n" .
- ' <TD COLSPAN=2 ALIGN=RIGHT>' . "\n" .
+ html_tag( 'td', '', 'right', '', 'COLSPAN=2' ) . "\n" .
' <INPUT TYPE=SUBMIT NAME=send VALUE="' . _("Send") . '">' . "\n" .
' <BR><BR>' . "\n" .
' </TD>' . "\n" .
' <table width="100%" cellpadding="3" cellspacing="0" align="center"'.
' border="0">' . "\n" .
' <TR>' . "\n" .
- ' <TD VALIGN=MIDDLE ALIGN=RIGHT>' .
+ html_tag( 'td', '', 'right', '', 'VALIGN=MIDDLE' ) .
_("Attach:") . '</TD>' . "\n" .
- ' <TD VALIGN=MIDDLE ALIGN=LEFT>' . "\n" .
+ html_tag( 'td', '', 'left', '', 'VALIGN=MIDDLE' ) .
' <INPUT NAME="attachfile" SIZE=48 TYPE="file">' . "\n" .
' <input type="submit" name="attach"' .
' value="' . _("Add") .'">' . "\n" .
$attached_filename = decodeHeader($attachment->mime_header->getParameter('name'));
$type = $attachment->mime_header->type0.'/'.
$attachment->mime_header->type1;
- $s_a[] = '<input type="checkbox" name="delete[]" value="' .
- $key . "\">\n" . $attached_filename . ' - ' . $type .
- ' ('.show_readable_size( filesize( $attached_file ) )
- . ')<br>'."\n";
+
+ $s_a[] = '<table bgcolor="'.$color[0].'" border="0"><tr><td><input type="checkbox" name="delete[]" value
+="' .
+ $key . "\"></td><td>\n" . $attached_filename . '</td><td>-</
+td><td> ' . $type . '</td><td>('.show_readable_size( filesize( $attached_file ) ) . '
+)</td></tr></table>'."\n";
}
}
}
if (count($s_a)) {
foreach ($s_a as $s) {
- echo '<tr><td align=left colspan="2" bgcolor="' . $color[0] . '">'.$s.'</td></tr>';
+ echo '<tr>' . html_tag( 'td', '', 'left', $color[0], 'colspan="2"' ) . $s .'</td></tr>';
}
echo '<tr><td colspan="2"><input type="submit" name="do_delete" value="' .
_("Delete selected attachments") . "\">\n" .
$topbar_delimiter = ' | ';
$urlMailbox = urlencode($mailbox);
$s = '<table width="100%" cellpadding="3" cellspacing="0" align="center"'.
- ' border="0" bgcolor="'.$color[9].'"><tr><td align="left" width="33%"><small>';
+ ' border="0" bgcolor="'.$color[9].'"><tr>' .
+ html_tag( 'td', '', 'left', '', 'width="33%"' ) . '<small>';
$msgs_url = $base_uri . 'src/';
if (isset($where) && isset($what)) {
$s .= $topbar_delimiter . $next_link;
}
- $s .= '</small></td>' . "\n" . '<td align="right" width="33%" nowrap><small>';
+ $s .= '</small></td>' . "\n" .
+ html_tag( 'td', '', 'right', '', 'width="33%" nowrap' ) . '<small>';
$comp_action_uri = $comp_uri . '&action=forward';
$s .= $link_open . $comp_action_uri . $link_close . _("Forward") . '</a>';
$url = $base_uri.'src/view_header.php?'.$_SERVER['QUERY_STRING'];
$s = "<TR>\n" .
- '<TD VALIGN="MIDDLE" ALIGN="RIGHT" WIDTH="20%"><B>' . _("Options") . ": </B></TD>\n" .
- '<TD VALIGN="MIDDLE" ALIGN="LEFT" WIDTH="80%"><SMALL>' .
+ html_tag( 'td', '', 'right', '', 'VALIGN="MIDDLE" WIDTH="20%"' ) . '<B>' . _("Options") . ": </B></TD>\n" .
+ html_tag( 'td', '', 'left', '', 'VALIGN="MIDDLE" WIDTH="80%"' ) . '<SMALL>' .
'<a href="'.$url.'">'._("View Full Header").'</a>';
/* Output the printer friendly link if we are in subtle mode. */
echo ' <tr><td>';
echo ' <table width="100%" cellpadding="3" cellspacing="0" align="center" border="0">';
echo ' <tr bgcolor="'.$color[4].'"><td>';
-echo ' <table cellpadding="1" cellspacing="5" align="left" border="0">';
+// echo ' <table cellpadding="1" cellspacing="5" align="left" border="0">';
+echo html_tag( 'table' ,'' , 'left', '', 'cellpadding="1" cellspacing="5" border="0"' );
echo ' <tr>' . html_tag( 'td', '<br>'. $messagebody."\n", 'left')
. '</tr>';
echo ' </table>';
echo ' <table width="100%" cellpadding="1" cellspacing="0" align="center"'.' border="0" bgcolor="'.$color[9].'">';
echo ' <tr><td>';
echo ' <table width="100%" cellpadding="0" cellspacing="0" align="center" border="0" bgcolor="'.$color[4].'">';
- echo ' <tr><td ALIGN="left" bgcolor="'.$color[9].'">';
+ // echo ' <tr><td ALIGN="left" bgcolor="'.$color[9].'">';
+ echo ' <tr>' . html_tag( 'td', '', 'left', $color[9] );
echo ' <b>' . _("Attachments") . ':</b>';
echo ' </td></tr>';
echo ' <tr><td>';