?> )</h2> Database version: <?php echo NAME_DB; ?> <form action="<?php echo $php_self; ?> " method="GET"> <p>Language: <?php echo TLang::getDropDownList($lang_id, "lang_id", ''); ?> </p> <p>Part of speech: <?php echo TPOS::getDropDownList($pos_id, "pos_id", ''); ?> </p> <p>Relation type: <?php echo TRelationType::getDropDownList($relation_type_id, "relation_type_id", ''); ?> </p> <p>Word: <input type="text" name="page_title" value="<?php echo $page_title; ?> "></p> <p><input type="submit" name="view_list" value="search"></p> </form> <?php if (isset($view_list) && $view_list) { $query_lang_pos = "SELECT lang_pos.id as id, page_title FROM lang_pos, page WHERE lang_pos.page_id=page.id";
?> <h1>Reverse dictionary (LIMIT <?php echo $limit; ?> )</h1> <form action="<?php echo $php_self; ?> " method="GET"> <p>Language: <?php echo TLang::getDropDownList($lang, "lang", ''); ?> </p> <p>Part of speech: <?php echo TPOS::getDropDownList($pos, "pos", ''); ?> </p> <p><input type="submit" name="view_dict" value="view"></p> </form> <?php if (isset($view_dict) && $view_dict) { $query = "SELECT pw_reverse_dict.page_id, reverse_page_title FROM pw_reverse_dict"; if ($pos > 0 || $lang > 0) { $query .= ", lang_pos WHERE lang_pos.page_id=pw_reverse_dict.page_id"; if (TPOS::isExist($pos)) { $query .= " and pos_id=" . (int) $pos; } if (TLang::isExist($lang)) { $query .= " and lang_id=" . (int) $lang; }