displayPageHeader($color, 'None');
- echo "<BR><TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">";
+ echo "<BR><TABLE WIDTH=\"100%\" BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">";
echo "<B><CENTER>";
echo _("Viewing a text attachment") . " - ";
if ($where && $what) {
echo "</CENTER></B>";
echo "</TD></TR></TABLE>";
- echo "<TABLE WIDTH=98% BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">";
+ echo "<TABLE WIDTH=\"98%\" BORDER=0 CELLSPACING=0 CELLPADDING=2 ALIGN=CENTER><TR><TD BGCOLOR=\"$color[0]\">";
echo "<TR><TD BGCOLOR=\"$color[4]\"><TT>";
if ($type1 == 'html') {
}
if (strlen($filename) < 1) {
- if ($type1 == "plain" && $type0 == "text") $suffix = "txt";
- else if ($type1 == "richtext" && $type0 == "text") $suffix = "rtf";
- else if ($type1 == "postscript" && $type0 == "application") $suffix = "ps";
- else if ($type1 == "message" && $type0 == "rfc822") $suffix = "msg";
- else $suffix = $type1;
+ if ($type1 == 'plain' && $type0 == 'text') {
+ $suffix = 'txt';
+ } else if ($type1 == 'richtext' && $type0 == 'text') {
+ $suffix = 'rtf';
+ } else if ($type1 == 'postscript' && $type0 == 'application') {
+ $suffix = 'ps';
+ } else if ($type1 == 'message' && $type0 == 'rfc822') {
+ $suffix = 'msg';
+ } else {
+ $suffix = $type1;
+ }
$filename = "untitled$passed_ent_id.$suffix";
}