Esempio n. 1
0
         $surname_list[$n]['upper'] = $surn;
         $surname_list[$n]['count'] = $value['match'];
         $total += $value['match'];
         $n++;
     }
     $listHash = $_REQUEST;
     $listHash['sub_total'] = $total;
     $listHash['total_records'] = $n;
     $gBitSmarty->assign_by_ref("surnames", $surname_list);
     $gBitSmarty->assign_by_ref('listInfo', $listHash);
 } else {
     $firstname_alpha = false;
     //-- if the surname is set then only get the names in that surname list
     if (!empty($surname) && $surname_sublist == "yes") {
         $surname = trim($surname);
         $tfamlist = get_famlist_surns($surname, $alpha, $SHOW_MARRIED_NAMES, $gGedcom->mGEDCOMId);
         //-- split up long surname lists by first letter of first name
         if ($SUBLIST_TRIGGER_F > 0 && count($tfamlist) > $SUBLIST_TRIGGER_F) {
             $firstname_alpha = true;
         }
     }
     if ($surname_sublist == "no" && !empty($alpha) && $show_all == "no") {
         $tfamlist = get_alpha_fams($alpha);
     }
     //-- simplify processing for ALL famlist
     if ($surname_sublist == "no" && $show_all == "yes") {
         $tfamlist = get_fam_list();
         uasort($tfamlist, "itemsort");
     } else {
         //--- the list is really long so divide it up again by the first letter of the first name
         if ($firstname_alpha) {
Esempio n. 2
0
    }
    if ($showList) {
        print_help_link('show_marnm_help', 'qm', 'show_marnms');
        if ($SHOW_MARRIED_NAMES) {
            echo '<a href="', $url, '&amp;show_marnm=no">', $pgv_lang['skip_marnms'], '</a>';
        } else {
            echo '<a href="', $url, '&amp;show_marnm=yes">', $pgv_lang['show_marnms'], '</a>';
        }
        echo '&nbsp;&nbsp;&nbsp;';
    }
    print_help_link('name_list_help', 'qm');
    echo '</p>';
}
echo '</div>';
if ($showList) {
    $surns = get_famlist_surns($surname, $alpha, $SHOW_MARRIED_NAMES, PGV_GED_ID);
    if ($surname_sublist == 'yes') {
        // Show the surname list
        switch ($SURNAME_LIST_STYLE) {
            case 'style3':
                echo format_surname_tagcloud($surns, 'famlist', true);
                break;
            case 'style2':
            default:
                echo format_surname_table($surns, 'famlist');
                break;
        }
    } else {
        // Show the family list
        $count = 0;
        foreach ($surns as $surnames) {