added fix for translations (changed some ' to ")
[squirrelmail.git] / src / options_display.php
CommitLineData
c36ed9cf 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 **/
11
12 session_start();
13
14 if (!isset($config_php))
15 include("../config/config.php");
16 if (!isset($strings_php))
17 include("../functions/strings.php");
18 if (!isset($page_header_php))
19 include("../functions/page_header.php");
20 if (!isset($display_messages_php))
21 include("../functions/display_messages.php");
22 if (!isset($imap_php))
23 include("../functions/imap.php");
24 if (!isset($array_php))
25 include("../functions/array.php");
26 if (!isset($i18n_php))
27 include("../functions/i18n.php");
d7d3c4d4 28 if (!isset($plugin_php))
29 include("../functins/plugin.php");
c36ed9cf 30
31 include("../src/load_prefs.php");
32 displayPageHeader($color, "None");
33 $chosen_language = getPref($data_dir, $username, "language");
34?>
e9f8ea4e 35 <br>
6170c5b6 36 <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<?php echo $color[0] ?>">
37 <center><b><?php echo _("Options") . " - " . _("Display Preferences"); ?></b></center>
c36ed9cf 38 </td></tr></table>
39
d7d3c4d4 40 <form name=f action="options.php" method=post>
c36ed9cf 41 <table width=100% cellpadding=0 cellspacing=2 border=0>
42 <tr>
6170c5b6 43 <td align=right nowrap><?php echo _("Theme"); ?>:
c36ed9cf 44 </td><td>
8442ac08 45<?php
c36ed9cf 46 echo " <tt><select name=chosentheme>\n";
47 for ($i = 0; $i < count($theme); $i++) {
48 if ($theme[$i]["PATH"] == $chosen_theme)
49 echo " <option selected value=\"".$theme[$i]["PATH"]."\">".$theme[$i]["NAME"]."\n";
50 else
51 echo " <option value=\"".$theme[$i]["PATH"]."\">".$theme[$i]["NAME"]."\n";
52 }
53 echo " </select></tt>";
54?>
55 </td>
56 </tr>
57 <tr>
441f2d33 58 <td valign=top align=right nowrap><?php echo _("Language"); ?>:
c36ed9cf 59 </td><td>
8442ac08 60<?php
c36ed9cf 61 echo " <tt><select name=language>\n";
441f2d33 62 foreach ($languages as $code => $name) {
c36ed9cf 63 if ($code==$chosen_language)
64 echo " <OPTION SELECTED VALUE=\"".$code."\">".$languages[$code]["NAME"]."\n";
65 else
66 echo " <OPTION VALUE=\"".$code."\">".$languages[$code]["NAME"]."\n";
441f2d33 67 }
c36ed9cf 68 echo " </select></tt>";
441f2d33 69 if (! $use_gettext)
70 echo "<br><small>This system doesn't support multiple languages</small>";
71
c36ed9cf 72?>
73 </td>
74 <tr>
75 <td align=right nowrap>&nbsp;
441f2d33 76 <?php echo _("Use Javascript or HTML addressbook?") . "</td><td>";
c36ed9cf 77 if ($use_javascript_addr_book == true) {
78 echo " <input type=radio name=javascript_abook value=1 checked> " . _("JavaScript") . "&nbsp;&nbsp;&nbsp;&nbsp;";
79 echo " <input type=radio name=javascript_abook value=0> " . _("HTML");
80 } else {
81 echo " <input type=radio name=javascript_abook value=1> " . _("JavaScript") . "&nbsp;&nbsp;&nbsp;&nbsp;";
82 echo " <input type=radio name=javascript_abook value=0 checked> " . _("HTML");
83 }
84 ?>
85 </td>
86 </tr>
87 <tr>
6170c5b6 88 <td align=right nowrap><?php echo _("Number of Messages to Index"); ?>:
c36ed9cf 89 </td><td>
8442ac08 90<?php
c36ed9cf 91 if (isset($show_num))
92 echo " <tt><input type=text size=5 name=shownum value=\"$show_num\"></tt><br>";
93 else
94 echo " <tt><input type=text size=5 name=shownum value=\"25\"></tt><br>";
95?>
96 </td>
97 </tr>
98 <tr>
6170c5b6 99 <td align=right nowrap><?php echo _("Wrap incoming text at"); ?>:
c36ed9cf 100 </td><td>
8442ac08 101<?php
c36ed9cf 102 if (isset($wrap_at))
103 echo " <tt><input type=text size=5 name=wrapat value=\"$wrap_at\"></tt><br>";
104 else
105 echo " <tt><input type=text size=5 name=wrapat value=\"86\"></tt><br>";
106?>
107 </td>
108 </tr>
109 <tr>
6170c5b6 110 <td align=right nowrap><?php echo _("Size of editor window"); ?>:
c36ed9cf 111 </td><td>
8442ac08 112<?php
c36ed9cf 113 if ($editor_size >= 10 && $editor_size <= 255)
114 echo " <tt><input type=text size=5 name=editorsize value=\"$editor_size\"></tt><br>";
115 else
116 echo " <tt><input type=text size=5 name=editorsize value=\"76\"></tt><br>";
117?>
118 </td>
119 </tr>
120 <tr>
e190b5b0 121 <td align=right nowrap><?PHP echo _("Location of folder list") ?>:</td>
9a732bb6 122 <td><select name="folder_new_location">
123 <option value="left"<?PHP
124 if ($location_of_bar != 'right') echo ' SELECTED';
e190b5b0 125 ?>><?PHP echo _("Left"); ?></option>
9a732bb6 126 <option value="right"<?PHP
127 if ($location_of_bar == 'right') echo ' SELECTED';
e190b5b0 128 ?>><?PHP echo _("Right"); ?></option>
9a732bb6 129 </select>
130 </td>
131 </tr>
132 <tr>
e190b5b0 133 <td align=right nowrap><?PHP echo _("Location of buttons when composing") ?>:</td>
441f2d33 134 <td><select name="button_new_location">
135 <option value="top"<?PHP
136 if ($location_of_buttons == 'top') echo ' SELECTED';
e190b5b0 137 ?>><?PHP echo _("Before headers"); ?></option>
441f2d33 138 <option value="between"<?PHP
139 if ($location_of_buttons == 'between') echo ' SELECTED';
e190b5b0 140 ?>><?PHP echo _("Between headers and message body"); ?></option>
441f2d33 141 <option value="bottom"<?PHP
142 if ($location_of_buttons == 'bottom') echo ' SELECTED';
e190b5b0 143 ?>><?PHP echo _("After message body"); ?></option>
441f2d33 144 </select>
145 </td>
146 </tr>
147 <tr>
9a732bb6 148 <td align=right nowrap><?php echo _("Width of folder list"); ?>:
c36ed9cf 149 </td><td>
8442ac08 150<?php
c36ed9cf 151 echo " <select name=leftsize>\n";
152 if ($left_size == 100)
153 echo "<option value=100 selected>100 pixels\n";
154 else
155 echo "<option value=100>100 pixels\n";
156
157 if ($left_size == 125)
158 echo "<option value=125 selected>125 pixels\n";
159 else
160 echo "<option value=125>125 pixels\n";
161
162 if ($left_size == 150)
163 echo "<option value=150 selected>150 pixels\n";
164 else
165 echo "<option value=150>150 pixels\n";
166
167 if ($left_size == 175)
168 echo "<option value=175 selected>175 pixels\n";
169 else
170 echo "<option value=175>175 pixels\n";
171
172 if (($left_size == 200) || ($left_size == ""))
173 echo "<option value=200 selected>200 pixels\n";
174 else
175 echo "<option value=200>200 pixels\n";
176
177 if (($left_size == 225))
178 echo "<option value=225 selected>225 pixels\n";
179 else
180 echo "<option value=225>225 pixels\n";
181
182 if (($left_size == 250))
183 echo "<option value=250 selected>250 pixels\n";
184 else
185 echo "<option value=250>250 pixels\n";
186
187 if ($left_size == 275)
188 echo "<option value=275 selected>275 pixels\n";
189 else
190 echo "<option value=275>275 pixels\n";
191
192 if (($left_size == 300))
193 echo "<option value=300 selected>300 pixels\n";
194 else
195 echo "<option value=300>300 pixels\n";
196
197 echo " </select>";
198?>
199 </td>
200 </tr>
201 <tr>
6170c5b6 202 <td align=right nowrap><?php echo _("Auto refresh folder list"); ?>:
c36ed9cf 203 </td><td>
8442ac08 204<?php
c36ed9cf 205 echo " <SELECT name=leftrefresh>";
206 if (($left_refresh == "None") || ($left_refresh == ""))
207 echo " <OPTION VALUE=None SELECTED>None";
208 else
209 echo " <OPTION VALUE=None>None";
210
211 if (($left_refresh == "10"))
212 echo " <OPTION VALUE=10 SELECTED>10 Seconds";
213 else
214 echo " <OPTION VALUE=10>10 Seconds";
215
216 if (($left_refresh == "20"))
217 echo " <OPTION VALUE=20 SELECTED>20 Seconds";
218 else
219 echo " <OPTION VALUE=20>20 Seconds";
220
221 if (($left_refresh == "30"))
222 echo " <OPTION VALUE=30 SELECTED>30 Seconds";
223 else
224 echo " <OPTION VALUE=30>30 Seconds";
225
226 if (($left_refresh == "60"))
227 echo " <OPTION VALUE=60 SELECTED>1 Minute";
228 else
229 echo " <OPTION VALUE=60>1 Minute";
230
231 if (($left_refresh == "120"))
232 echo " <OPTION VALUE=120 SELECTED>2 Minutes";
233 else
234 echo " <OPTION VALUE=120>2 Minutes";
235
236 if (($left_refresh == "180"))
237 echo " <OPTION VALUE=180 SELECTED>3 Minutes";
238 else
239 echo " <OPTION VALUE=180>3 Minutes";
240
241 if (($left_refresh == "240"))
242 echo " <OPTION VALUE=240 SELECTED>4 Minutes";
243 else
244 echo " <OPTION VALUE=240>4 Minutes";
245
246 if (($left_refresh == "300"))
247 echo " <OPTION VALUE=300 SELECTED>5 Minutes";
248 else
249 echo " <OPTION VALUE=300>5 Minutes";
250
251 if (($left_refresh == "420"))
252 echo " <OPTION VALUE=420 SELECTED>7 Minutes";
253 else
254 echo " <OPTION VALUE=420>7 Minutes";
255
256 if (($left_refresh == "600"))
257 echo " <OPTION VALUE=600 SELECTED>10 Minutes";
258 else
259 echo " <OPTION VALUE=600>10 Minutes";
260
261 if (($left_refresh == "720"))
262 echo " <OPTION VALUE=720 SELECTED>12 Minutes";
263 else
264 echo " <OPTION VALUE=720>12 Minutes";
265
266 if (($left_refresh == "900"))
267 echo " <OPTION VALUE=900 SELECTED>15 Minutes";
268 else
269 echo " <OPTION VALUE=900>15 Minutes";
270
271 if (($left_refresh == "1200"))
272 echo " <OPTION VALUE=1200 SELECTED>20 Minutes";
273 else
274 echo " <OPTION VALUE=1200>20 Minutes";
275
276 if (($left_refresh == "1500"))
277 echo " <OPTION VALUE=1500 SELECTED>25 Minutes";
278 else
279 echo " <OPTION VALUE=1500>25 Minutes";
280
281 if (($left_refresh == "1800"))
282 echo " <OPTION VALUE=1800 SELECTED>30 Minutes";
283 else
284 echo " <OPTION VALUE=1800>30 Minutes";
285
286 echo " </SELECT>";
287?>
288 </td>
289 </tr>
ef3c69f0 290 <?php do_hook("options_display_inside"); ?>
c36ed9cf 291 <tr>
292 <td>&nbsp;
293 </td><td>
32f4685b 294 <input type="submit" value="<?php echo _("Submit"); ?>"name="submit_display">
c36ed9cf 295 </td>
296 </tr>
297 </table>
298 </form>
d7d3c4d4 299 <?php do_hook("options_display_bottom"); ?>
c36ed9cf 300</body></html>