- SpellLink( 'sqspellChange()',
- _("Change this word"),
- _("Change") );
- SpellLink( 'sqspellChangeAll()',
- _("Change ALL occurances of this word"),
- _("Change All") );
- SpellLink( 'sqspellIgnore()',
- _("Ignore this word"),
- _("Ignore") );
- SpellLink( 'sqspellIgnoreAll()',
- _("Ignore ALL occurances this word"),
- _("Ignore All") );
- SpellLink( 'sqspellRemember()',
- _("Add this word to your personal dictionary"),
- _("Add to Dic") );
-?>
+ /**
+ * Did I mention that I hate dots on the end of contcatenated lines?
+ * Dots at the beginning make so much more sense!
+ */
+ echo "//-->\n"
+ . "</script>\n"
+ . "<script src=\"js/check_me.js\" type=\"text/javascript\"></script>\n"
+ . "</head>\n";
+
+ echo "<body bgcolor=\"$color[4]\" text=\"$color[8]\" link=\"$color[7]\" "
+ . "alink=\"$color[7]\" vlink=\"$color[7]\" "
+ . "onload=\"populateSqspellForm()\">\n";
+ ?>
+ <table width="100%" border="0" cellpadding="2">
+ <tr>
+ <td bgcolor="<?php echo $color[9] ?>" align="center">
+ <b>
+ <?php printf( _("Found %s errors"), $errors ) ?>
+ </b>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <hr>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <form method="post">
+ <input type="hidden" name="MOD" value="forget_me_not" />
+ <input type="hidden" name="words" value="" />
+ <input type="hidden" name="sqspell_use_app"
+ value="<?php echo $sqspell_use_app ?>" />
+ <table border="0" width="100%">
+ <tr align="center">
+ <td colspan="4">
+ <?php
+ $sptag = "<span style=\"background-color: $color[9]\">";
+ echo $sptag . _("Line with an error:") . '</span>';
+ ?>
+ <br />
+ <textarea name="sqspell_line_area" cols="50" rows="3"
+ wrap="hard" onfocus="this.blur()"></textarea>
+ </td>
+ </tr>
+ <tr valign="middle">
+ <td align="right" width="25%">
+ <?php
+ echo $sptag . _("Error:") . '</span>';
+ ?>
+ </td>
+ <td align="left" width="25%">
+ <input name="sqspell_error" size="10" value=""
+ onfocus="this.blur()" />
+ </td>
+ <td align="right" width="25%">
+ <?php
+ echo $sptag . _("Suggestions:") . '</span>';
+ ?>
+ </td>
+ <td align="left" width="25%">
+ <select name="sqspell_suggestion"
+ onchange="if (this.options[this.selectedIndex].value != '_NONE') document.forms[0].sqspell_oruse.value=this.options[this.selectedIndex].value">
+ <?php
+ echo '<option>' . _("Suggestions") . '</option>';
+ ?>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td align="right">
+ <?php
+ echo $sptag . _("Change to:") . '</span>';
+ ?>
+ </td>
+ <td align="left">
+ <input name="sqspell_oruse" size="15" value=""
+ onfocus="if(!this.value) this.value=document.forms[0].sqspell_error.value">
+ </td>
+ <td align="right">
+ <?php
+ echo $sptag . _("Occurs times:") . '</span>';
+ ?>
+ </td>
+ <td align="left">
+ <input name="sqspell_likethis" size=3 value="" onfocus="this.blur()">
+ </td>
+ </tr>
+ <!-- hello? What is this? </td></tr> -->
+ <tr>
+ <td colspan="4"><hr></td>
+ </tr>
+ <tr>
+ <td colspan="4">
+ <table border="0" cellpadding="0" cellspacing="3" width="100%">
+ <tr align="center" bgcolor="<?php echo $color[9] ?>">
+ <?php
+ SpellLink('sqspellChange()',
+ _("Change this word"),
+ _("Change"));
+ SpellLink('sqspellChangeAll()',
+ _("Change ALL occurances of this word"),
+ _("Change All"));
+ SpellLink('sqspellIgnore()',
+ _("Ignore this word"),
+ _("Ignore"));
+ SpellLink('sqspellIgnoreAll()',
+ _("Ignore ALL occurances this word"),
+ _("Ignore All"));
+ SpellLink('sqspellRemember()',
+ _("Add this word to your personal dictionary"),
+ _("Add to Dic"));
+ ?>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="4"><hr></td>
+ </tr>
+ <tr>
+ <td colspan="4" align="center" bgcolor="<?php echo $color[9] ?>">
+ <?php
+ echo '<input type="button" value=" '
+ . _("Close and Commit")
+ . ' " onclick="if (confirm(\''
+ . _("The spellcheck is not finished. Really close and commit changes?")
+ . '\')) sqspellCommitChanges()">'
+ . ' <input type="button" value=" '
+ . _("Close and Cancel")
+ . ' " onclick="if (confirm(\''
+ . _("The spellcheck is not finished. Really close and discard changes?")
+ . '\')) self.close()">';
+ ?>
+ </td>