Folder list bar on left/right
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 28 Sep 2000 12:23:13 +0000 (12:23 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 28 Sep 2000 12:23:13 +0000 (12:23 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@766 7612ce4b-ef26-0410-bec9-ea0150e637f0

po/squirrelmail.po
src/load_prefs.php
src/options.php
src/options_display.php
src/webmail.php

index c4494b6..75e4a83 100644 (file)
@@ -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
index fefc5c3..391ff21 100644 (file)
       $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");
 
index 1bd019a..7e2b1aa 100644 (file)
@@ -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);
     
index 7cdb3ed..37227bd 100644 (file)
             </td>
          </tr>
          <tr>
-            <td align=right nowrap><?php echo _("Width of left folder list"); ?>:
+            <td align=right nowrap><?PHP echo _('Location of folder list') ?>:</td>
+            <td><select name="folder_new_location">
+                <option value="left"<?PHP
+                    if ($location_of_bar != 'right') echo ' SELECTED';
+                    ?>><?PHP echo _('Left'); ?></option>
+                <option value="right"<?PHP
+                    if ($location_of_bar == 'right') echo ' SELECTED';
+                    ?>><?PHP echo _('Right'); ?></option>
+                </select>
+            </td>
+         </tr>
+         <tr>
+            <td align=right nowrap><?php echo _("Width of folder list"); ?>:
             </td><td>
 <?php
    echo "         <select name=leftsize>\n";
index b7fb6d7..d0ad62b 100644 (file)
    echo "$org_title";
    echo "</TITLE>";
    $ishelp = substr(getenv(REQUEST_URI),-8);                   // If calling help, set left frame to 300
-   if ($ishelp == "help.php") {                        
-      echo "<FRAMESET COLS=\"300, *\" NORESIZE=yes BORDER=0>";
+   
+   if (ishelp == 'help.php')
+       $bar_size = 300;
+   else
+       $bar_size = $left_size;
+   
+   if ($location_of_bar == 'right')
+   {
+      echo "<FRAMESET COLS=\"*, $left_size\" NORESIZE=yes BORDER=0>";
    } else {
       echo "<FRAMESET COLS=\"$left_size, *\" NORESIZE BORDER=0>";
    }
 **/
    if ($right_frame == "right_main.php") {
       $urlMailbox = urlencode($mailbox);
-      echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
-      echo "<FRAME SRC=\"right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage\" NAME=\"right\">";
+      $right_frame_url = "right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage";
    } else if ($right_frame == "options.php") {
-      echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
-      echo "<FRAME SRC=\"options.php\" NAME=\"right\">";
+      $right_frame_url = "options.php";
    } else if ($right_frame == "folders.php") {
-      $urlMailbox = urlencode($mailbox);
-      echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
-      echo "<FRAME SRC=\"folders.php\" NAME=\"right\">";
+      $right_frame_url = "folders.php";
    } else {
-      echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
       if (!isset($just_logged_in)) $just_logged_in = 0;
-      echo "<FRAME SRC=\"right_main.php?just_logged_in=$just_logged_in\" NAME=\"right\">";
+      $right_frame_url = "right_main.php?just_logged_in=$just_logged_in";
+   }
+
+   if ($location_of_bar == 'right')
+   {
+      echo "<FRAME SRC=\"$right_frame_url\" NAME=\"right\">";
+      echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
+   }
+   else
+   {
+      echo "<FRAME SRC=\"left_main.php\" NAME=\"left\">";
+      echo "<FRAME SRC=\"$right_frame_url\" NAME=\"right\">";
    }
 
 ?>