Filter:   InfoImg
download options_display.php
Language: PHP
Copyright: (c) 1999-2000 The SquirrelMail development team
LOC: 265
Project Info
phpGroupWare
Server: SourceForge
Type: cvs
...groupware\squirrelmail\src\
   addrbook_popup.php
   addrbook_search.php
   addrbook_search_html.php
   addressbook.php
   delete_message.php
   empty_trash.php
   gettolang.pl
   help.php
   left_main.php
   load_prefs.php
   move_messages.php
   options.php
   options_display.php
   options_folder.php
   options_highlight.php
   options_order.php
   options_personal.php
   redirect.php
   webmail.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<?php
   /**
    **  options_display.php
    **
    **  Copyright (c) 1999-2000 The SquirrelMail development team
    **  Licensed under the GNU GPL. For full terms see the file COPYING.
    **
    **  Displays all optinos about display preferences
    **
    **  $Id: options_display.php,v 1.3 2001/05/05 22:34:49 jengo Exp $
    **/

   session_start();

   if (!isset($strings_php))
      include("../functions/strings.php");
   if (!isset($config_php))
      include("../config/config.php");
   if (!isset($page_header_php))
      include("../functions/page_header.php");
   if (!isset($display_messages_php))
      include("../functions/display_messages.php");
   if (!isset($imap_php))
      include("../functions/imap.php");
   if (!isset($array_php))
      include("../functions/array.php");
   if (!isset($i18n_php))
      include("../functions/i18n.php");
   if (!isset($plugin_php))
      include("../functins/plugin.php");

   include("../src/load_prefs.php");
   displayPageHeader($color, "None");
   $chosen_language = getPref($data_dir, $username, "language");  
?>
   <br>
   <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<?php echo $color[0] ?>">
      <center><b><?php echo lang("Options") . " - " . lang("Display Preferences"); ?></b></center>
   </td></tr></table>

   <form name=f action="options.php" method=post>
      <table width=100% cellpadding=0 cellspacing=2 border=0>
         <tr>
            <td align=right nowrap><?php echo lang("Theme"); ?>:
            </td><td>
<?php
   echo "         <tt><select name=chosentheme>\n";
   for ($i = 0; $i < count($theme); $i++) {
      if ($theme[$i]["PATH"] == $chosen_theme)
         echo "         <option selected value=\"".$theme[$i]["PATH"]."\">".$theme[$i]["NAME"]."\n";
      else
         echo "         <option value=\"".$theme[$i]["PATH"]."\">".$theme[$i]["NAME"]."\n";
   }
   echo "         </select></tt>";  
?>
            </td>
         </tr>
         <tr>
            <td valign=top align=right nowrap><?php echo lang("Language"); ?>:
            </td><td>
<?php
   echo "         <tt><select name=language>\n";
   foreach ($languages as $code => $name) {
      if ($code==$chosen_language)
         echo "         <OPTION SELECTED VALUE=\"".$code."\">".$languages[$code]["NAME"]."\n";
      else
         echo "         <OPTION VALUE=\"".$code."\">".$languages[$code]["NAME"]."\n";
   }
   echo "         </select></tt>";  
   if (! $use_gettext)
      echo "<br><small>This system doesn't support multiple languages</small>";
      
?>
            </td>
         <tr>
            <td align=right nowrap>&nbsp;
               <?php echo lang("Use Javascript or HTML addressbook?") . "</td><td>"; 
               if ($use_javascript_addr_book == true) {
                  echo "         <input type=radio name=javascript_abook value=1 checked> " . lang("JavaScript") . "&nbsp;&nbsp;&nbsp;&nbsp;";
                  echo "         <input type=radio name=javascript_abook value=0> " . lang("HTML"); 
               } else {
                  echo "         <input type=radio name=javascript_abook value=1> " . lang("JavaScript") . "&nbsp;&nbsp;&nbsp;&nbsp;";
                  echo "         <input type=radio name=javascript_abook value=0 checked> " . lang("HTML"); 
               }  
               ?>
            </td>
         </tr>
         <tr>
            <td align=right nowrap><?php echo lang("Number of Messages to Index"); ?>:
            </td><td>
