. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\AjaxController; use Fisharebest\Webtrees\Controller\PageController; use Fisharebest\Webtrees\Functions\FunctionsPrint; /** @global Tree $WT_TREE */ global $WT_TREE; require 'includes/session.php'; // check for on demand content loading $tab = Filter::get('tab', '[0123]', ''); $ajax = Filter::getBool('ajax'); if (!$ajax) { $controller = new PageController; $controller ->restrictAccess(Module::isActiveChart($WT_TREE, 'statistics_chart')) ->setPageTitle(I18N::translate('Statistics')) ->addInlineJavascript('$(function() {$("a[data-toggle=tab]:first").tab("show"); /* Activate the first tab */});') ->pageHeader(); ?>

pageHeader(); $stats = new Stats($WT_TREE); ?>

totalIndividuals()) ?>

totalSexMales() ?> totalSexFemales() ?> totalLiving() ?> totalDeceased() ?>
chartSex() ?> chartMortality() ?>

totalBirths() ?> totalDeaths() ?>
statsBirth() ?> statsDeath() ?>
firstBirth() ?> firstDeath() ?>
lastBirth() ?> lastDeath() ?>

averageLifespan(true) ?> averageLifespanMale(true) ?> averageLifespanFemale(true) ?>
statsAge() ?>

topTenOldestMaleList() ?> topTenOldestFemaleList() ?>

topTenOldestMaleListAlive() ?> topTenOldestFemaleListAlive() ?>

totalSurnames() ?> totalGivennames() ?>
chartCommonSurnames() ?> chartCommonGiven() ?>

totalFamilies()) ?>

totalMarriages() ?> totalDivorces() ?>
statsMarr() ?> statsDiv() ?>
firstMarriage() ?> firstDivorce() ?>
lastMarriage() ?> lastDivorce() ?>

topAgeOfMarriage() ?> minAgeOfMarriage() ?>
topAgeOfMarriageFamily() ?> minAgeOfMarriageFamily() ?>

youngestMarriageMaleAge(true) ?> youngestMarriageFemaleAge(true) ?>
youngestMarriageMale() ?> youngestMarriageFemale() ?>
oldestMarriageMaleAge(true) ?> oldestMarriageFemaleAge(true) ?>
oldestMarriageMale() ?> oldestMarriageFemale() ?>
statsMarrAge() ?>

youngestFatherAge(true) ?> youngestMotherAge(true) ?>
youngestFather() ?> youngestMother() ?>
oldestFatherAge(true) ?> oldestMotherAge(true) ?>
oldestFather() ?> oldestMother() ?>

averageChildren() ?> noChildrenFamilies() ?>
statsChildren() ?> chartNoChildrenFamilies() ?>
topTenLargestFamilyList() ?> topTenLargestGrandFamilyList() ?>

topAgeBetweenSiblingsList() ?> topAgeBetweenSiblingsFullName() ?>
ageBetweenSpousesMFList() ?> ageBetweenSpousesFMList() ?>

totalRecords() ?>

totalMedia() ?> totalSources() ?> totalNotes() ?> totalRepositories() ?>

totalEvents() ?>

firstEventType() ?> lastEventType() ?>
firstEvent() ?> lastEvent() ?>

totalMedia() ?>

chartMedia() ?>

totalSources() ?>

totalIndisWithSources() ?> totalFamsWithSources() ?>
chartIndisWithSources() ?> chartFamsWithSources() ?>

totalPlaces() ?>

commonBirthPlacesList() ?> commonDeathPlacesList() ?>
commonMarriagePlacesList() ?> commonCountriesList() ?>
chartDistribution() ?>

I18N::translate('Month of birth')], true, false, ['onchange' => 'statusEnable("z_sex"); statusHide("x_years"); statusHide("x_months"); statusHide("x_numbers"); statusHide("map_opt");']) ?> I18N::translate('Month of death')], false, false, ['onchange' => 'statusEnable("z_sex"); statusHide("x_years"); statusHide("x_months"); statusHide("x_numbers"); statusHide("map_opt");']) ?> I18N::translate('Month of marriage'), '14' => I18N::translate('Month of first marriage')], false, false, ['onchange' => 'statusChecked("z_none"); statusDisable("z_sex"); statusHide("x_years"); statusHide("x_months"); statusHide("x_numbers"); statusHide("map_opt");']) ?> I18N::translate('Month of birth of first child in a relation')], false, false, ['onchange' => 'statusEnable("z_sex"); statusHide("x_years"); statusHide("x_months"); statusHide("x_numbers"); statusHide("map_opt");']) ?> I18N::translate('Longevity versus time')], false, false, ['onchange' => 'statusEnable("z_sex"); statusShow("x_years"); statusHide("x_months"); statusHide("x_numbers"); statusHide("map_opt");']) ?> I18N::translate('Age in year of marriage')], false, false, ['onchange' => 'statusEnable("z_sex"); statusHide("x_years"); statusShow("x_years_m"); statusHide("x_months"); statusHide("x_numbers"); statusHide("map_opt");']) ?> I18N::translate('Age in year of first marriage')], false, false, ['onchange' => 'statusEnable("z_sex"); statusHide("x_years"); statusShow("x_years_m"); statusHide("x_months"); statusHide("x_numbers"); statusHide("map_opt");']) ?> I18N::translate('Number of children')], false, false, ['onchange' => 'statusEnable("z_sex"); statusHide("x_years"); statusHide("x_months"); statusShow("x_numbers"); statusHide("map_opt");']) ?> I18N::translate('Individual distribution')], false, false, ['onchange' => 'statusHide("x_years"); statusHide("x_months"); statusHide("x_numbers"); statusShow("map_opt"); statusShow("chart_type"); statusHide("axes");']) ?> I18N::translate('Birth by country')], false, false, ['onchange' => 'statusHide("x_years"); statusHide("x_months"); statusHide("x_numbers"); statusShow("map_opt"); statusHide("chart_type"); statusHide("surname_opt");']) ?> I18N::translate('Marriage by country')], false, false, ['onchange' => 'statusHide("x_years"); statusHide("x_months"); statusHide("x_numbers"); statusShow("map_opt"); statusHide("chart_type"); statusHide("surname_opt");']) ?> I18N::translate('Death by country')], false, false, ['onchange' => 'statusHide("x_years"); statusHide("x_months"); statusHide("x_numbers"); statusShow("map_opt"); statusHide("chart_type"); statusHide("surname_opt");']) ?>