5 ** Copyright (c) 1999-2000 The SquirrelMail development team
6 ** Licensed under the GNU GPL. For full terms see the file COPYING.
8 ** Displays all optinos about display preferences
13 include('../src/validate.php');
14 include('../functions/page_header.php');
15 include('../functions/display_messages.php');
16 include('../functions/imap.php');
17 include('../functions/array.php');
18 include('../functions/plugin.php');
19 include('../src/load_prefs.php');
21 displayPageHeader($color, 'None');
22 $chosen_language = getPref($data_dir, $username, 'language');
25 <table width
="95%" align
="center" border
="0" cellpadding
="2" cellspacing
="0">
26 <tr
><td bgcolor
="<?php echo $color[0] ?>" align
="center">
28 <b
><?php
echo _("Options") . ' - ' . _("Display Preferences"); ?
></b
><br
>
30 <table width
="100%" border
="0" cellpadding
="1" cellspacing
="1">
31 <tr
><td bgcolor
="<?php echo $color[4] ?>" align
="center">
33 <form name
="f" action
="options.php" method
="post"><br
>
34 <table width
="100%" cellpadding
="2" cellspacing
="0" border
="0">
36 <td align
="right" nowrap
><?php
echo _("Theme"); ?
>:
39 echo ' <tt><select name="chosentheme">' . "\n";
40 for ($i = 0; $i < count($theme); $i++
) {
41 if ($theme[$i]['PATH'] == $chosen_theme)
42 echo ' <option selected value="'.$theme[$i]['PATH'].'">'.$theme[$i]['NAME']."\n";
44 echo ' <option value="'.$theme[$i]['PATH'].'">'.$theme[$i]['NAME']."\n";
46 echo ' </select></tt>';
51 <td align
="right" nowrap
><?php
echo _("Language"); ?
>:
54 echo ' <tt><select name="language">' . "\n";
55 foreach ($languages as $code => $name) {
56 if ($code==$chosen_language)
57 echo ' <OPTION SELECTED VALUE="'.$code.'">'.$languages[$code]['NAME']."\n";
59 echo ' <OPTION VALUE="'.$code.'">'.$languages[$code]['NAME']."\n";
61 echo ' </select></tt>';
63 echo '<br><small>This system doesn\'t support multiple languages</small>';
68 <td align
=right nowrap
> 
;
69 <?php
echo _("Use Javascript or HTML addressbook?") . '</td><td>';
70 if ($use_javascript_addr_book == true) {
71 echo ' <input type="radio" name="javascript_abook" value="1" checked> ' . _("JavaScript") . ' ';
72 echo ' <input type="radio" name="javascript_abook" value="0"> ' . _("HTML");
74 echo ' <input type="radio" name="javascript_abook" value="1"> ' . _("JavaScript") . ' ';
75 echo ' <input type="radio" name="javascript_abook" value="0" checked> ' . _("HTML");
81 <td align
=right nowrap
><?php
echo _("Number of Messages to Index"); ?
>:
85 echo ' <tt><input type="text" size="5" name="shownum" value="'.$show_num.'"></tt><br>';
87 echo ' <tt><input type="text" size="5" name="shownum" value="25"></tt><br>';
92 <td align
="right" nowrap
><?php
echo _("Wrap incoming text at"); ?
>:
96 echo ' <tt><input type="text" size="5" name="wrapat" value="'.$wrap_at.'"></tt><br>';
98 echo ' <tt><input type="tex" size="5" name="wrapat" value="86"></tt><br>';
103 <td align
="right" nowrap
><?php
echo _("Size of editor window"); ?
>:
106 if ($editor_size >= 10 && $editor_size <= 255)
107 echo ' <tt><input type="text" size="5" name="editorsize" value="'.$editor_size.'"></tt><br>';
109 echo ' <tt><input type="text" size="5" name="editorsize" value="76"></tt><br>';
114 <td align
="right" nowrap
><?PHP
echo _("Location of folder list") ?
>:</td
>
115 <td
><select name
="folder_new_location">
116 <option value
="left"<?PHP
117 if ($location_of_bar != 'right') echo ' SELECTED';
118 ?
>><?PHP
echo _("Left"); ?
></option
>
119 <option value
="right"<?PHP
120 if ($location_of_bar == 'right') echo ' SELECTED';
121 ?
>><?PHP
echo _("Right"); ?
></option
>
126 <td align
="right" nowrap
><?PHP
echo _("Location of buttons when composing") ?
>:</td
>
127 <td
><select name
="button_new_location">
128 <option value
="top"<?PHP
129 if ($location_of_buttons == 'top') echo ' SELECTED';
130 ?
>><?PHP
echo _("Before headers"); ?
></option
>
131 <option value
="between"<?PHP
132 if ($location_of_buttons == 'between') echo ' SELECTED';
133 ?
>><?PHP
echo _("Between headers and message body"); ?
></option
>
134 <option value
="bottom"<?PHP
135 if ($location_of_buttons == 'bottom') echo ' SELECTED';
136 ?
>><?PHP
echo _("After message body"); ?
></option
>
141 <td align
=right nowrap
><?php
echo _("Width of folder list"); ?
>:
144 echo ' <select name="leftsize">' . "\n";
145 for ($i = 100; $i <= 300; $i +
= 10)
147 if ($left_size >= $i && $left_size < $i +
10)
148 echo "<option value=\"$i\" selected>$i pixels\n";
150 echo "<option value=\"$i\">$i pixels\n";
157 <td align
="right" nowrap
><?php
echo _("Auto refresh folder list"); ?
>:
160 $seconds_str = _("Seconds");
161 $none_str = _("None");
162 $minute_str = _("Minute");
163 $minutes_str = _("Minutes");
165 echo ' <SELECT name="leftrefresh">';
166 if (($left_refresh == 'None') ||
($left_refresh == ''))
167 echo ' <OPTION VALUE="None" SELECTED>'.$none_str;
169 echo ' <OPTION VALUE="None">'.$none_str;
171 if (($left_refresh <= 300))
172 echo ' <OPTION VALUE="300" SELECTED>5 '.$minutes_str;
174 echo ' <OPTION VALUE="300">5 '.$minutes_str;
176 if (($left_refresh == 720))
177 echo ' <OPTION VALUE="720" SELECTED>12 '.$minutes_str;
179 echo ' <OPTION VALUE="720">12 '.$minutes_str;
181 if (($left_refresh == 1200))
182 echo ' <OPTION VALUE="1200" SELECTED>20 '.$minutes_str;
184 echo ' <OPTION VALUE="1200">20 '.$minutes_str;
186 if (($left_refresh == 3600))
187 echo ' <OPTION VALUE="3600" SELECTED>60 '.$minutes_str;
189 echo ' <OPTION VALUE="3600">60 '.$minutes_str;
197 <?php
echo _("Use alternating row colors?") ?
>
200 if (isset($alt_index_colors) && $alt_index_colors == 1) {
208 <input type
="radio" name
="altIndexColors" value
="1"<?php
echo $a ?
>> <?php
echo _("Yes") ?
>  
; 
;
209 <input type
="radio" name
="altIndexColors" value
="0"<?php
echo $b ?
>> <?php
echo _("No") ?
><br
>
214 <?php
echo _("Show HTML version by default"); ?
>:
217 <input type
=checkbox name
=showhtmldefault
<?php
218 if (isset($show_html_default) && $show_html_default)
221 echo _("Yes, show me the HTML version of a mail message, if it is available.");
225 <?php
do_hook('options_display_inside'); ?
>
229 <input type
="submit" value
="<?php echo _("Submit
"); ?>"name
="submit_display">
235 <?php
do_hook('options_display_bottom'); ?
>