<?php
   if (isset($show_num))
      echo "         <tt><input type=text size=5 name=shownum value=\"$show_num\"></tt><br>";
   else
      echo "         <tt><input type=text size=5 name=shownum value=\"25\"></tt><br>"; 
?>
            </td>
         </tr>
         <tr>
            <td align=right nowrap><?php echo lang("Wrap incoming text at"); ?>:
            </td><td>
<?php
   if (isset($wrap_at))
      echo "         <tt><input type=text size=5 name=wrapat value=\"$wrap_at\"></tt><br>";
   else
      echo "         <tt><input type=text size=5 name=wrapat value=\"86\"></tt><br>"; 
?>
            </td>
         </tr>
         <tr>
            <td align=right nowrap><?php echo lang("Size of editor window"); ?>:
            </td><td>
<?php
   if ($editor_size >= 10 && $editor_size <= 255)
      echo "         <tt><input type=text size=5 name=editorsize value=\"$editor_size\"></tt><br>";
   else
      echo "         <tt><input type=text size=5 name=editorsize value=\"76\"></tt><br>"; 
?>
            </td>
         </tr>
         <tr>
            <td align=right nowrap><?php echo lang("Location of folder list") ?>:</td>
            <td><select name="folder_new_location">
                <option value="left"<?php
                    if ($location_of_bar != 'right') echo ' SELECTED';
                    ?>><?php echo lang("Left"); ?></option>
                <option value="right"<?php
                    if ($location_of_bar == 'right') echo ' SELECTED';
                    ?>><?php echo lang("Right"); ?></option>
                </select>
            </td>
         </tr>
         <tr>
            <td align=right nowrap><?php echo lang("Location of buttons when composing") ?>:</td>
            <td><select name="button_new_location">
                <option value="top"<?php
                    if ($location_of_buttons == 'top') echo ' SELECTED';
                    ?>><?php echo lang("Before headers"); ?></option>
                <option value="between"<?php
                    if ($location_of_buttons == 'between') echo ' SELECTED';
                    ?>><?php echo lang("Between headers and message body"); ?></option>
                <option value="bottom"<?php
                    if ($location_of_buttons == 'bottom') echo ' SELECTED';
                    ?>><?php echo lang("After message body"); ?></option>
                </select>
            </td>
         </tr>
         <tr>
            <td align=right nowrap><?php echo lang("Width of folder list"); ?>:
            </td><td>
<?php
   echo "         <select name=leftsize>\n";
   if ($left_size == 100)
      echo "<option value=100 selected>100 pixels\n";
   else
      echo "<option value=100>100 pixels\n";
 
   if ($left_size == 125)
      echo "<option value=125 selected>125 pixels\n";
   else
      echo "<option value=125>125 pixels\n";
 
   if ($left_size == 150)
      echo "<option value=150 selected>150 pixels\n";
   else
      echo "<option value=150>150 pixels\n";
 
   if ($left_size == 175)
      echo "<option value=175 selected>175 pixels\n";
   else
      echo "<option value=175>175 pixels\n";
 
   if (($left_size == 200) || ($left_size == ""))
      echo "<option value=200 selected>200 pixels\n";
   else
      echo "<option value=200>200 pixels\n";
 
   if (($left_size == 225))
      echo "<option value=225 selected>225 pixels\n";
   else
      echo "<option value=225>225 pixels\n";
 
   if (($left_size == 250))
      echo "<option value=250 selected>250 pixels\n";
   else
      echo "<option value=250>250 pixels\n";
 
   if ($left_size == 275)
      echo "<option value=275 selected>275 pixels\n";
   else
      echo "<option value=275>275 pixels\n";
 
   if (($left_size == 300))
      echo "<option value=300 selected>300 pixels\n";
   else
      echo "<option value=300>300 pixels\n";
 
   echo "         </select>";  
