- 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 _("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 _("Before headers"); ?></option>
- <option value="between"<?PHP
- if ($location_of_buttons == 'between') echo ' SELECTED';
- ?>><?PHP echo _("Between headers and message body"); ?></option>
- <option value="bottom"<?PHP
- if ($location_of_buttons == 'bottom') echo ' SELECTED';
- ?>><?PHP echo _("After message body"); ?></option>
- </select>
- </td>
- </tr>
- <tr>
- <td align="right" nowrap><?PHP echo _("Location of folder list") ?>:</td>
- <td><select name="folder_new_location">
- <option value="left"<?PHP
- if ($location_of_bar != 'right') echo ' SELECTED';
- ?>><?PHP echo _("Left"); ?></option>
- <option value="right"<?PHP
- if ($location_of_bar == 'right') echo ' SELECTED';
- ?>><?PHP echo _("Right"); ?></option>
- </select>
- </td>
- </tr>
- <tr>
- <td align=right nowrap><?php echo _("Width of folder list"); ?>:
- </td><td>
-<?php
- echo ' <select name="leftsize">' . "\n";
- for ($i = 100; $i <= 300; $i += 10)
- {
- if ($left_size >= $i && $left_size < $i + 10)
- echo "<option value=\"$i\" selected>$i pixels\n";
- else
- echo "<option value=\"$i\">$i pixels\n";
+ OptionSelect( _("Theme"), 'chosentheme', $theme, $chosen_theme, 'NAME', 'PATH' );
+ OptionSelect( _("Language"), 'language', $languages, $chosen_language, 'NAME' );
+ OptionRadio( _("Use Javascript or HTML addressbook?"),
+ 'javascript_abook',
+ array( '1' => _("JavaScript"),
+ '0' => _("HTML") ),
+ $use_javascript_addr_book );
+ OptionSelect( _("Use Javascript"), 'new_javascript_setting',
+ array(SMPREF_JS_AUTODETECT => _("Autodetect"),
+ SMPREF_JS_ON => _("Always"),
+ SMPREF_JS_OFF => _("Never") ),
+ $javascript_setting );
+ OptionHidden('js_autodetect_results', SMPREF_JS_OFF);
+ OptionText( _("Number of Messages to Index"), 'shownum', $show_num, 5 );
+ OptionText( _("Wrap incoming text at"), 'wrapat', $wrap_at, 5 );
+ OptionText( _("Size of editor window"), 'editorsize', $editor_size, 5 );
+ OptionSelect( _("Location of buttons when composing"),
+ 'button_new_location',
+ array( 'top' => _("Before headers"),
+ 'between' => _("Between headers and message body"),
+ 'bottom' => _("After message body") ),
+ $location_of_buttons );
+ OptionSelect( _("Location of folder list"),
+ 'folder_new_location',
+ array( '' => _("Left"),
+ 'right' => _("Right") ),
+ $location_of_bar );
+ for ($i = 100; $i <= 300; $i += 10) {
+ $res[$i] = $i . _("pixels");