"; //echo "TAB =" . $tabno; // ===================================================================== // Start Family Nav Table ---------------------------- echo ""; global $WT_IMAGES, $spouselinks, $parentlinks, $DeathYr, $BirthYr, $TEXT_DIRECTION; $personcount=0; $families = $this->indi->getChildFamilies(); //-- parent families ------------------------------------------------------------- foreach ($families as $famid=>$family) { $label = $this->indi->getChildFamilyLabel($family); $people = $this->buildFamilyList($family, "parents"); $styleadd = ""; ?> getLabel()); if ($TEXT_DIRECTION=="ltr") { $menu->addClass("", "", "submenu flyout"); } else { $menu->addClass("", "", "submenu flyoutrtl"); } $slabel = "".print_pedigree_person_nav($people["husb"]->getXref(), 2, 0, $personcount++); $slabel .= PrintReady($parentlinks).""; $submenu = new Menu($slabel); $menu->addSubMenu($submenu); if (PrintReady($people["husb"]->getDeathYear()) == 0) { $DeathYr = ""; } else { $DeathYr = PrintReady($people["husb"]->getDeathYear()); } if (PrintReady($people["husb"]->getBirthYear()) == 0) { $BirthYr = ""; } else { $BirthYr = PrintReady($people["husb"]->getBirthYear()); } ?> getLabel()); if ($TEXT_DIRECTION=="ltr") { $menu->addClass("", "", "submenu flyout"); } else { $menu->addClass("", "", "submenu flyoutrtl"); } $slabel = "".print_pedigree_person_nav($people["wife"]->getXref(), 2, 0, $personcount++); $slabel .= PrintReady($parentlinks).""; $submenu = new Menu($slabel); $menu->addSubMenu($submenu); if (PrintReady($people["wife"]->getDeathYear()) == 0) { $DeathYr = ""; } else { $DeathYr = PrintReady($people["wife"]->getDeathYear()); } if (PrintReady($people["wife"]->getBirthYear()) == 0) { $BirthYr = ""; } else { $BirthYr = PrintReady($people["wife"]->getBirthYear()); } ?> getMarriageDate(); foreach ($people["children"] as $key=>$child) { if ($pid == $child->getXref()) { } else { $menu = new Menu($child->getLabel()); if ($TEXT_DIRECTION=="ltr") { $menu->addClass("", "", "submenu flyout"); } else { $menu->addClass("", "", "submenu flyoutrtl"); } $slabel = "".print_pedigree_person_nav($child->getXref(), 2, 0, $personcount++); $slabel .= PrintReady($spouselinks).""; $submenu = new Menu($slabel); $menu->addSubMenu($submenu); } if (PrintReady($child->getDeathYear()) == 0) { $DeathYr = ""; } else { $DeathYr = PrintReady($child->getDeathYear()); } if (PrintReady($child->getBirthYear()) == 0) { $BirthYr = ""; } else { $BirthYr = PrintReady($child->getBirthYear()); } ?> getBirthDate(); } } } //-- step families ---------------------------------------------------------------- foreach ($this->indi->getStepFamilies() as $famid=>$family) { $label = $this->indi->getStepFamilyLabel($family); $people = $this->buildFamilyList($family, "step"); if ($people) { echo ""; } $styleadd = ""; $elderdate = ""; ?> getLabel() == ".") { if (isset($people["husb"]) ) { $menu = new Menu(); if ($people["husb"]->getLabel() == ".") { $menu->addLabel(" " . i18n::translate('Step-Father')); } else { $menu->addLabel(" " . $people["husb"]->getLabel()); } if ($TEXT_DIRECTION=="ltr") { $menu->addClass("", "", "submenu flyout"); } else { $menu->addClass("", "", "submenu flyoutrtl"); } $slabel = "".print_pedigree_person_nav($people["husb"]->getXref(), 2, 0, $personcount++); $slabel .= PrintReady($parentlinks).""; $submenu = new Menu($slabel); $menu->addSubMenu($submenu); if (PrintReady($people["husb"]->getDeathYear()) == 0) { $DeathYr = ""; } else { $DeathYr = PrintReady($people["husb"]->getDeathYear()); } if (PrintReady($people["husb"]->getBirthYear()) == 0) { $BirthYr = ""; } else { $BirthYr = PrintReady($people["husb"]->getBirthYear()); } ?> getBirthDate(); } $styleadd = ""; //if (isset($people["wife"]) && $people["wife"]->getLabel() == ".") { if (isset($people["wife"]) ) { $menu = new Menu(); if ($people["wife"]->getLabel() == ".") { $menu->addLabel(" " . i18n::translate('Step-Mother')); } else { $menu->addLabel(" " . $people["wife"]->getLabel()); } if ($TEXT_DIRECTION=="ltr") { $menu->addClass("", "", "submenu flyout"); } else { $menu->addClass("", "", "submenu flyoutrtl"); } $slabel = "".print_pedigree_person_nav($people["wife"]->getXref(), 2, 0, $personcount++); $slabel .= PrintReady($parentlinks).""; $submenu = new Menu($slabel); $menu->addSubMenu($submenu); if (PrintReady($people["wife"]->getDeathYear()) == 0) { $DeathYr = ""; } else { $DeathYr = PrintReady($people["wife"]->getDeathYear()); } if (PrintReady($people["wife"]->getBirthYear()) == 0) { $BirthYr = ""; } else { $BirthYr = PrintReady($people["wife"]->getBirthYear()); } ?> getMarriageDate(); foreach ($people["children"] as $key=>$child) { $menu = new Menu($child->getLabel()); if ($TEXT_DIRECTION=="ltr") { $menu->addClass("", "", "submenu flyout"); } else { $menu->addClass("", "", "submenu flyoutrtl"); } $slabel = "".print_pedigree_person_nav($child->getXref(), 2, 0, $personcount++); $slabel .= PrintReady($spouselinks).""; $submenu = new Menu($slabel); $menu->addSubMenu($submenu); if (PrintReady($child->getDeathYear()) == 0) { $DeathYr = ""; } else { $DeathYr = PrintReady($child->getDeathYear()); } if (PrintReady($child->getBirthYear()) == 0) { $BirthYr = ""; } else { $BirthYr = PrintReady($child->getBirthYear()); } ?> getBirthDate(); } } } //-- spouse and children -------------------------------------------------- $families = $this->indi->getSpouseFamilies(); foreach ($families as $famid=>$family) { echo ""; ?> buildFamilyList($family, "spouse"); if ($this->indi->equals($people["husb"])) { $spousetag = 'WIFE'; } else { $spousetag = 'HUSB'; } $styleadd = ""; if (isset($people["husb"]) && $spousetag == 'HUSB') { $menu = new Menu(" " . $people["husb"]->getLabel()); if ($TEXT_DIRECTION=="ltr") { $menu->addClass("", "", "submenu flyout"); } else { $menu->addClass("", "", "submenu flyoutrtl"); } $slabel = "".print_pedigree_person_nav($people["husb"]->getXref(), 2, 0, $personcount++); $slabel .= PrintReady($parentlinks).""; $submenu = new Menu($slabel); $menu->addSubMenu($submenu); if (PrintReady($people["husb"]->getDeathYear()) == 0) { $DeathYr = ""; } else { $DeathYr = PrintReady($people["husb"]->getDeathYear()); } if (PrintReady($people["husb"]->getBirthYear()) == 0) { $BirthYr = ""; } else { $BirthYr = PrintReady($people["husb"]->getBirthYear()); } ?> getLabel()); if ($TEXT_DIRECTION=="ltr") { $menu->addClass("", "", "submenu flyout"); } else { $menu->addClass("", "", "submenu flyoutrtl"); } $slabel = "".print_pedigree_person_nav($people["wife"]->getXref(), 2, 0, $personcount++); $slabel .= PrintReady($parentlinks).""; $submenu = new Menu($slabel); $menu->addSubMenu($submenu); if (PrintReady($people["wife"]->getDeathYear()) == 0) { $DeathYr = ""; } else { $DeathYr = PrintReady($people["wife"]->getDeathYear()); } if (PrintReady($people["wife"]->getBirthYear()) == 0) { $BirthYr = ""; } else { $BirthYr = PrintReady($people["wife"]->getBirthYear()); } ?> $child) { $menu = new Menu(" " . $child->getLabel()); if ($TEXT_DIRECTION=="ltr") { $menu->addClass("", "", "submenu flyout"); } else { $menu->addClass("", "", "submenu flyoutrtl"); } $slabel = "".print_pedigree_person_nav($child->getXref(), 2, 0, $personcount++); $slabel .= PrintReady($spouselinks).""; $submenu = new Menu($slabel); $menu->addSubmenu($submenu); if (PrintReady($child->getDeathYear()) == 0) { $DeathYr = ""; } else { $DeathYr = PrintReady($child->getDeathYear()); } if (PrintReady($child->getBirthYear()) == 0) { $BirthYr = ""; } else { $BirthYr = PrintReady($child->getBirthYear()); } ?> "; // ----------------------------------------------------------------------------- // } // ----------------------------------------------------------------------------- // End Family Nav Table // ----------------------------------------------------------------------------- // ================================================================== require_once WT_ROOT.'includes/functions/functions_charts.php'; /** * print the information for an individual chart box * * find and print a given individuals information for a pedigree chart * @param string $pid the Gedcom Xref ID of the to print * @param int $style the style to print the box in, 1 for smaller boxes, 2 for larger boxes * @param boolean $show_famlink set to true to show the icons for the popup links and the zoomboxes * @param int $count on some charts it is important to keep a count of how many boxes were printed */ function print_pedigree_person_nav($pid, $style=1, $count=0, $personcount="1") { global $HIDE_LIVE_PEOPLE, $SHOW_LIVING_NAMES, $ZOOM_BOXES, $LINK_ICONS, $GEDCOM; global $MULTI_MEDIA, $SHOW_HIGHLIGHT_IMAGES, $bwidth, $bheight, $PEDIGREE_FULL_DETAILS, $SHOW_PEDIGREE_PLACES; global $TEXT_DIRECTION, $DEFAULT_PEDIGREE_GENERATIONS, $OLD_PGENS, $talloffset, $PEDIGREE_LAYOUT, $MEDIA_DIRECTORY; global $WT_IMAGES, $ABBREVIATE_CHART_LABELS, $USE_MEDIA_VIEWER; global $chart_style, $box_width, $generations, $show_spouse, $show_full; global $CHART_BOX_TAGS, $SHOW_LDS_AT_GLANCE, $PEDIGREE_SHOW_GENDER; global $SEARCH_SPIDER; global $spouselinks, $parentlinks, $step_parentlinks, $persons, $person_step, $person_parent, $tabno, $theme_name, $spousetag; global $natdad, $natmom; if ($style != 2) $style=1; if (empty($show_full)) $show_full = 0; if (empty($PEDIGREE_FULL_DETAILS)) $PEDIGREE_FULL_DETAILS = 0; if (!isset($OLD_PGENS)) $OLD_PGENS = $DEFAULT_PEDIGREE_GENERATIONS; if (!isset($talloffset)) $talloffset = $PEDIGREE_LAYOUT; $person=Person::getInstance($pid); if ($pid==false || empty($person)) { $spouselinks = false; $parentlinks = false; $step_parentlinks = false; } $tmp=array('M'=>'', 'F'=>'F', 'U'=>'NN'); $isF=$tmp[$person->getSex()]; $spouselinks = ""; $parentlinks = ""; $step_parentlinks = ""; $disp=$person->canDisplayDetails(); if ($person->canDisplayName()) { if (empty($SEARCH_SPIDER)) { if ($LINK_ICONS!="disabled") { //-- draw a box for the family popup $spouselinks .= "".i18n::translate('Family')."
"; $parentlinks .= "".i18n::translate('Parents')."
"; $step_parentlinks .= "".i18n::translate('Parents')."
"; $persons = ""; $person_parent = ""; $person_step = ""; //-- parent families -------------------------------------- $fams = $person->getChildFamilies(); foreach ($fams as $famid=>$family) { if (!is_null($family)) { $husb = $family->getHusband($person); $wife = $family->getWife($person); // $spouse = $family->getSpouse($person); $children = $family->getChildren(); $num = count($children); // Husband ------------------------------ if ($husb || $num>0) { if ($husb) { $person_parent="Yes"; $parentlinks .= "
getHtmlUrl()."&tab={$tabno}"."\">"; $parentlinks .= " ".PrintReady($husb->getFullName()); $parentlinks .= ""; $parentlinks .= "
"; $natdad = "yes"; } } // Wife ------------------------------ if ($wife || $num>0) { if ($wife) { $person_parent="Yes"; $parentlinks .= "getHtmlUrl()."&tab={$tabno}"."\">"; $parentlinks .= " ".PrintReady($wife->getFullName()); $parentlinks .= ""; $parentlinks .= "
"; $natmom = "yes"; } } } } //-- step families ----------------------------------------- $fams = $person->getStepFamilies(); foreach ($fams as $famid=>$family) { if (!is_null($family)) { $husb = $family->getHusband($person); $wife = $family->getWife($person); // $spouse = $family->getSpouse($person); $children = $family->getChildren(); $num = count($children); if ($natdad == "yes") { } else { // Husband ----------------------- if ($husb || $num>0) { if ($husb) { $person_step="Yes"; $parentlinks .= "getHtmlUrl()."&tab={$tabno}"."\">"; $parentlinks .= " ".PrintReady($husb->getFullName()); $parentlinks .= ""; $parentlinks .= "
"; } } } if ($natmom == "yes") { } else { // Wife ---------------------------- if ($wife || $num>0) { if ($wife) { $person_step="Yes"; $parentlinks .= "getHtmlUrl()."&tab={$tabno}"."\">"; $parentlinks .= " ".PrintReady($wife->getFullName()); $parentlinks .= ""; $parentlinks .= "
"; } } } } } // Spouse Families -------------------------------------- @var $family Family $fams = $person->getSpouseFamilies(); foreach ($fams as $famid=>$family) { if (!is_null($family)) { $spouse = $family->getSpouse($person); $children = $family->getChildren(); $num = count($children); // Spouse ------------------------------ if ($spouse || $num>0) { if ($spouse) { $spouselinks .= "getHtmlUrl()."&tab={$tabno}"."\">"; $spouselinks .= " ".PrintReady($spouse->getFullName()); $spouselinks .= ""; if ($spouse->getFullName() != "") { $persons = "Yes"; } } } $spouselinks .= ""; } } if ($persons != "Yes") { $spouselinks .= " (".i18n::translate('none').")"; } if ($person_parent != "Yes") { $parentlinks .= " (".i18n::translate_c('unknown family', 'unknown').")"; } if ($person_step != "Yes") { $step_parentlinks .= " (".i18n::translate_c('unknown family', 'unknown').")"; } } } } }
getHtmlUrl(), '">'; echo "", i18n::translate('Parents Family'), ""; echo ""; ?>
getMenu(); ?> "> getHtmlUrl()."&tab={$tabno}"."\">"; echo PrintReady($people["husb"]->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; echo ""; ?>
getMenu(); ?> "> getHtmlUrl()."&tab={$tabno}"."\">"; echo PrintReady($people["wife"]->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; echo ""; ?>
getXref() ) { echo $child->getLabel(); } else { echo $menu->getMenu(); } ?> getXref()) { echo PrintReady($child->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; } else { echo "getHtmlUrl()."&tab={$tabno}"."\">"; echo PrintReady($child->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; echo "
"; } ?>

getHtmlUrl(), '">'; echo "", i18n::translate('Step-Parent Family'), ""; echo ""; ?>
getMenu(); ?> " > getHtmlUrl()."&tab={$tabno}"."\">"; echo PrintReady($people["husb"]->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; echo ""; ?>
getMenu(); ?> "> getHtmlUrl()."&tab={$tabno}"."\">"; echo PrintReady($people["wife"]->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; echo ""; ?>
getMenu(); ?> getHtmlUrl()."&tab={$tabno}"."\">"; echo PrintReady($child->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; echo ""; ?>

getHtmlUrl(), '">'; echo "", i18n::translate('Immediate Family'), ""; echo ""; ?>
getMenu(); ?> "> getXref()) { echo PrintReady($people["husb"]->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; } else { echo "getHtmlUrl()."&tab={$tabno}"."\">"; echo PrintReady($people["husb"]->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; echo "
"; } ?>
getMenu(); ?> "> getXref()) { echo PrintReady($people["wife"]->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; } else { echo "getHtmlUrl()."&tab={$tabno}"."\">"; echo PrintReady($people["wife"]->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; echo "
"; } ?>
getMenu(); ?> getHtmlUrl()."&tab={$tabno}"."\">"; echo PrintReady($child->getFullName()); echo "
" . $BirthYr . " - " . $DeathYr . "
"; echo ""; ?>