Пример #1
0
echo "                              </tr>\n";
echo "                              <tr>\n";
echo "                                <td align=\"right\">", form_submit("changeall", gettext("Change All"), false, "dictionary_button"), "</td>\n";
echo "                              </tr>\n";
echo "                              <tr>\n";
echo "                                <td align=\"right\">", form_submit("suggest", gettext("Suggest"), false, "dictionary_button"), "</td>\n";
echo "                              </tr>\n";
echo "                            </table>\n";
echo "                          </td>\n";
echo "                        </tr>\n";
echo "                        <tr>\n";
echo "                          <td align=\"left\" valign=\"top\" width=\"330\">\n";
echo "                            <table border=\"0\" width=\"100%\" cellpadding=\"0\" cellspacing=\"3\">\n";
echo "                              <tr>\n";
echo "                                <td align=\"left\" valign=\"top\" width=\"330\">\n";
if ($suggestions_array = $dictionary->get_suggestions_array()) {
    echo "                                  ", form_dropdown_array("suggestions", $suggestions_array, $dictionary->get_best_suggestion(), "size=\"5\"", "dictionary_best_selection"), "\n";
} else {
    echo "                                  ", form_dropdown_array("no_suggestions", array(gettext("(no suggestions)")), $dictionary->get_best_suggestion(), "size=\"5\"", "dictionary_best_selection"), "\n";
}
echo "                                </td>\n";
echo "                              </tr>\n";
echo "                            </table>\n";
echo "                          </td>\n";
echo "                        </tr>\n";
echo "                      </table>\n";
echo "                    </td>\n";
echo "                  </tr>\n";
echo "                  <tr>\n";
echo "                    <td align=\"left\">&nbsp;</td>\n";
echo "                  </tr>\n";