Пример #1
0
    //echo $file_name;
}
if ($screen_mode == 'STAR') {
    // DNA chart -> change base person to earliest father-line (Y-DNA) or mother-line (Mt-DNA) ancestor
    $max_generation = 100;
    @($dnaDb = $db_functions->get_person($main_person));
    $dnapers_cls = new person_cls();
    $dnaname = $dnapers_cls->person_name($dnaDb);
    $base_person_name = $dnaname["standard_name"];
    // need these 4 in report_descendant.php
    $base_person_sexe = $dnaDb->pers_sexe;
    $base_person_famc = $dnaDb->pers_famc;
    $base_person_gednr = $dnaDb->pers_gedcomnumber;
    if ($dna == "ydna" or $dna == "ydnamark") {
        while (isset($dnaDb->pers_famc) and $dnaDb->pers_famc != "") {
            @($dnaparDb = $db_functions->get_family($dnaDb->pers_famc));
            if ($dnaparDb->fam_man == "") {
                break;
            } else {
                $main_person = $dnaparDb->fam_man;
                $family_id = $dnaDb->pers_famc;
                @($dnaDb = $db_functions->get_person($dnaparDb->fam_man));
            }
        }
    }
    if ($dna == "mtdna" or $dna == "mtdnamark") {
        while (isset($dnaDb->pers_famc) and $dnaDb->pers_famc != "") {
            @($dnaparDb = $db_functions->get_family($dnaDb->pers_famc));
            if ($dnaparDb->fam_woman == "") {
                break;
            } else {
Пример #2
0
     // instead of person's details it will say: "already listed above under number 4234"
     // and no additional ancestors will be looked for, to prevent duplicated branches
 }
 if ($listednr == '') {
     //if not listed yet, add person to array
     $listed_array[$ancestor_number[$i]] = $ancestor_array[$i];
 }
 if ($ancestor_array[$i] != '0') {
     @($person_manDb = $db_functions->get_person($ancestor_array[$i]));
     $man_cls = new person_cls();
     $man_cls->construct($person_manDb);
     $privacy_man = $man_cls->privacy;
     // for pdf function pdf_ancestor_name() further along
     //$sexe=$person_manDb->pers_sexe;
     if (strtolower($person_manDb->pers_sexe) == 'm' and $ancestor_number[$i] > 1) {
         @($familyDb = $db_functions->get_family($marriage_gedcomnumber[$i]));
         // *** Use privacy filter of woman ***
         @($person_womanDb = $db_functions->get_person($familyDb->fam_woman));
         $woman_cls = new person_cls();
         $woman_cls->construct($person_womanDb);
         $privacy_woman = $woman_cls->privacy;
         // *** Use class for marriage ***
         $marriage_cls = new marriage_cls();
         $marriage_cls->construct($familyDb, $privacy_man, $privacy_woman);
         $family_privacy = $marriage_cls->privacy;
     }
     if ($screen_mode != 'PDF' and $screen_mode != 'RTF') {
         echo '<tr><td valign="top" width="80" nowrap><b>' . $ancestor_number[$i] . '</b> (' . floor($ancestor_number[$i] / 2) . ')</td>';
         echo '<td>';
         //*** Show data man ***
         echo '<div class="parent1">';