~ / Public Domain Software / AmDictionary PHP5 Class / Main Controls $_
Main Controls

This is a basic run of the AmDictionary PHP5 Class. It shows main visual controls of the dictionary: search, category index, index, list (click a letter, category, or perform a search to display this control), entry (click a word in the list to display it), and copyright notice. Long lists also generate an additional control — page navigator (click „All Entries” category and look at the bottom).

The default installation of the AmDictionary PHP5 Class has a rather rough visual design: visual controls are wrapped with a thick gray border while its subcomponents are wrapped with a thin dotted line. But, I think it is quite sufficient for presentation and/or descriptive purposes. Each visual aspect of the dictionary is fully customizable through the CSS skin which you can freely modify in order to satisfy your particular needs.

All entries in this example and others were rewritten from „Russian-English Dictionary — Русско-английский словарь”, Москва, Издательство „Русский язык”, 1978. Though it may be difficult to deal with, Russian was intentionally selected for the examples in order to emphasize interoperability of the presented software.

Nouns Verbs LOCKED All Entries Categorized Uncategorized
А Б В Г Д Е Ж З И К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ы Э Ю Я
AmDictionary PHP5 Class 1.0.0 RC. Copyright © 2008-2012 Aleksander Maksymiuk, http://setpro.net.pl/. This is a free software under the terms of the GNU General Public License.
<?php   /* core code of this example */

  if (!class_exists('AmDictionary')) {
    require('possible/path/amdictionary.class.php');
  }
  /* create */
  $d = new AmDictionary();

  /* do some configuration */
  $d->SetParam('alphabet', '|А|Б|В|Г|Д|Е|Ж|З|И|К|Л|М|Н|О|П|Р|С|Т|У|Ф|Х|Ц|Ч|Ш|Щ|Ы|Э|Ю|Я');

  /* run (glue desired components together) */
  echo $d->BuildSearch() .
    $d->BuildCatIndex() .
    $d->BuildIndex() .
    $d->BuildCatIndexList() .
    $d->BuildIndexList() .
    $d->BuildSearchList() .
    $d->BuildEntry() .
    $d->BuildDictInfo();

?>