Source for file options.php

Documentation is available at options.php

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

Documentation generated on Mon, 13 Jan 2020 04:23:16 +0100 by phpDocumentor 1.4.3