From d0982c5250d2e33c824ddccb8bd245ca39faa724 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 12 Jan 2022 18:58:54 +0100 Subject: Upadte --- index.php | 235 +++++++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 187 insertions(+), 48 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index f944d59..1566f5a 100644 --- a/index.php +++ b/index.php @@ -1,49 +1,188 @@ - - - - - - - - Familine Help - - - - - - - - - -
-

Centre d'aide de Familine

-

Obtenez de l'aide avec Familine, rapidement et simplement. Pour commencer, choisissez la catégorie correspondante à votre question.

- + +
+

Familine Recall

+

La généalogie familiale simplifiée et accessible à tous

+ +

Pour vous

+ - - - \ No newline at end of file +
+ +

Statistiques

+
    +
  • personnes
  • +
  • + $person) { + if (isset($person["sex"])) { + if ($person["sex"] === "F") { + $female++; + } else { + $male++; + } + } + } + $total = $male + $female; + echo(round(($female/$total) * 100, 2) . "% de femmes pour " . round(($male/$total) * 100, 2) . "% d'hommes"); + + ?> +
  • +
  • +
  • Ko de données
  • +
  • + (statistiques calculées sur " . count($numChildren) . " familles)"); + + ?> +
  • +
  • + $person) { + if (isset($person["death"]["date"]["year"]) && isset($person["birth"]["date"]["year"])) { + $deathAge[$id] = $person["death"]["date"]["year"] - $person["birth"]["date"]["year"]; + } + } + echo("Décès en moyenne à " . round(array_sum($deathAge)/count($deathAge), 2) . " ans"); + echo(" (statistiques calculées sur " . count($deathAge) . " personnes)"); + + ?> +
  • +
  • + $person) { + if (isset($person["death"]["date"]["year"]) && isset($person["birth"]["date"]["year"])) { + $deathAge[$id] = $person["death"]["date"]["year"] - $person["birth"]["date"]["year"]; + } + } + echo("Personne la plus vieille décédée à " . max($deathAge) . " ans"); + echo(" (" . $data[array_search(max($deathAge), $deathAge)]["famname"] . " " . $data[array_search(max($deathAge), $deathAge)]["surname"] . ", †" . $data[array_search(max($deathAge), $deathAge)]["death"]["date"]["year"] . ")"); + echo(" (statistiques calculées sur " . count($deathAge) . " personnes)"); + + ?> +
  • +
  • + $person) { + if (isset($person["death"]["date"]["year"]) && isset($person["birth"]["date"]["year"])) { + $deathAge[$id] = $person["death"]["date"]["year"] - $person["birth"]["date"]["year"]; + } + } + echo("Personne la plus jeune décédée à " . min($deathAge) . " ans"); + echo(" (" . $data[array_search(min($deathAge), $deathAge)]["famname"] . " " . $data[array_search(min($deathAge), $deathAge)]["surname"] . ", †" . $data[array_search(min($deathAge), $deathAge)]["death"]["date"]["year"] . ")"); + echo(" (statistiques calculées sur " . count($deathAge) . " personnes)"); + + ?> +
  • +
  • + $person) { + if (isset($person["family"])) { + $numChildren[$id] = count($person["family"]["children"]); + } + } + echo("Famille la plus grande avec " . max($numChildren) . " enfants"); + echo(" (" . $data[array_search(max($numChildren), $numChildren)]["famname"] . " " . $data[array_search(max($numChildren), $numChildren)]["surname"] . ")"); + echo(" (statistiques calculées sur " . count($numChildren) . " familles)"); + + ?> +
  • + +
  • + $person) { + if (isset($person["family"])) { + if (isset($person["family"]["marriage"]["date"]["year"]) && isset($person["birth"]["date"]["year"])) { + $ageWhenMarried[$id] = $person["family"]["marriage"]["date"]["year"] - $person["birth"]["date"]["year"]; + } + } + } + echo("Mariage en moyenne à " . round(array_sum($ageWhenMarried)/count($ageWhenMarried), 2) . " ans"); + echo(" (statistiques calculées sur " . count($ageWhenMarried) . " familles)"); + + ?> +
  • +
  • + $person) { + if (isset($person["family"])) { + if (isset($person["family"]["marriage"]["date"]["year"]) && isset($person["birth"]["date"]["year"])) { + $ageWhenMarried[$id] = $person["family"]["marriage"]["date"]["year"] - $person["birth"]["date"]["year"]; + } + } + } + echo("Mariage le plus tard à " . max($ageWhenMarried) . " ans"); + echo(" (" . $data[array_search(max($ageWhenMarried), $ageWhenMarried)]["famname"] . " " . $data[array_search(max($ageWhenMarried), $ageWhenMarried)]["surname"] . ")"); + echo(" (statistiques calculées sur " . count($ageWhenMarried) . " familles)"); + + ?> +
  • +
  • + $person) { + if (isset($person["family"])) { + if (isset($person["family"]["marriage"]["date"]["year"]) && isset($person["birth"]["date"]["year"])) { + $ageWhenMarried[$id] = $person["family"]["marriage"]["date"]["year"] - $person["birth"]["date"]["year"]; + } + } + } + echo("Mariage le plus tôt à " . min($ageWhenMarried) . " ans"); + echo(" (" . $data[array_search(min($ageWhenMarried), $ageWhenMarried)]["famname"] . " " . $data[array_search(min($ageWhenMarried), $ageWhenMarried)]["surname"] . ")"); + echo(" (statistiques calculées sur " . count($ageWhenMarried) . " familles)"); + + ?> +
  • +
+
+ +

Lancer une recherche

+ + +
+
+ \ No newline at end of file -- cgit