X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=436deb338f609269a92e5ef979f986b4ec3af90f;hb=9ed801576fc2cfc3859e8bcbc3a5441be5610f74;hp=1272053f74bbab0d948a52ad6349b67272f2f18e;hpb=a1a39832a5ddac69630f8c85dd8882a24f986b32;p=squirrelmail.git diff --git a/src/left_main.php b/src/left_main.php index 1272053f..436deb33 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -120,9 +120,13 @@ function ListBoxes ($boxes, $j=0 ) { /* If there are unseen message, bold the line. */ if (($move_to_trash) && ($mailbox == $trash_folder)) { - if (! isset($boxes->total)) { - $boxes->total = sqimap_status_messages($imapConnection, $mailbox); + + if ( !is_numeric($boxes->total) ) { + $result = sqimap_status_messages($imapConnection, $mailbox); + $boxes->total = $result['MESSAGES']; + $boxes->unseen = $result['UNSEEN']; } + $pre .= ""; if ($unseen > 0) { $pre .= ''; @@ -134,7 +138,7 @@ function ListBoxes ($boxes, $j=0 ) { if ($unseen_found) { $end .= " $unseen_string"; } - $end .= "\n\t" . + $end .= "\n" . '  ['._("Purge").']'. ''; } @@ -679,8 +683,13 @@ if ($advanced_tree) { echo '


';*/ } -echo "\n\n" . - '
'. _("Folders") . "
\n\n"; +echo "\n\n" . html_tag( 'table', '', 'left', '', 'border="0" cellspacing="0" cellpadding="0" width="99%"' ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'left' ) . + html_tag( 'table', '', '', '', 'border="0" cellspacing="0" cellpadding="0"' ) . + html_tag( 'tr' ) . + html_tag( 'td', '', 'center' ) . + ''. _("Folders") . "
\n\n"; if ($date_format != 6) { /* First, display the clock. */ @@ -723,11 +732,9 @@ if ($date_format != 6) { /* Next, display the refresh button. */ echo '
['. - _("Check mail") . "]

\n\n"; + _("Check mail") . "]

\n\n"; /* Lastly, display the folder list. */ -echo "
\n"; - if ( $collapse_folders ) { /* If directed, collapse or uncollapse a folder. */ @@ -773,10 +780,9 @@ if (isset($advanced_tree) && $advanced_tree) { ListBoxes($boxes); } -echo "
\n"; - do_hook('left_main_after'); sqimap_logout($imapConnection); ?> +