X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fleft_main.php;h=131f81b91a5763f4c6b14b4fd7d84404ceccc00e;hb=8654383dd9cfe18b98c44d6d58ed2980b0890028;hp=1c292e9433abbff30c3892cf999f5998b69c6f50;hpb=3cbf882e8ebef2064f97b553055136e7e4c8d8d9;p=squirrelmail.git diff --git a/src/left_main.php b/src/left_main.php index 1c292e94..131f81b9 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -57,8 +57,7 @@ function ListBoxes ($boxes, $j=0 ) { $unseen = 0; $mailbox = $boxes->mailboxname_full; - $leader = ''; - $leader .= str_repeat('  ',$j); + $leader = str_repeat('  ',$j); $mailboxURL = urlencode($mailbox); /* get unseen/total messages information */ @@ -102,21 +101,21 @@ function ListBoxes ($boxes, $j=0 ) { $link = '$leader '; + $link .= "unfold=$mailboxURL\">$leader '; } else { - $link .= "unfold=$mailboxURL\">$leader+ "; + $link .= "unfold=$mailboxURL\">$leader+ "; } } else { if ($use_icons && $icon_theme != 'none') { - $link .= "fold=$mailboxURL\">$leader '; + $link .= "fold=$mailboxURL\">$leader '; } else { - $link .= "fold=$mailboxURL\">$leader- "; + $link .= "fold=$mailboxURL\">$leader- "; } } $link .= ''; $pre .= $link; } else { - $pre.= $leader . '  '; + $pre.= $leader . '  '; } /* If there are unseen message, bold the line. */ @@ -124,40 +123,29 @@ function ListBoxes ($boxes, $j=0 ) { if (! isset($boxes->total)) { $boxes->total = sqimap_status_messages($imapConnection, $mailbox); } - if ($unseen > 0) { - $pre .= ''; - } $pre .= ""; - $end .= ''; if ($unseen > 0) { + $pre .= ''; $end .= ''; } + $end .= ''; if ($boxes->total > 0) { - if ($unseen > 0) { - $pre .= ''; - } - $pre .= ""; - if ($unseen > 0) { - $end .= ''; - } /* Print unseen information. */ if ($unseen_found) { $end .= " $unseen_string"; } + $end .= "\n\t" . + '  ['._("Purge").']'. + ''; } - $end .= "\n\t" . - '  ['._("Purge").']'. - ''; } else { if (!$boxes->is_noselect) { - if ($unseen > 0) { - $pre .= ''; - } $pre .= ""; - $end .= ''; if ($unseen > 0) { + $pre .= ''; $end .= ''; } + $end .= ''; } /* Print unseen information. */ if ($unseen_found) { @@ -175,7 +163,7 @@ function ListBoxes ($boxes, $j=0 ) { $font = ""; $fontend = ''; } - + // let plugins fiddle with end of line $end .= concat_hook_function('left_main_after_each_folder', array(isset($numMessages) ? $numMessages : '', @@ -185,7 +173,7 @@ function ListBoxes ($boxes, $j=0 ) { if (!$boxes->is_root) { echo "" . $pre .$font. - str_replace( + str_replace( array(' ','<','>'), array(' ','<','>'), $boxes->mailboxname_sub) . @@ -305,13 +293,13 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0000' ) { } else { $folder_img = '../images/folder.png'; } - $folder_img = '  '; + $folder_img = '  '; } else { $folder_img = ''; } if (!isset($boxes->mbxs[0])) { echo ' ' . html_tag( 'div', - ''. $pre . $folder_img . '' . + $pre . $folder_img . str_replace( array(' ','<','>'), array(' ','<','>'), $boxes->mailboxname_sub) . @@ -414,226 +402,235 @@ if (empty($advanced_tree)) { } if ($advanced_tree) { -$xtra .= ''."\n"; +$xtra .= << 35) { + new_col_width = parseInt(RegExp.$1) - 25; + } + } + masterf.cols = calc_col(new_col_width); + } +//--> + + +HEREDOC; /* style definitions */ -$xtra .= ''."\n"; +$xtra .= << + + + +HEREDOC; } displayHtmlHeader( 'SquirrelMail', $xtra ); @@ -682,7 +679,7 @@ if ($advanced_tree) { echo '


';*/ } -echo "\n\n" . +echo "\n\n" . '
'. _("Folders") . "
\n\n"; if ($date_format != 6) { @@ -719,8 +716,8 @@ if ($date_format != 6) { } $clk = str_replace(' ',' ',$clk); - echo '' - . str_replace(' ', ' ', _("Last Refresh")) + echo '' + . str_replace(' ', ' ', _("Last Refresh")) . ":
$clk

\n"; } @@ -761,15 +758,13 @@ if (empty($unseen_notify)) { $boxes = sqimap_mailbox_tree($imapConnection); if (isset($advanced_tree) && $advanced_tree) { echo '
'; + 'enctype="multipart/form-data">'."\n"; echo '

'; echo '
'."\n\n"; sqgetGlobalVar('mbx', $mbx, SQ_POST); if (!isset($mbx)) $mbx=NULL; ListAdvancedBoxes($boxes, $mbx); echo '
'; - echo '
'; echo '
'."\n"; } else { ListBoxes($boxes); @@ -779,4 +774,4 @@ do_hook('left_main_after'); sqimap_logout($imapConnection); ?> - + \ No newline at end of file