$text = ""; if ($LANGUAGE == "danish" || $LANGUAGE == "norwegian") { if ($alpha == "Ø") { $text = "OE"; } else { if ($alpha == "Æ") { $text = "AE"; } else { if ($alpha == "Å") { $text = "AA"; } } } } if (empty($surname) && (preg_match("/^{$alpha}/", $namearray[1]) > 0 || !empty($text) && preg_match("/^{$text}/", $namearray[1]) > 0) || stristr($namearray[2], $surname) !== false) { $name = check_NN(sortable_name_from_name($namearray[0])); $names[] = array("gid" => $gid, "name" => $name); } } } else { if ($ret < 0) { $indi_dead++; } else { $indi_unborn++; } } } uasort($names, "itemsort"); $count = count($names); $i = 0; foreach ($names as $indexval => $namearray) {
$family = new Family($gid); $ffamlist[$gid]['url'] = "family.php?ged=" . $GEDCOM . "&pid=" . $gid . "#content"; $ffamlist[$gid]['marriagedate'] = $family->getMarriageDate(); $ffamlist[$gid]['marriageplace'] = $family->getMarriagePlace(); // $ffamlist[$gid]['placeurl'] = $family->getPlaceUrl($tfamlist[$gid]['marriageplace']); } } } $tfamlist = $ffamlist; } } if ($show_all == "yes") { unset($alpha); } if (!empty($surname) && $surname_sublist == "yes") { $legend = "Families with surname " . check_NN($surname); } else { if (isset($alpha) and $show_all == "no") { $legend = "Families with surname starting " . $alpha; } else { $legend = $pgv_lang["families"]; } } if ($show_all_firstnames == "yes") { $falpha = "@"; } if (isset($falpha) and $falpha != "@") { $legend .= ", " . $falpha . "."; } if (!empty($surname) or $surname_sublist == "no") { // print_fam_table($tfamlist, $legend);
$list[] = $html; } // Seach spiders don't get the "show all" option as the other links give them everything. if (!$SEARCH_SPIDER) { if ($show_all_firstnames == 'yes') { $list[] = '<span class="warning">' . $pgv_lang['all'] . '</span>'; } else { $list[] = '<a href="' . $url . '&show_all_firstnames=yes">' . $pgv_lang['all'] . '</a>'; } } if ($show_all == 'no') { echo '<h2 class="center">'; print PrintReady(str_replace("#surname#", check_NN($surname), $pgv_lang['fams_with_surname'])); echo '</h2>'; } echo '<div class="alpha_index"><p class="center">'; print_help_link('alpha_help', 'qm', 'alpha_index'); echo $pgv_lang['first_letter_sfname'], '<br />'; echo join(' | ', $list), '</p></div>'; } } if ($showList) { if ($legend && $show_all == 'no') { $legend = PrintReady(str_replace("#surname#", check_NN($legend), $pgv_lang['fams_with_surname'])); } $families = get_famlist_fams($surname, $alpha, $falpha, $SHOW_MARRIED_NAMES, PGV_GED_ID); print_fam_table($families, $legend); } } } print_footer();