From 6c877fecb5374905d3f49663c68c20416a847e0e Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 12 Apr 2022 13:47:55 +0200 Subject: Commit --- app/genealogy/search/state/data.json/index.php | 39 -------------- app/genealogy/search/state/index.php | 73 -------------------------- app/genealogy/search/state/results/index.php | 38 -------------- 3 files changed, 150 deletions(-) delete mode 100644 app/genealogy/search/state/data.json/index.php delete mode 100644 app/genealogy/search/state/index.php delete mode 100644 app/genealogy/search/state/results/index.php (limited to 'app/genealogy/search/state') diff --git a/app/genealogy/search/state/data.json/index.php b/app/genealogy/search/state/data.json/index.php deleted file mode 100644 index e0bad67..0000000 --- a/app/genealogy/search/state/data.json/index.php +++ /dev/null @@ -1,39 +0,0 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["state"])) { - if (isset($counts[$person["birth"]["place"]["state"]])) { - $counts[$person["birth"]["place"]["state"]]++; - } else { - $counts[$person["birth"]["place"]["state"]] = 1; - } - if (!in_array($person["birth"]["place"]["state"], $names)) { - $names[] = $person["birth"]["place"]["state"]; - } - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - -echo(json_encode($arr)); \ No newline at end of file diff --git a/app/genealogy/search/state/index.php b/app/genealogy/search/state/index.php deleted file mode 100644 index 1976ac9..0000000 --- a/app/genealogy/search/state/index.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Rechercher par région de naissance

-

Patientez...

- - - - -
-
-
- \ No newline at end of file diff --git a/app/genealogy/search/state/results/index.php b/app/genealogy/search/state/results/index.php deleted file mode 100644 index 98e4c54..0000000 --- a/app/genealogy/search/state/results/index.php +++ /dev/null @@ -1,38 +0,0 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["state"])) { - if ($person["birth"]["place"]["state"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 0): ?> - - -
- - # - -
- \ No newline at end of file -- cgit