getFullName(); function print_descendency($person, $count) { global $show_spouse, $dgenerations, $bwidth, $bheight, $bhalfheight; global $TEXT_DIRECTION, $WT_IMAGES, $generations, $box_width, $show_full; if ($count>=$dgenerations) { return 0; } $pid=$person->getXref(); echo ""; echo ""; echo ""; echo ""; echo "
"; $numkids = 0; $sfamilies=$person->getSpouseFamilies(); if (count($sfamilies)>0) { $firstkids = 0; foreach ($sfamilies as $family) { $children=$family->getChildren(); if (count($children)>0) { echo ""; foreach ($children as $i=>$child) { $rowspan = 2; if ($i>0 && $i"; $twidth = 7; if (count($children)==1) { $twidth+=3; } echo ""; if (count($children)>1) { if ($i==0) { echo ""; echo ""; } else if ($i==count($children)-1) { echo ""; echo ""; } else { echo ""; } } echo ""; } echo "
"; if ($count < $dgenerations-1) { $kids = print_descendency($child, $count+1); if ($i==0) $firstkids = $kids; $numkids += $kids; } else { print_pedigree_person($child); $numkids++; } echo "\"\"\"\"
\"\"\"\"
\"\"\"\"
"; } } echo "
"; } if ($numkids==0) { $numkids = 1; $tbwidth = $bwidth+16; for ($j=$count; $j<$dgenerations; $j++) { echo ""; } } //-- add offset divs to make things line up better if ($show_spouse) { foreach ($sfamilies as $family) { echo '

'; } } print_pedigree_person($person); if ($show_spouse) { foreach ($sfamilies as $family) { echo '
', $family->getMarriage()->print_simple_fact(); print_pedigree_person($family->getSpouse($person)); } } echo "
"; return $numkids; } function print_person_pedigree($person, $count) { global $generations, $SHOW_EMPTY_BOXES, $WT_IMAGES, $bheight, $bhalfheight; if ($count>=$generations || !$person) return; $hheight = ($bhalfheight+3) * pow(2,($generations-$count-1)); foreach ($person->getChildFamilies() as $family) { echo ""; $height="100%"; echo ""; if ($count<$generations-1) { echo ""; echo ""; } echo ""; echo ""; echo ""; if ($count<$generations-1) { echo ""; echo ""; } echo ""; echo ""; echo ""; if ($count<$generations-1) { echo ""; } echo "
\"\"\"\""; print_pedigree_person($family->getHusband()); echo ""; print_person_pedigree($family->getHusband(), $count+1); echo "
\"\"
\"\"\"\""; print_pedigree_person($family->getWife()); echo ""; print_person_pedigree($family->getWife(), $count+1); echo "
\"\"
"; } } function print_family_book($person, $descent) { global $generations, $dgenerations, $firstrun; if ($descent==0 || !$person->canDisplayName()) { return; } $families=$person->getSpouseFamilies(); if (count($families)>0 || empty($firstrun)) { $firstrun=true; echo '

', /* I18N: A title/heading. %s is a person's name */ WT_I18N::translate('Family of %s', $person->getFullName()), '

'; $dgenerations = $generations; print_descendency($person, 1); echo ''; print_person_pedigree($person, 1); echo '





'; foreach ($families as $family) { foreach ($family->getChildren() as $child) { print_family_book($child, $descent-1); } } } } print_header(/* I18N: %s is a person's name */ WT_I18N::translate('Family book of %s', $person->getFullName())); if ($ENABLE_AUTOCOMPLETE) require WT_ROOT.'js/autocomplete.js.htm'; // LBox ===================================================================================== if (WT_USE_LIGHTBOX) { require WT_ROOT.WT_MODULES_DIR.'lightbox/lb_defaultconfig.php'; require WT_ROOT.WT_MODULES_DIR.'lightbox/functions/lb_call_js.php'; } // ========================================================================================== echo '
'; echo '

'.WT_I18N::translate('Family book of %s', $person->getFullName()), help_link('family_book_chart'), '

'; ?>
 
" />
/>
%   
  
'; print_family_book($person, $descent); echo ''; print_footer();