?>
            </td>
         </tr>
         <tr>
            <td align=right nowrap><?php echo lang("Auto refresh folder list"); ?>:
            </td><td>
<?php
   $seconds_str = lang("Seconds");
   $none_str = lang("None");
   $minute_str = lang("Minute");
   $minutes_str = lang("Minutes");

   echo "               <SELECT name=leftrefresh>";
   if (($left_refresh == "None") || ($left_refresh == ""))
      echo "                  <OPTION VALUE=None SELECTED>$none_str";
   else
      echo "                  <OPTION VALUE=None>$none_str";
 
   if (($left_refresh == "10"))
      echo "                  <OPTION VALUE=10 SELECTED>10 $seconds_str";
   else
      echo "                  <OPTION VALUE=10>10 $seconds_str";
 
   if (($left_refresh == "20"))
      echo "                  <OPTION VALUE=20 SELECTED>20 $seconds_str";
   else
      echo "                  <OPTION VALUE=20>20 $seconds_str";
 
   if (($left_refresh == "30"))
      echo "                  <OPTION VALUE=30 SELECTED>30 $seconds_str";
   else
      echo "                  <OPTION VALUE=30>30 $seconds_str";
 
   if (($left_refresh == "60"))
      echo "                  <OPTION VALUE=60 SELECTED>1 $minute_str";
   else
      echo "                  <OPTION VALUE=60>1 $minute_str";
 
   if (($left_refresh == "120"))
      echo "                  <OPTION VALUE=120 SELECTED>2 $minutes_str";
   else
      echo "                  <OPTION VALUE=120>2 $minutes_str";
 
   if (($left_refresh == "180"))
      echo "                  <OPTION VALUE=180 SELECTED>3 $minutes_str";
   else
      echo "                  <OPTION VALUE=180>3 $minutes_str";
 
   if (($left_refresh == "240"))
      echo "                  <OPTION VALUE=240 SELECTED>4 $minutes_str";
   else
      echo "                  <OPTION VALUE=240>4 $minutes_str";
 
   if (($left_refresh == "300"))
      echo "                  <OPTION VALUE=300 SELECTED>5 $minutes_str";
   else
      echo "                  <OPTION VALUE=300>5 $minutes_str";
 
   if (($left_refresh == "420"))
      echo "                  <OPTION VALUE=420 SELECTED>7 $minutes_str";
   else
      echo "                  <OPTION VALUE=420>7 $minutes_str";

   if (($left_refresh == "600"))
      echo "                  <OPTION VALUE=600 SELECTED>10 $minutes_str";
   else
      echo "                  <OPTION VALUE=600>10 $minutes_str";
 
   if (($left_refresh == "720"))
      echo "                  <OPTION VALUE=720 SELECTED>12 $minutes_str";
   else
      echo "                  <OPTION VALUE=720>12 $minutes_str";
 
   if (($left_refresh == "900"))
      echo "                  <OPTION VALUE=900 SELECTED>15 $minutes_str";
   else
      echo "                  <OPTION VALUE=900>15 $minutes_str";
 
   if (($left_refresh == "1200"))
      echo "                  <OPTION VALUE=1200 SELECTED>20 $minutes_str";
   else
      echo "                  <OPTION VALUE=1200>20 $minutes_str";
 
   if (($left_refresh == "1500"))
      echo "                  <OPTION VALUE=1500 SELECTED>25 $minutes_str";
   else
      echo "                  <OPTION VALUE=1500>25 $minutes_str";
 
   if (($left_refresh == "1800"))
      echo "                  <OPTION VALUE=1800 SELECTED>30 $minutes_str";
   else
      echo "                  <OPTION VALUE=1800>30 $minutes_str";
 
      echo "               </SELECT>"; 
?>
            </td>
         </tr>
         <?php do_hook("options_display_inside"); ?>
         <tr>
            <td>&nbsp;
            </td><td>
               <input type="submit" value="<?php echo lang("Submit"); ?>"name="submit_display">
            </td>
         </tr>
      </table>   
   </form>
   <?php do_hook("options_display_bottom"); ?>
</body></html>