Пример #1
0
    $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>
				<td class="facts_value" align="center">', $stats->totalBirths(), '</td>
Пример #2
0
    $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>
				<td class="facts_value statistics-page">', $stats->totalBirths(), '</td>