Ejemplo n.º 1
0
    $controller->pageHeader()->addInlineJavascript('autocomplete();')->addInlineJavascript('jQuery("#loading-indicator").removeClass("loading-image");');
    $stats = new Stats($WT_TREE);
    if ($tab == 0) {
        echo '<fieldset>
		<legend>', I18N::translate('Total individuals: %s', $stats->totalIndividuals()), '</legend>
		<table class="facts_table">
			<tr>
				<td class="facts_label">', I18N::translate('Total males'), '</td>
				<td class="facts_label">', I18N::translate('Total females'), '</td>
				<td class="facts_label">', I18N::translate('Total living'), '</td>
				<td class="facts_label">', 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>', I18N::translate('Events'), '</b>
		<table class="facts_table">
			<tr>
				<td class="facts_label">', I18N::translate('Total births'), '</td>
				<td class="facts_label">', I18N::translate('Total deaths'), '</td>
			</tr>
			<tr>
Ejemplo n.º 2
0
    $controller->pageHeader()->addInlineJavascript('autocomplete();')->addInlineJavascript('jQuery("#loading-indicator").removeClass("loading-image");');
    $stats = new Stats($WT_TREE);
    if ($tab == 0) {
        echo '<fieldset>
		<legend>', I18N::translate('Total individuals: %s', $stats->totalIndividuals()), '</legend>
		<table class="facts_table">
			<tr>
				<td class="facts_label">', I18N::translate('Total males'), '</td>
				<td class="facts_label">', I18N::translate('Total females'), '</td>
				<td class="facts_label">', I18N::translate('Total living'), '</td>
				<td class="facts_label">', I18N::translate('Total dead'), '</td>
			</tr>
			<tr>
				<td class="facts_value statistics-page">', $stats->totalSexMales(), '</td>
				<td class="facts_value statistics-page">', $stats->totalSexFemales(), '</td>
				<td class="facts_value statistics-page">', $stats->totalLiving(), '</td>
				<td class="facts_value statistics-page">', $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>', I18N::translate('Events'), '</b>
		<table class="facts_table">
			<tr>
				<td class="facts_label">', I18N::translate('Total births'), '</td>
				<td class="facts_label">', I18N::translate('Total deaths'), '</td>
			</tr>
			<tr>