浏览代码

Cleaned up Tyler's table layout update just a hair.
The rowspan check for the table doesn't need to
happen if the CC: row spans two columns. Looks
better, too :) (tyler da man!)

allah03 24 年之前
父节点
当前提交
7df50ca13d
共有 1 个文件被更改,包括 2 次插入7 次删除
  1. 2 7
      src/read_body.php

+ 2 - 7
src/read_body.php

@@ -334,7 +334,7 @@
    echo '      </TABLE>';
    echo '   </TD></TR>';
    echo '   <TR><TD CELLSPACING="0" WIDTH="100%">';
-   echo '   <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="3">' . "\n";
+   echo '   <TABLE WIDTH="100%" BORDER="1" CELLSPACING="0" CELLPADDING="3">' . "\n";
    echo '      <TR>' . "\n";
    /** subject **/
    echo "         <TD BGCOLOR=\"$color[0]\" WIDTH=5% ALIGN=RIGHT>\n";
@@ -342,12 +342,7 @@
    echo "         </TD><TD BGCOLOR=\"$color[0]\" WIDTH=90%>\n";
    echo "            <B>$subject</B>&nbsp;\n";
    echo "         </TD>\n";
-   echo '         <TD ROWSPAN=';
-   if (isset($cc_string))
-      echo '5';
-   else
-      echo '4';
-   echo ' width=5% BGCOLOR="'.$color[0].'" ALIGN=right VALIGN=top NOWRAP><small>' . "\n";
+   echo '         <TD ROWSPAN="4" width=5% BGCOLOR="'.$color[0].'" ALIGN=right VALIGN=top NOWRAP><small>' . "\n";
    if ($where && $what) {
       // Got here from a search
       echo "<a href=\"read_body.php?mailbox=$urlMailbox&passed_id=$passed_id&where=".urlencode($where)."&what=".urlencode($what)."&view_hdr=1\">" . _("View full header") . "</a>\n";