From: robsiemb Date: Tue, 27 Aug 2002 18:15:55 +0000 (+0000) Subject: . fixed 'heigth' typo to 'height' X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=c8fa94cf3d718aff198e188392215457410d5c89 . fixed 'heigth' typo to 'height' . changed rollover highlighting to use CSS . changed the ID tags to use 4 character identifiers to deal with large folder trees git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3479 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/left_main.php b/src/left_main.php index 0a768061..fe0a2ff7 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -66,7 +66,7 @@ function formatMailboxName($imapConnection, $box_array) { if ($unseen > 0) { $line .= ''; } /* Crate the link for this folder. */ - $line .= ""; + $line .= ""; if ($special_color) { $line .= ""; } @@ -253,7 +253,7 @@ function listBoxes ($boxes, $j=0 ) { } } else { if (!$boxes->is_noselect) { - $pre .= ""; + $pre .= ""; $end .= ''; } } @@ -286,12 +286,12 @@ function listBoxes ($boxes, $j=0 ) { } } -function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0' ) { +function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0000' ) { global $data_dir, $username, $startmessage, $color, $unseen_notify, $unseen_type, $move_to_trash, $trash_folder, $collapse_folders; /* use_folder_images only works if the images exist in ../images */ - $use_folder_images = false; + $use_folder_images = true; $pre = ''; $end = ''; @@ -312,10 +312,23 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0' ) { } } else $unseen = 0; - /* If there are unseen message, bold the line. */ if ($unseen > 0) { $pre .= ''; } + /* color special boxes */ + if ($boxes->is_special) { + $pre .= ""; + $end .= ""; + } + + /* If there are unseen message, close bolding. */ + if ($unseen > 0) { $end .= ""; } + + /* Print unseen information. */ + if (isset($unseen_found) && $unseen_found) { + $end .= " $unseen_string"; + } + if (($move_to_trash) && ($mailbox == $trash_folder)) { if (! isset($numMessages)) { $numMessages = $boxes->total; @@ -323,32 +336,16 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0' ) { if ($numMessages > 0) { $urlMailbox = urlencode($mailbox); $pre .= "\n\n" . - "  ("._("purge").")" . + "  ("._("purge").")" . ""; } } else { if (!$boxes->is_noselect) { /* \Noselect boxes can't be selected */ - $pre .= ""; + $pre .= ""; $end .= ''; } } - /* If there are unseen message, close bolding. */ - if ($unseen > 0) { $end .= ""; } - - /* Print unseen information. */ - if (isset($unseen_found) && $unseen_found) { - $end .= " $unseen_string"; - } - - $font = ''; - $fontend = ''; - - /* color special boxes */ - if ($boxes->is_special) { - $font = ""; - $fontend = ""; - } if (!$boxes->is_root) { if ($use_folder_images) { if ($boxes->is_inbox) { @@ -360,12 +357,12 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0' ) { } else if ($boxes->is_draft) { $folder_img = '../images/draft.gif'; } else $folder_img = '../images/folder.gif'; - $folder_img = '  '; + $folder_img = '  '; } else $folder_img = ''; if (!isset($boxes->mbxs[0])) { echo ' ' . html_tag( 'div', - $folder_img .$pre .$font. $boxes->mailboxname_sub .$fontend . $end , - 'left', '', 'class="mbx_sub" id="' .$j. '" onmouseover="changerowcolor(this,true)" onmouseout="changerowcolor(this,false)"' ) + $pre . $folder_img . $boxes->mailboxname_sub . $end , + 'left', '', 'class="mbx_sub" id="' .$j. '"' ) . "\n"; } else { /* get collapse information */ @@ -391,10 +388,10 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0' ) { $collapse_link = $link; } else $collapse_link=''; echo ' ' . html_tag( 'div', - $collapse_link . $folder_img .$pre. $font. '  '. $boxes->mailboxname_sub .$fontend . $end , - 'left', '', 'class="mbx_par" id="' .$j. 'P" onmouseover="changerowcolor(this,true)" onmouseout="changerowcolor(this,false)"' ) + $collapse_link . $pre . $folder_img . ' '. $boxes->mailboxname_sub . $end , + 'left', '', 'class="mbx_par" id="' .$j. 'P"' ) . "\n"; - echo ' '."\n"; + echo ' '."\n"; } } if ($collapse) { @@ -404,10 +401,10 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0' ) { } if (isset($boxes->mbxs[0]) && !$boxes->is_root) /* mailbox contains childs */ - echo html_tag( 'div', '', 'left', '', 'class="par_area" id='.$j.'.0 '. $visible ) . "\n"; + echo html_tag( 'div', '', 'left', '', 'class="par_area" id='.$j.'.0000 '. $visible ) . "\n"; - if ($j !='ID.0') { - $j = $j .'.0'; + if ($j !='ID.0000') { + $j = $j .'.0000'; } for ($i = 0; $i mbxs); $i++) { $j++; @@ -466,7 +463,7 @@ $xtra .= << +