setPageTitle(WT_I18N::translate('Find an individual'));
break;
case "fam":
$controller->setPageTitle(WT_I18N::translate('Find a family'));
break;
case "media":
$controller->setPageTitle(WT_I18N::translate('Find a media object'));
break;
case "place":
$controller->setPageTitle(WT_I18N::translate('Find a place'));
break;
case "repo":
$controller->setPageTitle(WT_I18N::translate('Find a repository'));
break;
case "note":
$controller->setPageTitle(WT_I18N::translate('Find a note'));
break;
case "source":
$controller->setPageTitle(WT_I18N::translate('Find a source'));
break;
case "specialchar":
$controller->setPageTitle(WT_I18N::translate('Find a special character'));
$language_filter=safe_GET('language_filter');
if (WT_USER_ID) {
// Users will probably always want the same language, so remember their setting
if (!$language_filter) {
$language_filter=get_user_setting(WT_USER_ID, 'default_language_filter');
} else {
set_user_setting(WT_USER_ID, 'default_language_filter', $language_filter);
}
}
require WT_ROOT.'includes/specialchars.php';
$action="filter";
break;
case "facts":
$controller
->setPageTitle(WT_I18N::translate('Find a fact or event'))
->addInlineJavascript('initPickFact();');
break;
}
$controller->pageHeader();
echo '';
$options = array();
$options["option"][]= "findindi";
$options["option"][]= "findfam";
$options["option"][]= "findmedia";
$options["option"][]= "findplace";
$options["option"][]= "findrepo";
$options["option"][]= "findnote";
$options["option"][]= "findsource";
$options["option"][]= "findspecialchar";
$options["option"][]= "findfact";
$options["form"][]= "formindi";
$options["form"][]= "formfam";
$options["form"][]= "formmedia";
$options["form"][]= "formplace";
$options["form"][]= "formrepo";
$options["form"][]= "formnote";
$options["form"][]= "formsource";
$options["form"][]= "formspecialchar";
echo '
', $controller->getPageTitle(), '
';
// Show indi and hide the rest
if ($type == "indi") {
echo '
';
}
// Show fam and hide the rest
if ($type == "fam") {
echo '
';
}
// Show media and hide the rest
if ($type == 'media') {
echo '
';
}
// Show place and hide the rest
if ($type == "place") {
echo '
';
}
// Show repo and hide the rest
if ($type == "repo") {
echo '
';
}
// Show Shared Notes and hide the rest
if ($type == "note") {
echo '
';
}
// Show source and hide the rest
if ($type == "source") {
echo '
';
}
// Show specialchar and hide the rest
if ($type == 'specialchar') {
echo '
';
}
// Output Family
if ($type == "fam") {
echo '
';
// Get the famrecs with hits on names from the family table
// Get the famrecs with hits in the gedcom record from the family table
$myfamlist = array_unique(array_merge(
search_fams_names($filter_array, array(WT_GED_ID), 'AND'),
search_fams($filter_array, array(WT_GED_ID), 'AND', true)
));
if ($myfamlist) {
$curged = $GEDCOM;
echo '
';
}
// Output Media
if ($type == "media") {
global $dirs;
$medialist = WT_Query_Media::mediaList($directory, 'exclude', 'title', $filter);
echo '
';
// Show link to previous folder
if ($level>0) {
$levels = explode("/", $directory);
$pdir = "";
for ($i=0; $i <-- '.$pdir.' ';
}
// Start of media folder table
// Tell the user where he is
echo '