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->getXref()); $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($pid); if ($show_spouse) { foreach ($sfamilies as $family) { echo '
', $family->getMarriage()->print_simple_fact(); print_pedigree_person($family->getSpouseId($pid)); } } echo "
"; return $numkids; } function print_person_pedigree($pid, $count) { global $generations, $SHOW_EMPTY_BOXES, $WT_IMAGES, $bheight, $bhalfheight; if ($count>=$generations) return; $famids = find_family_ids($pid); $hheight = ($bhalfheight+3) * pow(2,($generations-$count-1)); foreach ($famids as $indexval => $famid) { echo ""; $parents = find_parents($famid); $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($parents["HUSB"]); echo ""; print_person_pedigree($parents["HUSB"], $count+1); echo "
\"\"
\"\"\"\""; print_pedigree_person($parents["WIFE"]); echo ""; print_person_pedigree($parents["WIFE"], $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 */ i18n::translate('Family of %s', $person->getFullName()), '

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





'; foreach ($families as $family) { foreach ($family->getChildren() as $child) { print_family_book($child, $descent-1); } } } } // -- print html header information print_header(PrintReady($name)." ".i18n::translate('Family book chart')); if ($ENABLE_AUTOCOMPLETE) require WT_ROOT.'js/autocomplete.js.htm'; // LBox ===================================================================================== if (WT_USE_LIGHTBOX) { require WT_ROOT.'modules/lightbox/lb_defaultconfig.php'; require WT_ROOT.'modules/lightbox/functions/lb_call_js.php'; } // ========================================================================================== echo ""; echo "
"; echo "

".i18n::translate('Family book chart').":
".PrintReady($name)."

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