X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Foptions_display.php;h=b258a075c1bd6fb1302ddefb1167fd908902683a;hb=2016e64507116836c60613a7e0569a9e9f7b5f57;hp=ea49ee617f8b431b0b87ee1600ea836b53b0e26b;hpb=c36ed9cfc1635cd9a8f80d9cdf8200628777903f;p=squirrelmail.git diff --git a/src/options_display.php b/src/options_display.php index ea49ee61..b258a075 100644 --- a/src/options_display.php +++ b/src/options_display.php @@ -7,262 +7,104 @@ ** ** Displays all optinos about display preferences ** + ** $Id$ **/ - session_start(); + require_once('../src/validate.php'); + require_once('../functions/display_messages.php'); + require_once('../functions/imap.php'); + require_once('../functions/array.php'); + require_once('../functions/plugin.php'); + require_once('../functions/options.php'); - if (!isset($config_php)) - include("../config/config.php"); - if (!isset($strings_php)) - include("../functions/strings.php"); - if (!isset($page_header_php)) - include("../functions/page_header.php"); - if (!isset($display_messages_php)) - include("../functions/display_messages.php"); - if (!isset($imap_php)) - include("../functions/imap.php"); - if (!isset($array_php)) - include("../functions/array.php"); - if (!isset($i18n_php)) - include("../functions/i18n.php"); - - include("../src/load_prefs.php"); - displayPageHeader($color, "None"); - $chosen_language = getPref($data_dir, $username, "language"); + displayPageHeader($color, 'None'); + $chosen_language = getPref($data_dir, $username, 'language'); ?> -
-
-
+
+ + +
+ +
-
- - - +
: - - +
+ +
+ + _("JavaScript"), + '0' => _("HTML") ), + $use_javascript_addr_book ); + OptionText( _("Number of Messages to Index"), 'shownum', $show_num, 5 ); + OptionText( _("Wrap incoming text at"), 'wrapat', $wrap_at, 5 ); + OptionText( _("Size of editor window"), 'editorsize', $editor_size, 5 ); + OptionSelect( _("Location of buttons when composing"), + 'button_new_location', + array( 'top' => _("Before headers"), + 'between' => _("Between headers and message body"), + 'bottom' => _("After message body") ), + $location_of_buttons ); + OptionSelect( _("Location of folder list"), + 'folder_new_location', + array( '' => _("Left"), + 'right' => _("Right") ), + $location_of_bar ); + for ($i = 100; $i <= 300; $i += 10) { + $res[$i] = $i . _("pixels"); } - echo " "; -?> - - - - - - - - - - - - - - - - - - - - - '; + do_hook('options_display_inside'); + OptionSubmit(); ?> - - - - - -
: - -"; -?> -
  - - "; - if ($use_javascript_addr_book == true) { - echo " " . _("JavaScript") . "    "; - echo " " . _("HTML"); - } else { - echo " " . _("JavaScript") . "    "; - echo " " . _("HTML"); - } - ?> -
: - -
"; - else - echo "
"; -?> -
: - -
"; - else - echo "
"; -?> -
: - -= 10 && $editor_size <= 255) - echo "
"; - else - echo "
"; -?> -
: - -\n"; - if ($left_size == 100) - echo "
: - -"; - if (($left_refresh == "None") || ($left_refresh == "")) - echo "

  - - -
+ +
- + + + +
+ +
+ \ No newline at end of file