pageHeader() ->addExternalJavascript(WT_STATIC_URL . 'js/autocomplete.js') ->addInlineJavascript('autocomplete();'); ?>

' , $controller->getPageTitle(), '

'; //========== Search Form Outer Table //========== echo '
'; ?> action == "general") { echo '
' , WT_I18N::translate('Search for'), '
', print_specialchar_link('query'), '
' , WT_I18N::translate('Records'), '

srindi) || !$controller->isPostBack) echo ' checked="checked"'; echo ' value="yes" id="srindi" name="srindi">

srfams)) echo ' checked="checked"'; echo ' value="yes" id="srfams" name="srfams">

srsour)) echo ' checked="checked"'; echo ' value="yes" id="srsour" name="srsour">

srnote)) echo 'checked="checked"'; echo ' value="yes" id="srnote" name="srnote">

' , WT_I18N::translate('Associates'), '
showasso == 'on') echo ' checked="checked"'; echo '>
'; } //========== Search and replace Search Form ========== if ($controller->action == "replace") { if (WT_USER_CAN_EDIT) { echo '
', WT_I18N::translate('Search for'), '
', WT_I18N::translate('Replace with'), '
'; ?> ', WT_I18N::translate('Search'), '


'; } } //========== Phonetic search Form //========== if ($controller->action == "soundex") { echo '
' , WT_I18N::translate('Given name'), '
' , WT_I18N::translate('Surname'), '
' , WT_I18N::translate('Place'), '
' , WT_I18N::translate('Year'), '
'; // ---- Soundex type options (Russell, DaitchM) --- echo '
' , WT_I18N::translate('Phonetic algorithm'), '

soundex == "Russell") echo ' checked="checked" '; echo '>' , WT_I18N::translate('Russell'); echo '

soundex == "DaitchM" || $controller->soundex == "") echo ' checked="checked" '; echo'>' , WT_I18N::translate('Daitch-Mokotoff'); echo '

'; // Associates Section echo '
' , WT_I18N::translate('Associates'), '
showasso == "on") echo ' checked="checked" '; echo '>' , WT_I18N::translate('Show related individuals/families'), '
'; } // If the search is a general or soundex search then possibly display checkboxes for the gedcoms if ($controller->action == "general" || $controller->action == "soundex") { // If more than one GEDCOM, switching is allowed AND DB mode is set, let the user select if ((count(WT_Tree::getAll()) > 1) && WT_Site::getPreference('ALLOW_CHANGE_GEDCOM')) { // More Than 3 Gedcom Filess enable elect all & select none buttons if (count(WT_Tree::getAll())>3) { echo '
 
'; // More Than 10 Gedcom Files enable invert selection button if (count(WT_Tree::getAll())>10) { echo ''; } echo '
'; } echo '
' , WT_I18N::translate('Family trees'), '
'; //-- sorting menu by gedcom filename foreach (WT_Tree::getAll() as $tree) { $str = str_replace(array (".", "-", " "), array ("_", "_", "_"), $tree->tree_name); $controller->inputFieldNames[] = "$str"; echo '

', "\n"; } echo '
'; } } // Links to Other Search Options echo '
' , WT_I18N::translate('Other searches'), '
'; if ($controller->action == "general") { echo '', WT_I18N::translate('Phonetic search'), ' | ', WT_I18N::translate('Advanced search'), ''; if (WT_USER_CAN_EDIT) { echo ' | ', WT_I18N::translate('Search and replace'), ''; } } elseif ($controller->action == "replace") { echo '', WT_I18N::translate('General search'), ' | ', '', WT_I18N::translate('Phonetic search'), '', ' | ', WT_I18N::translate('Advanced search'), ''; } elseif ($controller->action == "soundex") { echo '', WT_I18N::translate('General search'), '', ' | ', WT_I18N::translate('Advanced search'), ''; if (WT_USER_CAN_EDIT) { echo ' |', WT_I18N::translate('Search and replace'), ''; } } echo '
'; // Close div id="search_page-table" //Search buttons echo '
'; if ($controller->action == "general") { echo ''; } elseif ($controller->action == "replace") { echo ''; } elseif ($controller->action == "soundex") { echo ''; } echo '
'; // close div id="search_submit" echo '
'; $somethingPrinted = $controller->printResults(); echo ''; // close div id "search-page"