From 9a732bb67ea88537b219f500b9ef3faf487a893b Mon Sep 17 00:00:00 2001 From: fidian Date: Thu, 28 Sep 2000 12:23:13 +0000 Subject: [PATCH] Folder list bar on left/right git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@766 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- po/squirrelmail.po | 14 +++++++++++++- src/load_prefs.php | 4 ++++ src/options.php | 1 + src/options_display.php | 14 +++++++++++++- src/webmail.php | 35 ++++++++++++++++++++++++----------- 5 files changed, 55 insertions(+), 13 deletions(-) diff --git a/po/squirrelmail.po b/po/squirrelmail.po index c4494b67..75e4a835 100644 --- a/po/squirrelmail.po +++ b/po/squirrelmail.po @@ -554,7 +554,19 @@ msgid "Size of editor window" msgstr "" #: squirrelmail/src/options_display.php:121 -msgid "Width of left folder list" +msgid "Location of folder list" +msgstr "" + +#: squirrelmail/src/options_display.php:125 +msgid "Left" +msgstr "" + +#: squirrelmail/src/options_display.php:128 +msgid "Right" +msgstr "" + +#: squirrelmail/src/options_display.php:121 +msgid "Width of folder list" msgstr "" #: squirrelmail/src/options_display.php:175 diff --git a/src/load_prefs.php b/src/load_prefs.php index fefc5c37..391ff213 100644 --- a/src/load_prefs.php +++ b/src/load_prefs.php @@ -147,6 +147,10 @@ $message_highlight_list[$i]["value"] = $ary[2]; $message_highlight_list[$i]["match_type"] = $ary[3]; } + + $location_of_bar = getPref($data_dir, $username, 'location_of_bar'); + if ($location_of_bar == '') + $location_of_bar = 'left'; do_hook("loading_prefs"); diff --git a/src/options.php b/src/options.php index 1bd019a0..7e2b1aa4 100644 --- a/src/options.php +++ b/src/options.php @@ -65,6 +65,7 @@ setPref($data_dir, $username, "editor_size", $editorsize); setPref($data_dir, $username, "left_refresh", $leftrefresh); setPref($data_dir, $username, "language", $language); + setPref($data_dir, $username, 'location_of_bar', $folder_new_location); setPref($data_dir, $username, "left_size", $leftsize); setPref($data_dir, $username, "use_javascript_addr_book", $javascript_abook); diff --git a/src/options_display.php b/src/options_display.php index 7cdb3ed9..37227bd6 100644 --- a/src/options_display.php +++ b/src/options_display.php @@ -118,7 +118,19 @@ - : + : + + + + + : \n"; diff --git a/src/webmail.php b/src/webmail.php index b7fb6d7c..d0ad62b1 100644 --- a/src/webmail.php +++ b/src/webmail.php @@ -71,8 +71,15 @@ echo "$org_title"; echo ""; $ishelp = substr(getenv(REQUEST_URI),-8); // If calling help, set left frame to 300 - if ($ishelp == "help.php") { - echo ""; + + if (ishelp == 'help.php') + $bar_size = 300; + else + $bar_size = $left_size; + + if ($location_of_bar == 'right') + { + echo ""; } else { echo ""; } @@ -91,19 +98,25 @@ **/ if ($right_frame == "right_main.php") { $urlMailbox = urlencode($mailbox); - echo ""; - echo ""; + $right_frame_url = "right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage"; } else if ($right_frame == "options.php") { - echo ""; - echo ""; + $right_frame_url = "options.php"; } else if ($right_frame == "folders.php") { - $urlMailbox = urlencode($mailbox); - echo ""; - echo ""; + $right_frame_url = "folders.php"; } else { - echo ""; if (!isset($just_logged_in)) $just_logged_in = 0; - echo ""; + $right_frame_url = "right_main.php?just_logged_in=$just_logged_in"; + } + + if ($location_of_bar == 'right') + { + echo ""; + echo ""; + } + else + { + echo ""; + echo ""; } ?> -- 2.25.1