. */ /** * Defined in session.php * * @global Tree $WT_TREE */ global $WT_TREE; define('WT_SCRIPT_NAME', 'descendancy.php'); require './includes/session.php'; $controller = new DescendancyController; $controller ->pageHeader() ->addExternalJavascript(WT_AUTOCOMPLETE_JS_URL) ->addInlineJavascript('autocomplete();'); ?>

getPageTitle(); ?>

chart_style == 0 ? 'checked' : ''; ?>>
chart_style == 1 ? 'checked' : ''; ?>>
chart_style == 2 ? 'checked' : ''; ?>>
chart_style == 3 ? 'checked' : ''; ?>>
generations, 2, $WT_TREE->getPreference('MAX_DESCENDANCY_GENERATIONS')); ?>
showFull()); ?>
error_message) { echo '

', $controller->error_message, '

'; } else { 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, array()); echo '
', format_indi_table($descendants), '
'; break; case 3: // Family list $descendants = $controller->familyDescendancy($controller->root, $controller->generations, array()); echo '
', format_fam_table($descendants), '
'; break; } } ?>