toString(); // lists requires a unique ID in case there are multiple lists per page $hundred_years_ago = new DateTime(); $hundred_years_ago->modify('-100 years'); $hundred_years_ago = new Date($hundred_years_ago->format('Y')); ?> getPreference('MAX_ALIVE_AGE'); // init chart data $marr_by_age = []; for ($age = 0; $age <= $max_age; $age++) { $marr_by_age[$age]['M'] = 0; $marr_by_age[$age]['F'] = 0; $marr_by_age[$age]['U'] = 0; } $birt_by_decade = []; $marr_by_decade = []; for ($year = 1400; $year < 2050; $year += 10) { $birt_by_decade[$year]['M'] = 0; $birt_by_decade[$year]['F'] = 0; $birt_by_decade[$year]['U'] = 0; $marr_by_decade[$year]['M'] = 0; $marr_by_decade[$year]['F'] = 0; $marr_by_decade[$year]['U'] = 0; } $birthData = [ [ [ 'label' => I18N::translate('Century'), 'type' => 'date', ], [ 'label' => I18N::translate('Males'), 'type' => 'number', ], [ 'label' => I18N::translate('Females'), 'type' => 'number', ], ] ]; $marriageData = [ [ [ 'label' => I18N::translate('Century'), 'type' => 'date', ], [ 'label' => I18N::translate('Males'), 'type' => 'number', ], [ 'label' => I18N::translate('Females'), 'type' => 'number', ], ] ]; $marriageAgeData = [ [ I18N::translate('Age'), I18N::translate('Males'), I18N::translate('Females'), I18N::translate('Average age'), ] ]; ?>
= I18N::translate('Given names') ?> | = I18N::translate('Surname') ?> | = I18N::translate('Age') ?> | = I18N::translate('Given names') ?> | = I18N::translate('Surname') ?> | = I18N::translate('Age') ?> | = I18N::translate('Marriage') ?> | = view('icons/anniversary') ?> | = I18N::translate('Place') ?> | = I18N::translate('Last change') ?> | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
getAllNames() as $num => $name) : ?>
getPrimaryName()) : ?>
= $name['full'] ?>
getPrimaryName()) : ?>
= view('icons/sex-' . $husb->sex()) ?>
= $husb->getPrimaryParentsNames('parents details1', 'none') ?> |
getMarriageDate(); $hdate = $husb->getBirthDate(); if ($hdate->isOK() && $mdate->isOK()) { if ($hdate->gregorianYear() >= 1550 && $hdate->gregorianYear() < 2030) { ++$birt_by_decade[(int) ($hdate->gregorianYear() / 10) * 10][$husb->sex()]; } $hage = Date::getAgeYears($hdate, $mdate); if ($hage >= 0 && $hage <= $max_age) { ++$marr_by_age[$hage][$husb->sex()]; } } ?> | = Date::getAge($hdate, $mdate) ?> |
getAllNames() as $num => $name) : ?>
getPrimaryName()) : ?>
= $name['full'] ?>
getPrimaryName()) : ?>
= view('icons/sex-' . $wife->sex()) ?>
= $wife->getPrimaryParentsNames('parents details1', 'none') ?> |
getBirthDate(); if ($wdate->isOK() && $mdate->isOK()) { if ($wdate->gregorianYear() >= 1550 && $wdate->gregorianYear() < 2030) { ++$birt_by_decade[(int) ($wdate->gregorianYear() / 10) * 10][$wife->sex()]; } $wage = Date::getAgeYears($wdate, $mdate); if ($wage >= 0 && $wage <= $max_age) { ++$marr_by_age[$wage][$wife->sex()]; } } ?> | = Date::getAge($wdate, $mdate) ?> |
getAllMarriageDates()) : ?>
$marriage_date) : ?>
= $marriage_date->display(true) ?>
gregorianYear() >= 1550 && $marriage_dates[0]->gregorianYear() < 2030) : ?>
gregorianYear() / 10) * 10][$husb->sex()];
++$marr_by_decade[(int) ($marriage_dates[0]->gregorianYear() / 10) * 10][$wife->sex()];
?>
facts(['_NMR'])->isNotEmpty()) : ?>
= I18N::translate('no') ?>
facts(['MARR'])->isNotEmpty()) : ?>
= I18N::translate('yes') ?>
|
= Date::getAge($family->getMarriageDate(), null) ?> |
getAllMarriagePlaces() as $n => $marriage_place) : ?>
= $marriage_place->shortName(true) ?>
|
= I18N::number($family->numberOfChildren()) ?> | = view('components/datetime', ['timestamp' => $family->lastChangeTimestamp()]) ?> | canShow() || !$mdate->isOK()) : ?> U 0) : ?> Y100 YES facts(Gedcom::DIVORCE_EVENTS)->isNotEmpty()) : ?> D spouseFamilies()) > 1 || count($wife->spouseFamilies()) > 1) : ?> M | isDead() && $wife->isDead()) : ?> Y isDead() && !$wife->isDead()) : ?> sex() === 'F') : ?> H sex() === 'M') : ?> W isDead() && $wife->isDead()) : ?> sex() === 'M') : ?> W sex() === 'F') : ?> H isDead() && !$wife->isDead()) : ?> N | childFamilies() && !$wife->childFamilies()) : ?> R isDead() && !$wife->isDead() && $family->numberOfChildren() === 0) : ?> L |