b79c930d8dd69ebbe3c08354d7bbbe3b49b4b070
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/strings.php');
15 include('../config/config.php');
16 include('../functions/page_header.php');
17 include('../functions/display_messages.php');
18 include('../functions/imap.php');
19 include('../functions/array.php');
20 include('../functions/i18n.php');
21 include('../functions/plugin.php');
22 include('../src/load_prefs.php');
24 displayPageHeader($color, 'None');
25 $chosen_language = getPref($data_dir, $username, 'language');
28 <table width
="95%" align
="center" border
="0" cellpadding
="2" cellspacing
="0"><tr
><td bgcolor
="<?php echo $color[0] ?>">
29 <center
><b
><?php
echo _("Options") . ' - ' . _("Display Preferences"); ?
></b
></center
>
32 <form name
="f" action
="options.php" method
="post">
33 <table width
="100%" cellpadding
="0" cellspacing
="2" border
="0">
35 <td align
="right" nowrap
><?php
echo _("Theme"); ?
>:
38 echo ' <tt><select name="chosentheme">' . "\n";
39 for ($i = 0; $i < count($theme); $i++
) {
40 if ($theme[$i]['PATH'] == $chosen_theme)
41 echo ' <option selected value="'.$theme[$i]['PATH'].'">'.$theme[$i]['NAME']."\n";
43 echo ' <option value="'.$theme[$i]['PATH'].'">'.$theme[$i]['NAME']."\n";
45 echo ' </select></tt>';
50 <td valign
="top" align
="right" nowrap
><?php
echo _("Language"); ?
>:
53 echo ' <tt><select name="language">' . "\n";
54 foreach ($languages as $code => $name) {
55 if ($code==$chosen_language)
56 echo ' <OPTION SELECTED VALUE="'.$code.'">'.$languages[$code]['NAME']."\n";
58 echo ' <OPTION VALUE="'.$code.'">'.$languages[$code]['NAME']."\n";
60 echo ' </select></tt>';
62 echo '<br><small>This system doesn\'t support multiple languages</small>';
67 <td align
=right nowrap
> 
;
68 <?php
echo _("Use Javascript or HTML addressbook?") . '</td><td>';
69 if ($use_javascript_addr_book == true) {
70 echo ' <input type="radio" name="javascript_abook" value="1" checked> ' . _("JavaScript") . ' ';
71 echo ' <input type="radio" name="javascript_abook" value="0"> ' . _("HTML");
73 echo ' <input type="radio" name="javascript_abook" value="1"> ' . _("JavaScript") . ' ';
74 echo ' <input type="radio" name="javascript_abook" value="0" checked> ' . _("HTML");
80 <td align
=right nowrap
><?php
echo _("Number of Messages to Index"); ?
>:
84 echo ' <tt><input type="text" size="5" name="shownum" value="'.$show_num.'"></tt><br>';
86 echo ' <tt><input type="text" size="5" name="shownum" value="25"></tt><br>';
91 <td align
="right" nowrap
><?php
echo _("Wrap incoming text at"); ?
>:
95 echo ' <tt><input type="text" size="5" name="wrapat" value="'.$wrap_at.'"></tt><br>';
97 echo ' <tt><input type="tex" size="5" name="wrapat" value="86"></tt><br>';
102 <td align
="right" nowrap
><?php
echo _("Size of editor window"); ?
>:
105 if ($editor_size >= 10 && $editor_size <= 255)
106 echo ' <tt><input type="text" size="5" name="editorsize" value="'.$editor_size.'"></tt><br>';
108 echo ' <tt><input type="text" size="5" name="editorsize" value="76"></tt><br>';
113 <td align
="right" nowrap
><?PHP
echo _("Location of folder list") ?
>:</td
>
114 <td
><select name
="folder_new_location">
115 <option value
="left"<?PHP
116 if ($location_of_bar != 'right') echo ' SELECTED';
117 ?
>><?PHP
echo _("Left"); ?
></option
>
118 <option value
="right"<?PHP
119 if ($location_of_bar == 'right') echo ' SELECTED';
120 ?
>><?PHP
echo _("Right"); ?
></option
>
125 <td align
="right" nowrap
><?PHP
echo _("Location of buttons when composing") ?
>:</td
>
126 <td
><select name
="button_new_location">
127 <option value
="top"<?PHP
128 if ($location_of_buttons == 'top') echo ' SELECTED';
129 ?
>><?PHP
echo _("Before headers"); ?
></option
>
130 <option value
="between"<?PHP
131 if ($location_of_buttons == 'between') echo ' SELECTED';
132 ?
>><?PHP
echo _("Between headers and message body"); ?
></option
>
133 <option value
="bottom"<?PHP
134 if ($location_of_buttons == 'bottom') echo ' SELECTED';
135 ?
>><?PHP
echo _("After message body"); ?
></option
>
140 <td align
=right nowrap
><?php
echo _("Width of folder list"); ?
>:
143 echo ' <select name="leftsize">' . "\n";
144 for ($i = 100; $i <= 300; $i +
= 10)
146 if ($left_size >= $i && $left_size < $i +
10)
147 echo "<option value=\"$i\" selected>$i pixels\n";
149 echo "<option value=\"$i\">$i pixels\n";
156 <td align
="right" nowrap
><?php
echo _("Auto refresh folder list"); ?
>:
159 $seconds_str = _("Seconds");
160 $none_str = _("None");
161 $minute_str = _("Minute");
162 $minutes_str = _("Minutes");
164 echo ' <SELECT name="leftrefresh">';
165 if (($left_refresh == 'None') ||
($left_refresh == ''))
166 echo ' <OPTION VALUE="None" SELECTED>'.$none_str;
168 echo ' <OPTION VALUE="None">'.$none_str;
170 if (($left_refresh == 10))
171 echo ' <OPTION VALUE="10" SELECTED>10 '.$seconds_str;
173 echo ' <OPTION VALUE="10">10 '.$seconds_str;
175 if (($left_refresh == 20))
176 echo ' <OPTION VALUE="20" SELECTED>20 '.$seconds_str;
178 echo ' <OPTION VALUE="20">20 '.$seconds_str;
180 if (($left_refresh == 30))
181 echo ' <OPTION VALUE="30" SELECTED>30 '.$seconds_str;
183 echo ' <OPTION VALUE="30">30 '.$seconds_str;
185 if (($left_refresh == 60))
186 echo ' <OPTION VALUE="60" SELECTED>1 '.$minute_str;
188 echo ' <OPTION VALUE="60">1 '.$minute_str;
190 if (($left_refresh == 120))
191 echo ' <OPTION VALUE="120" SELECTED>2 '.$minutes_str;
193 echo ' <OPTION VALUE="120">2 '.$minutes_str;
195 if (($left_refresh == 180))
196 echo ' <OPTION VALUE="180" SELECTED>3 '.$minutes_str;
198 echo ' <OPTION VALUE="180">3 '.$minutes_str;
200 if (($left_refresh == 240))
201 echo ' <OPTION VALUE="240" SELECTED>4 '.$minutes_str;
203 echo ' <OPTION VALUE="240">4 '.$minutes_str;
205 if (($left_refresh == 300))
206 echo ' <OPTION VALUE="300" SELECTED>5 '.$minutes_str;
208 echo ' <OPTION VALUE="300">5 '.$minutes_str;
210 if (($left_refresh == 420))
211 echo ' <OPTION VALUE="420" SELECTED>7 '.$minutes_str;
213 echo ' <OPTION VALUE="420">7 '.$minutes_str;
215 if (($left_refresh == 600))
216 echo ' <OPTION VALUE="600" SELECTED>10 '.$minutes_str;
218 echo ' <OPTION VALUE="600">10 '.$minutes_str;
220 if (($left_refresh == 720))
221 echo ' <OPTION VALUE="720" SELECTED>12 '.$minutes_str;
223 echo ' <OPTION VALUE="720">12 '.$minutes_str;
225 if (($left_refresh == 900))
226 echo ' <OPTION VALUE="900" SELECTED>15 '.$minutes_str;
228 echo ' <OPTION VALUE="900">15 '.$minutes_str;
230 if (($left_refresh == 1200))
231 echo ' <OPTION VALUE="1200" SELECTED>20 '.$minutes_str;
233 echo ' <OPTION VALUE="1200">20 '.$minutes_str;
235 if (($left_refresh == 1500))
236 echo ' <OPTION VALUE="1500" SELECTED>25 '.$minutes_str;
238 echo' <OPTION VALUE="1500">25 '.$minutes_str;
240 if (($left_refresh == 1800))
241 echo ' <OPTION VALUE="1800" SELECTED>30 '.$minutes_str;
243 echo ' <OPTION VALUE="1800">30 '.$minutes_str;
250 <td valign
=top align
=right
>
251 <?php
echo _("Show HTML version by default"); ?
>:
254 <input type
=checkbox name
=showhtmldefault
<?php
255 if (isset($show_html_default) && $show_html_default)
258 echo _("Yes, show me the HTML version of a mail message, if it is available.");
262 <?php
do_hook('options_display_inside'); ?
>
266 <input type
="submit" value
="<?php echo _("Submit
"); ?>"name
="submit_display">
271 <?php
do_hook('options_display_bottom'); ?
>