options.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. /**
  3. * options.php
  4. *
  5. * Pick your translator to translate the body of incoming mail messages
  6. *
  7. * @copyright &copy; 1999-2007 The SquirrelMail Project Team
  8. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  9. * @version $Id$
  10. * @package plugins
  11. * @subpackage translate
  12. */
  13. /**
  14. * Include the SquirrelMail initialization file.
  15. */
  16. require('../../include/init.php');
  17. /** Plugin functions */
  18. include_once(SM_PATH . 'plugins/translate/functions.php');
  19. displayPageHeader($color);
  20. ?>
  21. <table width="95%" align="center" border="0" cellpadding="1" cellspacing="0"><tr><td bgcolor="<?php echo $color[0]; ?>">
  22. <div style="text-align: center;"><b><?php echo _("Options") . ' - '. _("Translator"); ?></b></div>
  23. </td></tr></table>
  24. <p><?php echo _("Your server options are as follows:"); ?></p>
  25. <ul>
  26. <?php
  27. translate_showtrad();
  28. ?>
  29. </ul>
  30. <p>
  31. <?php
  32. echo _("You also decide if you want the translation box displayed, and where it will be located.") .
  33. '<form action="'.sqm_baseuri().'src/options.php" method="post">'.
  34. '<input type="hidden" name="optmode" value="submit" />' .
  35. '<input type="hidden" name="optpage" value="translate" />' .
  36. '<table border="0" cellpadding="0" cellspacing="2">'.
  37. '<tr><td align="right" style="white-space: nowrap;">' .
  38. _("Select your translator:") .
  39. '</td>'.
  40. '<td><select name="translate_translate_server">';
  41. translate_showoption();
  42. echo '</select>' .
  43. '</td></tr>' .
  44. '<tr>'.html_tag('td',_("When reading:"),'right','','style="white-space: nowrap;"').
  45. '<td><input type="checkbox" name="translate_translate_show_read"';
  46. if ($translate_show_read)
  47. echo ' checked="checked"';
  48. echo ' /> - ' . _("Show translation box") .
  49. ' <select name="translate_translate_location">';
  50. translate_showoption_internal('location', 'left', _("to the left"));
  51. translate_showoption_internal('location', 'center', _("in the center"));
  52. translate_showoption_internal('location', 'right', _("to the right"));
  53. echo '</select><br />'.
  54. '<input type="checkbox" name="translate_translate_same_window"';
  55. if ($translate_same_window)
  56. echo ' checked="checked"';
  57. echo ' /> - ' . _("Translate inside the SquirrelMail frames").
  58. "</td></tr>\n";
  59. if (!$disable_compose_translate) {
  60. echo '<tr>'.html_tag('td',_("When composing:"),'right','','style="white-space: nowrap;"').
  61. '<td><input type="checkbox" name="translate_translate_show_send"';
  62. if ($translate_show_send)
  63. echo ' checked="checked"';
  64. echo ' /> - ' . _("Not yet functional, currently does nothing") .
  65. "</td></tr>\n";
  66. }
  67. ?>
  68. <tr><td></td><td>
  69. <input type="submit" value="<?php echo _("Submit"); ?>" name="submit_translate" />
  70. </td></tr>
  71. </table>
  72. </form>
  73. </body></html>