. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\DescendancyController; use Fisharebest\Webtrees\Functions\FunctionsEdit; use Fisharebest\Webtrees\Functions\FunctionsPrintLists; require 'includes/session.php'; $controller = new DescendancyController; $controller->restrictAccess(Module::isActiveChart($controller->tree(), 'descendancy_chart')); // Only generate the content for interactive users (not search robots). if (Filter::getBool('ajax') && Session::has('initiated')) { switch ($controller->chart_style) { case 0: // List echo ''; break; case 1: // Booklet $show_cousins = true; echo '
'; $controller->printChildFamily($controller->root, $controller->generations); echo '
'; break; case 2: // Individual list $descendants = $controller->individualDescendancy($controller->root, $controller->generations, []); echo '
', FunctionsPrintLists::individualTable($descendants), '
'; break; case 3: // Family list $descendants = $controller->familyDescendancy($controller->root, $controller->generations, []); echo '
', FunctionsPrintLists::familyTable($descendants), '
'; break; } echo $controller->getJavascript(); return; } $controller ->addInlineJavascript('$(".wt-page-content").load(document.location + "&ajax=1");') ->pageHeader(); ?>

getPageTitle() ?>

root, ['id' => 'rootid', 'name' => 'rootid']) ?>
tree()->getPreference('MAX_DESCENDANCY_GENERATIONS'))), $controller->generations, ['id' => 'generations', 'name' => 'generations']) ?>
I18N::translate('List'), '1' => I18N::translate('Booklet'), '2' => I18N::translate('Individuals'), '3' => I18N::translate('Families')], $controller->chart_style, true, ['onclick' => 'statusDisable("show_cousins");']) ?>