From: kink Date: Fri, 22 Apr 2005 17:32:28 +0000 (+0000) Subject: do a little cleanup of listadvancedboxes HTML. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=0bcd11eb0e4f9df4de129efe9046955c479d832b do a little cleanup of listadvancedboxes HTML. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9370 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/left_main.php b/src/left_main.php index 79aa3da2..74e1b68f 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. */ @@ -294,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) . @@ -403,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 ); @@ -750,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);