$controller->pageHeader()->addInlineJavascript('autocomplete();')->addInlineJavascript('jQuery("#loading-indicator").removeClass("loading-image");'); $stats = new WT_Stats($GEDCOM); if ($tab == 0) { echo '<fieldset> <legend>', WT_I18N::translate('Total individuals: %s', $stats->totalIndividuals()), '</legend> <table class="facts_table"> <tr> <td class="facts_label">', WT_I18N::translate('Total males'), '</td> <td class="facts_label">', WT_I18N::translate('Total females'), '</td> <td class="facts_label">', WT_I18N::translate('Total living'), '</td> <td class="facts_label">', WT_I18N::translate('Total dead'), '</td> </tr> <tr> <td class="facts_value" align="center">', $stats->totalSexMales(), '</td> <td class="facts_value" align="center">', $stats->totalSexFemales(), '</td> <td class="facts_value" align="center">', $stats->totalLiving(), '</td> <td class="facts_value" align="center">', $stats->totalDeceased(), '</td> </tr> <tr> <td class="facts_value statistics-page" colspan="2">', $stats->chartSex(), '</td> <td class="facts_value statistics-page" colspan="2">', $stats->chartMortality(), '</td> </tr> </table> <br> <b>', WT_I18N::translate('Events'), '</b> <table class="facts_table"> <tr> <td class="facts_label">', WT_I18N::translate('Total births'), '</td> <td class="facts_label">', WT_I18N::translate('Total deaths'), '</td> </tr> <tr>