Added submit and title functions.
[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 OptionText( _("Number of Messages to Index"), 'shownum', $show_num, 5 );
43 OptionText( _("Wrap incoming text at"), 'wrapat', $wrap_at, 5 );
44 OptionText( _("Size of editor window"), 'editorsize', $editor_size, 5 );
45 OptionSelect( _("Location of buttons when composing"),
46 'button_new_location',
47 array( 'top' => _("Before headers"),
48 'between' => _("Between headers and message body"),
49 'bottom' => _("After message body") ),
50 $location_of_buttons );
51 OptionSelect( _("Location of folder list"),
52 'folder_new_location',
53 array( '' => _("Left"),
54 'right' => _("Right") ),
55 $location_of_bar );
56 for ($i = 100; $i <= 300; $i += 10) {
57 $res[$i] = $i . _("pixels");
58 }
59 OptionSelect( _("Width of folder list"),
60 'leftsize',
61 $res,
62 $left_size );
63 $minutes_str = _("Minutes");
64 OptionSelect( _("Auto refresh folder list"),
65 'leftrefresh',
66 array( 'None' => _("Never"),
67 30 => '30 '. _("Seconds"),
68 60 => '1 ' . _("Minute"),
69 120 => "2 $minutes_str",
70 180 => "3 $minutes_str",
71 300 => "5 $minutes_str",
72 600 => "10 $minutes_str" ),
73 $left_refresh );
74 OptionRadio( _("Use alternating row colors?"),
75 'altIndexColors',
76 array( 1 => _("Yes"),
77 0 => _("No") ),
78 $alt_index_colors );
79 OptionCheck( _("Show HTML version by default"),
80 'showhtmldefault',
81 $show_html_default,
82 _("Yes, show me the HTML version of a mail message, if it is available.") );
83 OptionCheck( _("Include Self"),
84 'includeselfreplyall',
85 getPref($data_dir, $username, 'include_self_reply_all', FALSE ),
86 _("Don't remove me from the CC addresses when I use \"Reply All\"") );
87 $psw = getPref($data_dir, $username, 'page_selector_max', 10 );
88 OptionCheck( _("Page Selector"),
89 'pageselector',
90 !getPref($data_dir, $username, 'page_selector', FALSE ),
91 _("Show page selector") .
92 " <input name=pageselectormax size=3 value=\"$psw\"> &nbsp;" .
93 _("pages max") );
94
95 do_hook('options_display_inside'); ?>
96 <tr>
97 <td>&nbsp;
98 </td><td>
99 <input type="submit" value="<?php echo _("Submit"); ?>"name="submit_display">
100 </td>
101 </tr>
102
103 </table>
104 </form>
105
106 <?php do_hook('options_display_bottom'); ?>
107
108 </td></tr>
109 </table>
110
111 </td></tr>
112 </table>
113 </body></html>