Fixed the unable to subscribe folder bug, caused by draft. The problem
[squirrelmail.git] / src / options_display.php
1 <?php
2 /**
3 ** options_display.php
4 **
5 ** Copyright (c) 1999-2000 The SquirrelMail development team
6 ** Licensed under the GNU GPL. For full terms see the file COPYING.
7 **
8 ** Displays all optinos about display preferences
9 **
10 ** $Id$
11 **/
12
13 require_once('../src/validate.php');
14 require_once('../functions/display_messages.php');
15 require_once('../functions/imap.php');
16 require_once('../functions/array.php');
17 require_once('../functions/plugin.php');
18 require_once('../functions/options.php');
19
20 displayPageHeader($color, 'None');
21 $chosen_language = getPref($data_dir, $username, 'language');
22 ?>
23 <br>
24 <table width="95%" align="center" border="0" cellpadding="2" cellspacing="0">
25 <tr><td bgcolor="<?php echo $color[0] ?>" align="center">
26
27 <b><?php echo _("Options") . ' - ' . _("Display Preferences"); ?></b><br>
28
29 <table width="100%" border="0" cellpadding="1" cellspacing="1">
30 <tr><td bgcolor="<?php echo $color[4] ?>" align="center">
31
32 <form name="f" action="options.php" method="post"><br>
33 <table width="100%" cellpadding="2" cellspacing="0" border="0">
34 <?php
35 OptionSelect( _("Theme"), 'chosentheme', $theme, $chosen_theme, 'NAME', 'PATH' );
36 OptionSelect( _("Language"), 'language', $languages, $chosen_language, 'NAME' );
37 OptionRadio( _("Use Javascript or HTML addressbook?"),
38 'javascript_abook',
39 array( '1' => _("JavaScript"),
40 '0' => _("HTML") ),
41 $use_javascript_addr_book );
42 OptionSelect( _("Use Javascript"), 'new_javascript_setting',
43 array(SMPREF_JS_AUTODETECT => _("Autodetect"),
44 SMPREF_JS_ON => _("Always"),
45 SMPREF_JS_OFF => _("Never") ),
46 $javascript_setting );
47 OptionHidden('js_autodetect_results', SMPREF_JS_OFF);
48 OptionText( _("Number of Messages to Index"), 'shownum', $show_num, 5 );
49 OptionText( _("Wrap incoming text at"), 'wrapat', $wrap_at, 5 );
50 OptionText( _("Size of editor window"), 'editorsize', $editor_size, 5 );
51 OptionSelect( _("Location of buttons when composing"),
52 'button_new_location',
53 array( 'top' => _("Before headers"),
54 'between' => _("Between headers and message body"),
55 'bottom' => _("After message body") ),
56 $location_of_buttons );
57 OptionSelect( _("Location of folder list"),
58 'folder_new_location',
59 array( '' => _("Left"),
60 'right' => _("Right") ),
61 $location_of_bar );
62 for ($i = 100; $i <= 300; $i += 10) {
63 $res[$i] = $i . _("pixels");
64 }
65 OptionSelect( _("Width of folder list"),
66 'leftsize',
67 $res,
68 $left_size );
69 $minutes_str = _("Minutes");
70 OptionSelect( _("Auto refresh folder list"),
71 'leftrefresh',
72 array( 'None' => _("Never"),
73 30 => '30 '. _("Seconds"),
74 60 => '1 ' . _("Minute"),
75 120 => "2 $minutes_str",
76 180 => "3 $minutes_str",
77 300 => "5 $minutes_str",
78 600 => "10 $minutes_str" ),
79 $left_refresh );
80 OptionRadio( _("Use alternating row colors?"),
81 'altIndexColors',
82 array( 1 => _("Yes"),
83 0 => _("No") ),
84 $alt_index_colors );
85 OptionCheck( _("Show HTML version by default"),
86 'showhtmldefault',
87 $show_html_default,
88 _("Yes, show me the HTML version of a mail message, if it is available.") );
89 OptionCheck( _("Include Self"),
90 'includeselfreplyall',
91 getPref($data_dir, $username, 'include_self_reply_all', FALSE ),
92 _("Don't remove me from the CC addresses when I use \"Reply All\"") );
93 $psw = getPref($data_dir, $username, 'page_selector_max', 10 );
94 OptionCheck( _("Page Selector"),
95 'pageselector',
96 !getPref($data_dir, $username, 'page_selector', FALSE ),
97 _("Show page selector") .
98 " <input name=pageselectormax size=3 value=\"$psw\"> &nbsp;" .
99 _("pages max") );
100
101 echo '<tr><td colspan=2><hr noshade></td></tr>';
102 do_hook('options_display_inside');
103 OptionSubmit( 'submit_display' );
104 ?>
105
106 </table>
107 </form>
108
109 <?php do_hook('options_display_bottom'); ?>
110
111 </td></tr>
112 </table>
113
114 <SCRIPT LANGUAGE="JavaScript"><!--
115 document.forms[0].js_autodetect_results.value = '<?php echo SMPREF_JS_ON; ?>';
116 // --></SCRIPT>
117
118 </td></tr>
119 </table>
120 </body></html>