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/marriage/data.json/index.php | 39 ------------ app/genealogy/search/marriage/index.php | 73 ----------------------- app/genealogy/search/marriage/results/index.php | 38 ------------ 3 files changed, 150 deletions(-) delete mode 100644 app/genealogy/search/marriage/data.json/index.php delete mode 100644 app/genealogy/search/marriage/index.php delete mode 100644 app/genealogy/search/marriage/results/index.php (limited to 'app/genealogy/search/marriage') diff --git a/app/genealogy/search/marriage/data.json/index.php b/app/genealogy/search/marriage/data.json/index.php deleted file mode 100644 index 5e57689..0000000 --- a/app/genealogy/search/marriage/data.json/index.php +++ /dev/null @@ -1,39 +0,0 @@ - $person) { - if (isset($person["family"]) && isset($person["family"]["marriage"]["date"]) && isset($person["family"]["marriage"]["date"]["year"])) { - if (isset($counts[(string)$person["family"]["marriage"]["date"]["year"]])) { - $counts[(string)$person["family"]["marriage"]["date"]["year"]]++; - } else { - $counts[(string)$person["family"]["marriage"]["date"]["year"]] = 1; - } - if (!in_array((string)$person["family"]["marriage"]["date"]["year"], $names)) { - $names[] = (string)$person["family"]["marriage"]["date"]["year"]; - } - } -} - -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/marriage/index.php b/app/genealogy/search/marriage/index.php deleted file mode 100644 index 90db3e2..0000000 --- a/app/genealogy/search/marriage/index.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Rechercher par date de mariage

-

Patientez...

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