From 599038d5090ca347c24979558b2bc6750f2e170a Mon Sep 17 00:00:00 2001 From: stekkel Date: Fri, 24 May 2002 17:29:00 +0000 Subject: [PATCH] update layout advanced tree git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2861 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/left_main.php | 215 ++++++++++++++++++++++++++++++++++++---------- 1 file changed, 168 insertions(+), 47 deletions(-) diff --git a/src/left_main.php b/src/left_main.php index 8d474f41..34617ded 100644 --- a/src/left_main.php +++ b/src/left_main.php @@ -380,9 +380,9 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0' ) { $collapse = ($collapse == '' ? SM_BOX_UNCOLLAPSED : $collapse); } if ($collapse) { - $link = ''." "; + $link = ''." "; } else { - $link = ''.""; + $link = ''.""; } $collapse_link = $link; } else $collapse_link=''; @@ -414,7 +414,7 @@ function ListAdvancedBoxes ($boxes, $mbx, $j='ID.0' ) { /* -------------------- MAIN ------------------------ */ -global $delimiter, $default_folder_prefix; +global $delimiter, $default_folder_prefix, $left_size; // open a connection on the imap port (143) $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10); // the 10 is to hide the output @@ -453,37 +453,45 @@ $oldway = true; /* default SM behaviour */ if ($advanced_tree) { $xtra .= << + ECHO; /* style definitions */ - +/* if you use konquerer and have problems with the width of mbx_par delete the line height = 100% */ +/* if you do that then ie6 have problems :-( solution is browserdetection */ $xtra .= << @@ -617,6 +730,15 @@ if ($auto_create_special && !isset($auto_create_done)) { echo "\n\n"; do_hook('left_main_before'); +if ($advanced_tree) { + /* nice future feature, needs layout !! volunteers? */ + $right_pos = $left_size - 20; + echo '
'; + echo ''; + echo ''; + echo '
'; + echo '


'; +} echo '
'. _("Folders") . "
\n\n"; @@ -742,10 +864,9 @@ for ($i = 0; $i < count($boxes); $i++) { ListBoxes($boxes); } } /* if ($oldway) else ... */ - do_hook('left_main_after'); sqimap_logout($imapConnection); -echo "\n"; +echo "
\n"; ?> -- 2.25.1