little prettier header display when reading messages
authorjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 7 Oct 2002 06:21:29 +0000 (06:21 +0000)
committerjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 7 Oct 2002 06:21:29 +0000 (06:21 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3787 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/read_body.php

index fca049e62e2b156e4bbfd443db85bf9e3b232bea..0922c2427d2596ab1b78393b0ed205c2be6e1033 100644 (file)
@@ -445,8 +445,8 @@ function formatEnvheader($mailbox, $passed_id, $passed_ent_id, $message,
         }
     }
 
-    $s  = '<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0"';
-    $s .= ' ALIGN="center" BGCOLOR="' . $color[0] . '">';
+    $s  = '<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="2" BORDER="0"';
+    $s .= ' ALIGN="center" BGCOLOR="'.$color[0].'">';
     foreach ($env as $key => $val) {
         if ($val) {
             $s .= '<TR>';
@@ -455,10 +455,15 @@ function formatEnvheader($mailbox, $passed_id, $passed_ent_id, $message,
             $s .= '</TR>';
         }
     }
+    echo '<TABLE BGCOLOR="'.$color[9].'" WIDTH="100%" CELLPADDING="1"'.
+         ' CELLSPACING="0" BORDER="0" ALIIGN="center">'."\n";
+    echo '<TR><TD HEIGHT="7" COLSPAN="2" BGCOLOR="'.$color[4].'"></TD></TR><TR><TD align=center>'."\n";
     echo $s;
     do_hook("read_body_header");
     formatToolbar($mailbox, $passed_id, $passed_ent_id, $message, $color);
     echo '</TABLE>';
+    echo '</TD></TR><TR><TD HEIGHT="7" COLSPAN="2" BGCOLOR="'.$color[4].'"></TD></TR>'."\n";
+    echo '</TABLE>';
 }
 
 function formatMenubar($mailbox, $passed_id, $passed_ent_id, $message, $mbx_response) {