html cleanups
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 15 Apr 2005 09:39:22 +0000 (09:39 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 15 Apr 2005 09:39:22 +0000 (09:39 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9297 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/left_main.php

index 1c292e9..79aa3da 100644 (file)
@@ -124,40 +124,29 @@ function ListBoxes ($boxes, $j=0 ) {
         if (! isset($boxes->total)) {
             $boxes->total = sqimap_status_messages($imapConnection, $mailbox);
         }
-        if ($unseen > 0) {
-            $pre .= '<b>';
-        }
         $pre .= "<a href=\"right_main.php?PG_SHOWALL=0&amp;startMessage=1&amp;mailbox=$mailboxURL\" target=\"right\" style=\"text-decoration:none\">";
-        $end .= '</a>';
         if ($unseen > 0) {
+            $pre .= '<b>';
             $end .= '</b>';
         }
+        $end .= '</a>';
         if ($boxes->total > 0) {
-            if ($unseen > 0) {
-                $pre .= '<b>';
-            }
-            $pre .= "<a href=\"right_main.php?PG_SHOWALL=0&amp;startMessage=1&amp;mailbox=$mailboxURL\" target=\"right\" style=\"text-decoration:none\">";
-            if ($unseen > 0) {
-                $end .= '</b>';
-            }
             /* Print unseen information. */
             if ($unseen_found) {
                 $end .= "&nbsp;<small>$unseen_string</small>";
             }
+            $end .= "\n\t<small>" .
+                 '&nbsp;&nbsp;[<a href="empty_trash.php">'._("Purge").'</a>]'.
+                 '</small>';
         }
-        $end .= "\n\t<small>" .
-                '&nbsp;&nbsp;[<a href="empty_trash.php">'._("Purge").'</a>]'.
-                '</small>';
     } else {
         if (!$boxes->is_noselect) {
-            if ($unseen > 0) {
-                $pre .= '<b>';
-            }
             $pre .= "<a href=\"right_main.php?PG_SHOWALL=0&amp;startMessage=1&amp;mailbox=$mailboxURL\" target=\"right\" style=\"text-decoration:none\">";
-            $end .= '</a>';
             if ($unseen > 0) {
+                $pre .= '<b>';
                 $end .= '</b>';
             }
+            $end .= '</a>';
         }
         /* Print unseen information. */
         if ($unseen_found) {