. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\AdvancedSearchController; define('WT_SCRIPT_NAME', 'search_advanced.php'); require './includes/session.php'; $controller = new AdvancedSearchController; $controller ->addExternalJavascript(WT_AUTOCOMPLETE_JS_URL) ->addInlineJavascript('autocomplete();') ->pageHeader(); echo ''; ?>

getPageTitle(); ?>

printResults(); ?>
fields); for ($i = 0; $i < $fct; $i++) { if (strpos($controller->getField($i), "FAMC:HUSB:NAME") === 0) { continue; } if (strpos($controller->getField($i), "FAMC:WIFE:NAME") === 0) { continue; } ?> 4) { $j = $fct; // Get the current options for Father’s and Mother’s name searches $fatherGivnOption = 'SDX'; $fatherSurnOption = 'SDX'; $motherGivnOption = 'SDX'; $motherSurnOption = 'SDX'; for ($k = 0; $k < $fct; $k++) { $searchField = $controller->getField($k); $searchOption = substr($searchField, 20); // Assume we have something like "FAMC:HUSB:NAME:GIVN:foo" switch (substr($searchField, 0, 20)) { case 'FAMC:HUSB:NAME:GIVN:': $fatherGivnOption = $searchOption; break; case 'FAMC:HUSB:NAME:SURN:': $fatherSurnOption = $searchOption; break; case 'FAMC:WIFE:NAME:GIVN:': $motherGivnOption = $searchOption; break; case 'FAMC:WIFE:NAME:SURN:': $motherSurnOption = $searchOption; break; } } ?>
getLabel($controller->getField($i)); ?> getField($i); // Get this field’s name and the search criterion $currentField = substr($currentFieldSearch, 0, strrpos($currentFieldSearch, ':')); // Get the actual field name ?> getField($i), -4) == 'PLAC' ? 'data-autocomplete-type="PLAC"' : ''; ?>> 0) { ?> 0) { ?>