displayHtmlHeader( $org_name.' - '.$errTitle, '', false );
echo '<body text="'.$color[8].'" bgcolor="'.$color[4].'" link="'.$color[7].'" vlink="'.$color[7].'" alink="'.$color[7]."\">\n\n".
- '<center>';
+ '<div style="text-align: center;">';
if (isset($org_logo) && ($org_logo != '')) {
echo '<img src="'.$org_logo.'" alt="'.sprintf(_("%s Logo"), $org_name).
'<font color="'.$color[2].'"><b>'.
'<a href="'.$base_uri.'src/login.php" target="'.$frame_top.'">'.
_("Go to the login page") . '</a></b></font></td></tr>'.
- '</table></td></tr></table></center></body></html>';
+ '</table></td></tr></table></div></body></html>';
}
/**
if (isset($passed_ent_id)) {
$link .= '&passed_ent_id='.$passed_ent_id;
}
- $body .= '<center><small><a href="download.php?absolute_dl=true&' .
+ $body .= '<div style="text-align: center;"><small><a href="download.php?absolute_dl=true&' .
$link . '">' . _("Download this as a file") . '</a>';
if ($view_unsafe_images) {
$text = _("Hide Unsafe Images");
if($text != '') {
$body .= ' | <a href="read_body.php?' . $link . '">' . $text . '</a>';
}
- $body .= '</small></center><br />' . "\n";
+ $body .= '</small></div><br />' . "\n";
}
return $body;
}
global $message;
echo '<br />' . addForm(SM_PATH . 'plugins/abook_take/take.php') .
- '<center>' . "\n";
+ '<div style="text-align: center;">' . "\n";
if (isset($message->rfc822_header->reply_to))
abook_take_read_array($message->rfc822_header->reply_to);
abook_take_read_array($message->rfc822_header->to);
echo addSubmit(_("Take Address")) .
- '</center></form>';
+ '</div></form>';
}
function abook_take_pref()
}
echo '<form action="options.php" method="post" name="options">' .
- '<center><table width="95%" bgcolor="'.$color[5].'"><tr><td>'.
+ '<div style="text-align: center;"><table width="95%" bgcolor="'.$color[5].'"><tr><td>'.
'<table width="100%" cellspacing="0" bgcolor="'.$color[4].'">'.
'<tr bgcolor="'.$color[5].'"><th colspan="2">'.
_("Configuration Administrator").'</th></tr>'.
$i++;
}
}
- echo '<tr><td colspan="2"><input type="hidden" name="plg" value="on" /><center><table>';
+ echo '<tr><td colspan="2"><input type="hidden" name="plg" value="on" /><div style="text-align: center;"><table>';
foreach ( $op_plugin as $plg ) {
if ( in_array( $plg, $plugins ) ) {
$sw = ' checked="checked"';
"<td><input$sw type=\"checkbox\" name=\"plgs_$plg\" /></td>".
"</tr>\n";
}
- echo '</table></center></td></tr>';
+ echo '</table></div></td></tr>';
} else {
echo '<tr><td colspan="2" align="center">'.
sprintf(_("Plugin directory could not be found: %s"), $plugpath).
_("Change Settings").'" type="submit" /><br />'.
'<a href="'.SM_PATH.'src/configtest.php" target="_blank">'.
_("Test Configuration")."</a></th></tr>\n".
- '</table></td></tr></table></center></form>';
+ '</table></td></tr></table></div></form>';
/*
Write the options to the file.
<br />
<table align="center" cellpadding="2" cellspacing="2" border="0">
<tr><td bgcolor="<?php echo $color[0] ?>">
- <center><b><?php echo _("Change Password") ?></b></center>
+ <div style="text-align: center;"><b><?php echo _("Change Password") ?></b></div>
</td><?php
if (isset($Messages) && count($Messages) > 0) {
} elseif (sqgetGlobalVar('user_submit',$user_submit,SQ_POST)) {
sqgetGlobalVar('filters_user_scan_set',$filters_user_scan_set,SQ_POST);
setPref($data_dir, $username, 'filters_user_scan', $filters_user_scan_set);
- echo '<br /><center><b>'._("Saved Scan type")."</b></center>\n";
+ echo '<br /><div style="text-align: center;"><b>'._("Saved Scan type")."</b></div>\n";
}
$filters = load_filters();
echo html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
- '<center><b>' . _("Options") . ' - ' . _("Message Filtering") . '</b></center>' ,
+ '<div style="text-align: center;"><b>' . _("Options") . ' - ' . _("Message Filtering") . '</b></div>' ,
'left', $color[0]
)
),
'center', '', 'width="95%" border="0" cellpadding="2" cellspacing="0"'
) .
'<br /><form method="post" action="options.php">'.
- '<center>'.
+ '<div style="text-align: center;">'.
html_tag( 'table', '', '', '', 'border="0" cellpadding="2" cellspacing="0"' ) .
html_tag( 'tr' ) .
html_tag( 'th', _("What to Scan:"), 'right', '', 'style="white-space: nowrap;"' ) .
'</td>'.
html_tag( 'td', '<input type="submit" name="user_submit" value="' . _("Save") . '" />', 'left' ) .
'</table>'.
- '</center>'.
+ '</div>'.
'</form>'.
html_tag( 'div', '[<a href="options.php?action=add">' . _("New") .
}
echo '<form method="post" action="spamoptions.php">'.
- '<center>'.
+ '<div style="text-align: center;">'.
html_tag( 'table', '', '', '', 'width="85%" border="0" cellpadding="2" cellspacing="0"' ) .
html_tag( 'tr' ) .
html_tag( 'th', _("Move spam to:"), 'right', '', 'style="white-space: nowrap;"' ) .
html_tag( 'td', '<input type="submit" name="spam_submit" value="' . _("Save") . '" />', 'center', '', 'colspan="2"' )
) . "\n" .
'</table>'.
- '</center>'.
+ '</div>'.
'</form>';
} else {
// action is not set or action is not spam
echo html_tag( 'p', '', 'center' ) .
'[<a href="spamoptions.php?action=spam">' . _("Edit") . '</a>]' .
- ' - [<a href="../../src/options.php">' . _("Done") . '</a>]</center><br /><br />';
+ ' - [<a href="../../src/options.php">' . _("Done") . '</a>]</div><br /><br />';
printf( _("Spam is sent to %s."), ($filters_spam_folder?'<b>'.htmlspecialchars(imap_utf7_decode_local($filters_spam_folder)).'</b>':'[<i>'._("not set yet").'</i>]' ) );
echo '<br />';
printf( _("Spam scan is limited to %s."), '<b>' . ( ($filters_spam_scan == 'new')?_("Unread messages only"):_("All messages") ) . '</b>' );
$fortune_command=$fortune_location;
}
- echo "<center><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"$color[10]\">\n".
+ echo "<div style="text-align: center;"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"$color[10]\">\n".
"<tr><td><table width=\"100%\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\" bgcolor=\"$color[5]\">\n".
"<tr><td align=\"center\">\n";
echo '<table><tr><td>';
if (!$exist) {
printf(_("%s is not found."),$fortune_location);
} else {
- echo "<center><em>" . _("Today's Fortune") . "</em></center><pre>\n" .
+ echo "<div style="text-align: center;"><em>" . _("Today's Fortune") . "</em></div><pre>\n" .
htmlspecialchars(shell_exec($fortune_command)) .
"</pre>\n";
}
- echo '</td></tr></table></td></tr></table></td></tr></table></center>';
+ echo '</td></tr></table></td></tr></table></td></tr></table></div>';
}
/**
'TEST_8',
'TEST_9');
-echo '<br /><center><b>'._("IMAP server information")."</b></center><br />\n".
- '<center><table bgcolor="'.$color[3].'" width="100%" border="1" cellpadding="2">'.
+echo '<br /><div style="text-align: center;"><b>'._("IMAP server information")."</b></div><br />\n".
+ '<div style="text-align: center;"><table bgcolor="'.$color[3].'" width="100%" border="1" cellpadding="2">'.
'<tr><td bgcolor="'.$color[3]."\"><br />\n".
- '<center><table width="95%" border="1" bgcolor="'.$color[3]."\">\n".
+ '<div style="text-align: center;"><table width="95%" border="1" bgcolor="'.$color[3]."\">\n".
'<tr><td bgcolor="'.$color[4].'"><b>'.
_("Server Capability response:").
"</b><br />\n";
'default_charset = '.htmlspecialchars($default_charset)."\n";
}
-echo "<br /></td></tr></table></center><br />\n";
+echo "<br /></td></tr></table></div><br />\n";
if ($submit == 'submit') {
}
echo "<form action=\"options.php\" method=\"post\">\n".
- "<center><table border=\"1\">\n".
+ "<div style="text-align: center;"><table border=\"1\">\n".
'<tr><th>'. _("Select").
'</th><th>'._("Test Name").
'</th><th>'._("IMAP command string")."</th></tr>\n".
addInput($index, $value, 60);
}
-echo "</td></tr></table></center><br />\n".
- '<center>'.
+echo "</td></tr></table></div><br />\n".
+ '<div style="text-align: center;">'.
addSubmit('submit','submit').
addSubmit('clear','submit').
addSubmit('default','submit').
- "</center><br /></form>\n";
+ "</div><br /></form>\n";
$tests = array();
$starttime = (float)$sec + (float)$usec;
}
- echo '<center><table width="95%" border="0" bgcolor="'.$color[4]."\">\n".
+ echo '<div style="text-align: center;"><table width="95%" border="0" bgcolor="'.$color[4]."\">\n".
'<tr><td><b>'.$tests[$i]."</b></td></tr>\n".
'<tr><td><small><b><font color="'.$color[7].'">'.
_("Request:")."</font></b></small></td></tr>\n";
'<tr><td>'.sprintf(_("%s ms"),round((($endtime - $starttime)*1000),3))."</td></tr>\n";
}
- echo "</table></center><br />\n";
+ echo "</table></div><br />\n";
}
}
-echo '</td></tr></table></center>';
+echo '</td></tr></table></div>';
sqimap_logout($imap_stream);
/**
addHidden('mailbox', $mailbox) .
addSubmit(_("Send Mail"), 'send');
?>
-<br /><br /></center>
+<br /><br /></div>
</form></td></tr></table></p></body></html>
\ No newline at end of file
$mailfetch = Mail_Fetch_Servers();
displayPageHeader($color, 'None');
-echo '<br /><center>';
+echo '<br /><div style="text-align: center;">';
echo html_tag( 'table',
html_tag( 'tr',
Mail_Fetch_Status(_("Done"));
}
?>
-</center>
+</div>
</body>
</html>
\ No newline at end of file
sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
- '<center>' .
+ '<div style="text-align: center;">' .
addForm(SM_PATH . 'src/download.php', 'GET').
addHidden('mailbox', $mailbox).
addHidden('passed_id', $passed_id).
'<input type="button" value="' . _("Print") . '" onclick="printPopup()" /> '.
'<input type="button" value="' . _("Close Window") . '" onclick="window.parent.close()" /> '.
addSubmit(_("Save Message")).
- '</form></center>'.
+ '</form></div>'.
'</body>'.
"</html>\n";
?>
\ No newline at end of file
displayHtmlHeader( _("New Mail"), '', FALSE );
echo '<body bgcolor="'.$color[4].'" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">'."\n".
- '<center>'. "\n" .
+ '<div style="text-align: center;">'. "\n" .
html_tag( 'table', "\n" .
html_tag( 'tr', "\n" .
html_tag( 'td', '<b>' . _("SquirrelMail Notice:") . '</b>', 'center', $color[0] )
'center' )
) ,
'', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) .
- '</center>' .
+ '</div>' .
"<script language=javascript>\n".
"<!--\n".
"document.nm.bt.focus();\n".
if ( ! sqgetGlobalVar('sound', $sound, SQ_GET) ) {
$sound = 'Click.wav';
} elseif ( $sound == '(none)' ) {
- echo '<center><form><br /><br />'.
+ echo '<div style="text-align: center;"><form><br /><br />'.
'<b>' . _("No sound specified") . '</b><br /><br />'.
'<input type="button" name="close" value="' . _("Close") . '" onclick="window.close()" />'.
- '</form></center>'.
+ '</form></div>'.
'</body></html>';
return;
}
<br />
<table width="95%" align="center" border="0" cellpadding="2" cellspacing="0">
<tr><td bgcolor="<?php echo $color[0]; ?>">
- <center><b>
+ <div style="text-align: center;"><b>
<?php echo _("Options") . " - " . _("Spam reporting"); ?>
- </b></center>
+ </b></div>
</td></tr></table>
<br />
?>
<table width="95%" align="center" border="0" cellpadding="1" cellspacing="0"><tr><td bgcolor="<?php echo $color[0]; ?>">
- <center><b><?php echo _("Options") . ' - '. _("Translator"); ?></b></center>
+ <div style="text-align: center;"><b><?php echo _("Options") . ' - '. _("Translator"); ?></b></div>
</td></tr></table>
<p><?php echo _("Your server options are as follows:"); ?></p>
<img src="../images/sm_logo.png" width="308" height="111"
alt="SquirrelMail Logo" /><br />
<table align="center" width="80%" cellpadding="1" cellspacing="2" border="0">
-<tr><td bgcolor="#dcdcdc" align="center"><center><b>
+<tr><td bgcolor="#dcdcdc" align="center"><div style="text-align: center;"><b>
<?php echo sprintf(_("About SquirrelMail %s"),$version); ?>
-</b></center></td></tr>
+</b></div></td></tr>
<tr><td>
<br />
<?php echo _("SquirrelMail is the name of the program that provides access to your email via the web."); ?>
/* Search form */
-echo '<center>' .
+echo '<div style="text-align: center;">' .
html_tag( 'table', '', 'center', '', 'border="0"' ) .
html_tag( 'tr' ) .
html_tag( 'td', '', 'left', '', 'style="white-space: nowrap;" valign="middle"' ) . "\n" .
addForm($PHP_SELF.'?html_addr_search=true', 'post', 'f').
- "\n<center>\n" .
+ "\n<div style="text-align: center;">\n" .
' <nobr><strong>' . _("Search for") . "</strong>\n";
addr_insert_hidden();
echo addInput('addrquery', $addrquery, 26);
echo '<input type="submit" value="' . _("Search") . '" />' .
' | <input type="submit" value="' . _("List all") .
'" name="listall" />' . "\n" .
- '</form></center></td></tr></table>' . "\n";
-echo '</center>';
+ '</form></div></td></tr></table>' . "\n";
+echo '</div>';
do_hook('addrbook_html_search_below');
/* End search form */
}
if ($addrquery == '' || sizeof($res) == 0) {
- echo '<center>'.
+ echo '<div style="text-align: center;">'.
addForm('compose.php','post','k');
addr_insert_hidden();
echo '<input type="submit" value="' . _("Return") . '" name="return" />' . "\n" .
- '</form></center></nobr>';
+ '</form></div></nobr>';
}
$oTemplate->display('footer.tpl');
if ( !isset($pageheader_sent) || !$pageheader_sent ) {
Header("Location: $location/compose.php?saved_draft=yes&session=$composesession");
} else {
- echo ' <br><br><center><a href="' . $location
+ echo ' <br><br><div style="text-align: center;"><a href="' . $location
. '/compose.php?saved_sent=yes&session=' . $composesession . '">'
- . _("Return") . '</a></center>';
+ . _("Return") . '</a></div>';
}
exit();
} else {
Header("Location: $location/right_main.php?mailbox=" . urlencode($draft_folder) .
"&startMessage=1¬e=".urlencode($draft_message));
} else {
- echo ' <br><br><center><a href="' . $location
+ echo ' <br><br><div style="text-align: center;"><a href="' . $location
. '/right_main.php?mailbox=' . urlencode($draft_folder)
. '&startMessage=1&note=' . urlencode($draft_message) .'">'
- . _("Return") . '</a></center>';
+ . _("Return") . '</a></div>';
}
exit();
}
if ( !isset($pageheader_sent) || !$pageheader_sent ) {
Header("Location: $location/compose.php?mail_sent=yes");
} else {
- echo ' <br><br><center><a href="' . $location
+ echo ' <br><br><div style="text-align: center;"><a href="' . $location
. '/compose.php?mail_sent=yes">'
- . _("Return") . '</a></center>';
+ . _("Return") . '</a></div>';
}
exit();
} else {
Header("Location: $location/right_main.php?mailbox=$urlMailbox".
"&startMessage=$startMessage&mail_sent=yes");
} else {
- echo ' <br><br><center><a href="' . $location
+ echo ' <br><br><div style="text-align: center;"><a href="' . $location
. "/right_main.php?mailbox=$urlMailbox"
. "&startMessage=$startMessage&mail_sent=yes\">"
- . _("Return") . '</a></center>';
+ . _("Return") . '</a></div>';
}
exit();
}
}
if ($saved_draft == 'yes') {
- echo '<br /><center><b>'. _("Draft Saved").'</center></b>';
+ echo '<br /><div style="text-align: center;"><b>'. _("Draft Saved").'</div></b>';
}
if ($mail_sent == 'yes') {
- echo '<br /><center><b>'. _("Your Message has been sent.").'</center></b>';
+ echo '<br /><div style="text-align: center;"><b>'. _("Your Message has been sent.").'</div></b>';
}
if ($compose_new_win == '1') {
echo '<table align="center" bgcolor="'.$color[0].'" width="100%" border="0">'."\n" .
echo html_tag( 'table',
html_tag( 'tr',
- html_tag( 'td','<center><b>' . _("Help") .'</b></center>', 'center', $color[0] )
+ html_tag( 'td','<div style="text-align: center;"><b>' . _("Help") .'</b></div>', 'center', $color[0] )
) ,
'center', '', 'width="95%" cellpadding="1" cellspacing="2" border="0"' );
if (file_exists("../help/$squirrelmail_language")) {
$user_language = $squirrelmail_language;
} else if (file_exists('../help/en_US')) {
- echo "<center><font color=\"$color[2]\">"
+ echo "<div style="text-align: center;"><font color=\"$color[2]\">"
._("The help has not been translated to the selected language. It will be displayed in English instead.");
- echo '</font></center><br />';
+ echo '</font></div><br />';
$user_language = 'en_US';
} else {
error_box( _("Some or all of the help documents are not present!"), $color );
echo html_tag( 'table', '', 'center', '', 'cellpadding="0" cellspacing="0" border="0"' ) .
html_tag( 'tr' ) .
html_tag( 'td' ) .
- '<center><b>' . _("Table of Contents") . '</b></center><br />';
+ '<div style="text-align: center;"><b>' . _("Table of Contents") . '</b></div><br />';
echo html_tag( 'ol' );
for ($i=0, $cnt = count($helpdir); $i < $cnt; $i++) {
$doc = file("../help/$user_language/$helpdir[$i]");
} else {
$doc = file("../help/$user_language/" . $helpdir[$chapter-1]);
$help_info = get_info($doc, 0);
- echo '<center><small>';
+ echo '<div style="text-align: center;"><small>';
if ($chapter <= 1){
echo '<font color="' . $color[9] . '">' . _("Previous")
. '</font> | ';
echo ' | <a href="../src/help.php?chapter=' . ($chapter+1)
. '">' . _("Next") . '</a>';
}
- echo '</small></center><br />';
+ echo '</small></div><br />';
echo '<font size="5"><b>' . $chapter . ' - ' . $help_info[0]
. '</b></font><br /><br />';
$n = $help_info[3];
}
- echo '<br /><center><a href="#pagetop">' . _("Top") . '</a></center>';
+ echo '<br /><div style="text-align: center;"><a href="#pagetop">' . _("Top") . '</a></div>';
}
do_hook('help_bottom');
'<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">' .
"\n" .
'<tr><td bgcolor="' . $color[0] . '">' .
- '<b><center>' .
+ '<div style="text-align: center;"><b>' .
_("Viewing an image attachment") . " - ";
$msg_url = 'read_body.php?' . $QUERY_STRING;
'&ent_id=' . urlencode($ent_id) . '&absolute_dl=true';
?>
-</b></td></tr>
+</b></div></td></tr>
<tr><td align="center">
<a href="<?php echo $DownloadLink; ?>"><?php echo _("Download this as a file"); ?></a>
<br /> </td></tr></table>
echo html_tag( 'table',
html_tag( 'tr',
html_tag( 'td',
- '<center>'.
+ '<div style="text-align: center;">'.
( isset($org_logo) && $org_logo
? '<img src="' . $org_logo . '" alt="' .
sprintf(_("%s Logo"), $org_name) .'"' . $width_and_height .
) .
html_tag( 'tr',
html_tag( 'td',
- '<center>'. addSubmit(_("Login")) .'</center>',
+ '<div style="text-align: center;">'. addSubmit(_("Login")) .'</div>',
'left' )
),
- '', $color[4], 'border="0" width="350"' ) . '</center>',
+ '', $color[4], 'border="0" width="350"' ) . '</div>',
'center' )
) ,
'', $color[4], 'border="0" cellspacing="0" cellpadding="0" width="100%"' );
echo
html_tag( 'table', "\n" .
html_tag( 'tr', "\n" .
- html_tag( 'td', '<center><b>' . _("Options") . ' - ' . _("Message Highlighting") . '</b></center>', 'left')
+ html_tag( 'td', '<div style="text-align: center;"><b>' . _("Options") . ' - ' . _("Message Highlighting") . '</b></div>', 'left')
),
'center', $color[9], 'width="95%" border="0" cellpadding="1" cellspacing="0"' ) . "<br />\n" .
html_tag( 'table', '', '', '', 'width="100%" border="0" cellpadding="1" cellspacing="0"' ) .
html_tag( 'tr' ) . "\n" .
html_tag( 'td', '', 'left' );
-echo '<center>[<a href="options_highlight.php?action=add">' . _("New") . '</a>]'.
- ' - [<a href="options.php">'._("Done").'</a>]</center><br />'."\n";
+echo '<div style="text-align: center;">[<a href="options_highlight.php?action=add">' . _("New") . '</a>]'.
+ ' - [<a href="options.php">'._("Done").'</a>]</div><br />'."\n";
$mhl_count = count($message_highlight_list);
if ($mhl_count > 0) {
echo html_tag( 'table', '', 'center', '', 'width="80%" border="0" cellpadding="3" cellspacing="0"' ) . "\n";
echo "</table>\n".
"<br />\n";
} else {
- echo '<center>' . _("No highlighting is defined") . "</center><br />\n".
+ echo '<div style="text-align: center;">' . _("No highlighting is defined") . "</div><br />\n".
"<br />\n";
}
if ($action == 'edit' || $action == 'add') {
echo " </td>\n";
echo " </tr>\n";
echo "</table>\n";
- echo '<center><input type="submit" value="' . _("Submit") . "\" /></center>\n";
+ echo '<div style="text-align: center;"><input type="submit" value="' . _("Submit") . "\" /></div>\n";
echo "</form>\n";
}
do_hook('options_highlight_bottom');
echo '<br /><table width="100%" border="0" cellspacing="0" cellpadding="2" ' .
'align="center">' . "\n" .
- '<tr><td bgcolor="' . $color[0] . '"><b><center>' .
+ '<tr><td bgcolor="' . $color[0] . '"><b><div style="text-align: center;">' .
_("Viewing a Business Card") . " - ";
$msg_url = 'read_body.php?mailbox='.urlencode($mailbox).
$msg_url = set_url_var($msg_url, 'ent_id', 0);
echo '<a href="'.$msg_url.'">'. _("View message") . '</a>' .
- '</center></b></td></tr>';
+ '</div></b></td></tr>';
$message = sqimap_get_message($imapConnection, $passed_id, $mailbox);
</td></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr><td bgcolor="<?php echo $color[0]; ?>">
-<center><b><?php echo _("Add to address book"); ?></b></center>
+<div style="text-align: center;"><b><?php echo _("Add to address book"); ?></b></div>
</td></tr>
<tr><td align="center">
<?php echo addForm('../src/addressbook.php', 'post', 'f_add'); ?><br />
displayPageHeader($color, 'None');
?>
<br /><table width="100%" border="0" cellspacing="0" cellpadding="2" align="center"><tr><td bgcolor="<?php echo $color[0]; ?>">
-<b><center>
+<b><div style="text-align: center;">
<?php
echo _("Viewing a text attachment") . ' - ' .
'<a href="'.$msg_url.'">' . _("View message") . '</a>';
?>
-</b></td><tr><tr><td><center>
+</b></td><tr><tr><td><div style="text-align: center;">
<?php
echo '<a href="' . $dwnld_url . '">' . _("Download this as a file") . '</a>';
?>
-</center><br />
-</center></b>
+</div><br />
+</div></b>
</td></tr></table>
<table width="98%" border="0" cellspacing="0" cellpadding="2" align="center"><tr><td bgcolor="<?php echo $color[0]; ?>">
<tr><td bgcolor="<?php echo $color[4]; ?>"><tt>