From 41556be35cba41643d18f27c4c9ba264dde6a186 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 12 Apr 2022 11:47:01 +0200 Subject: Commit --- search/birth/data.json/index.php | 76 +++++++++---------- search/birth/index.php | 144 ++++++++++++++++++------------------ search/birth/results/index.php | 74 +++++++++--------- search/city/data.json/index.php | 76 +++++++++---------- search/city/index.php | 144 ++++++++++++++++++------------------ search/city/results/index.php | 74 +++++++++--------- search/death/data.json/index.php | 76 +++++++++---------- search/death/index.php | 144 ++++++++++++++++++------------------ search/death/results/index.php | 74 +++++++++--------- search/dept/data.json/index.php | 76 +++++++++---------- search/dept/index.php | 144 ++++++++++++++++++------------------ search/dept/results/index.php | 74 +++++++++--------- search/lastname/data.json/index.php | 76 +++++++++---------- search/lastname/index.php | 144 ++++++++++++++++++------------------ search/lastname/results/index.php | 70 +++++++++--------- search/marriage/data.json/index.php | 76 +++++++++---------- search/marriage/index.php | 144 ++++++++++++++++++------------------ search/marriage/results/index.php | 74 +++++++++--------- search/name/data.json/index.php | 76 +++++++++---------- search/name/index.php | 144 ++++++++++++++++++------------------ search/name/results/index.php | 70 +++++++++--------- search/state/data.json/index.php | 76 +++++++++---------- search/state/index.php | 144 ++++++++++++++++++------------------ search/state/results/index.php | 74 +++++++++--------- 24 files changed, 1172 insertions(+), 1172 deletions(-) (limited to 'search') diff --git a/search/birth/data.json/index.php b/search/birth/data.json/index.php index 5baf427..851a14f 100644 --- a/search/birth/data.json/index.php +++ b/search/birth/data.json/index.php @@ -1,39 +1,39 @@ - $person) { - if (isset($person["birth"]["date"]) && isset($person["birth"]["date"]["year"])) { - if (isset($counts[(string)$person["birth"]["date"]["year"]])) { - $counts[(string)$person["birth"]["date"]["year"]]++; - } else { - $counts[(string)$person["birth"]["date"]["year"]] = 1; - } - if (!in_array((string)$person["birth"]["date"]["year"], $names)) { - $names[] = (string)$person["birth"]["date"]["year"]; - } - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - + $person) { + if (isset($person["birth"]["date"]) && isset($person["birth"]["date"]["year"])) { + if (isset($counts[(string)$person["birth"]["date"]["year"]])) { + $counts[(string)$person["birth"]["date"]["year"]]++; + } else { + $counts[(string)$person["birth"]["date"]["year"]] = 1; + } + if (!in_array((string)$person["birth"]["date"]["year"], $names)) { + $names[] = (string)$person["birth"]["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/search/birth/index.php b/search/birth/index.php index 2e412a4..6817390 100644 --- a/search/birth/index.php +++ b/search/birth/index.php @@ -1,73 +1,73 @@ - -
-

Rechercher par date de naissance

-

Patientez...

- - - - -
-
-
+ +
+

Rechercher par date de naissance

+

Patientez...

+ + + + +
+
+
\ No newline at end of file diff --git a/search/birth/results/index.php b/search/birth/results/index.php index 6104373..48c6392 100644 --- a/search/birth/results/index.php +++ b/search/birth/results/index.php @@ -1,38 +1,38 @@ - $person) { - if (isset($person["birth"]["date"]) && isset($person["birth"]["date"]["year"])) { - if ((string)$person["birth"]["date"]["year"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 0): ?> - - -
- - # - -
+ $person) { + if (isset($person["birth"]["date"]) && isset($person["birth"]["date"]["year"])) { + if ((string)$person["birth"]["date"]["year"] === $q) { + $results[] = $id; + } + } +} +if (count($results) === 0): ?> + + +
+ + # + +
\ No newline at end of file diff --git a/search/city/data.json/index.php b/search/city/data.json/index.php index fdf0665..e61fd04 100644 --- a/search/city/data.json/index.php +++ b/search/city/data.json/index.php @@ -1,39 +1,39 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["city"])) { - if (isset($counts[$person["birth"]["place"]["city"]])) { - $counts[$person["birth"]["place"]["city"]]++; - } else { - $counts[$person["birth"]["place"]["city"]] = 1; - } - if (!in_array($person["birth"]["place"]["city"], $names)) { - $names[] = $person["birth"]["place"]["city"]; - } - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - + $person) { + if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["city"])) { + if (isset($counts[$person["birth"]["place"]["city"]])) { + $counts[$person["birth"]["place"]["city"]]++; + } else { + $counts[$person["birth"]["place"]["city"]] = 1; + } + if (!in_array($person["birth"]["place"]["city"], $names)) { + $names[] = $person["birth"]["place"]["city"]; + } + } +} + +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/search/city/index.php b/search/city/index.php index 0c3825e..6559927 100644 --- a/search/city/index.php +++ b/search/city/index.php @@ -1,73 +1,73 @@ - -
-

Rechercher par ville de naissance

-

Patientez...

- - - - -
-
-
+ +
+

Rechercher par ville de naissance

+

Patientez...

+ + + + +
+
+
\ No newline at end of file diff --git a/search/city/results/index.php b/search/city/results/index.php index 8dafdfa..cbc0e66 100644 --- a/search/city/results/index.php +++ b/search/city/results/index.php @@ -1,38 +1,38 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["city"])) { - if ($person["birth"]["place"]["city"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 0): ?> - - -
- - # - -
+ $person) { + if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["city"])) { + if ($person["birth"]["place"]["city"] === $q) { + $results[] = $id; + } + } +} +if (count($results) === 0): ?> + + +
+ + # + +
\ No newline at end of file diff --git a/search/death/data.json/index.php b/search/death/data.json/index.php index 8cc8708..f1db1ae 100644 --- a/search/death/data.json/index.php +++ b/search/death/data.json/index.php @@ -1,39 +1,39 @@ - $person) { - if (isset($person["death"]["date"]) && isset($person["death"]["date"]["year"])) { - if (isset($counts[(string)$person["death"]["date"]["year"]])) { - $counts[(string)$person["death"]["date"]["year"]]++; - } else { - $counts[(string)$person["death"]["date"]["year"]] = 1; - } - if (!in_array((string)$person["death"]["date"]["year"], $names)) { - $names[] = (string)$person["death"]["date"]["year"]; - } - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - + $person) { + if (isset($person["death"]["date"]) && isset($person["death"]["date"]["year"])) { + if (isset($counts[(string)$person["death"]["date"]["year"]])) { + $counts[(string)$person["death"]["date"]["year"]]++; + } else { + $counts[(string)$person["death"]["date"]["year"]] = 1; + } + if (!in_array((string)$person["death"]["date"]["year"], $names)) { + $names[] = (string)$person["death"]["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/search/death/index.php b/search/death/index.php index 73b7742..0cfdc74 100644 --- a/search/death/index.php +++ b/search/death/index.php @@ -1,73 +1,73 @@ - -
-

Rechercher par date de décès

-

Patientez...

- - - - -
-
-
+ +
+

Rechercher par date de décès

+

Patientez...

+ + + + +
+
+
\ No newline at end of file diff --git a/search/death/results/index.php b/search/death/results/index.php index 4b0201b..b3210d8 100644 --- a/search/death/results/index.php +++ b/search/death/results/index.php @@ -1,38 +1,38 @@ - $person) { - if (isset($person["death"]["date"]) && isset($person["death"]["date"]["year"])) { - if ((string)$person["death"]["date"]["year"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 0): ?> - - -
- - # - -
+ $person) { + if (isset($person["death"]["date"]) && isset($person["death"]["date"]["year"])) { + if ((string)$person["death"]["date"]["year"] === $q) { + $results[] = $id; + } + } +} +if (count($results) === 0): ?> + + +
+ + # + +
\ No newline at end of file diff --git a/search/dept/data.json/index.php b/search/dept/data.json/index.php index 5a0ed2a..fb27645 100644 --- a/search/dept/data.json/index.php +++ b/search/dept/data.json/index.php @@ -1,39 +1,39 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["dept"])) { - if (isset($counts[$person["birth"]["place"]["dept"]])) { - $counts[$person["birth"]["place"]["dept"]]++; - } else { - $counts[$person["birth"]["place"]["dept"]] = 1; - } - if (!in_array($person["birth"]["place"]["dept"], $names)) { - $names[] = $person["birth"]["place"]["dept"]; - } - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - + $person) { + if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["dept"])) { + if (isset($counts[$person["birth"]["place"]["dept"]])) { + $counts[$person["birth"]["place"]["dept"]]++; + } else { + $counts[$person["birth"]["place"]["dept"]] = 1; + } + if (!in_array($person["birth"]["place"]["dept"], $names)) { + $names[] = $person["birth"]["place"]["dept"]; + } + } +} + +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/search/dept/index.php b/search/dept/index.php index 4c75745..b789f8b 100644 --- a/search/dept/index.php +++ b/search/dept/index.php @@ -1,73 +1,73 @@ - -
-

Rechercher par département de naissance

-

Patientez...

- - - - -
-
-
+ +
+

Rechercher par département de naissance

+

Patientez...

+ + + + +
+
+
\ No newline at end of file diff --git a/search/dept/results/index.php b/search/dept/results/index.php index b84ff89..3e09605 100644 --- a/search/dept/results/index.php +++ b/search/dept/results/index.php @@ -1,38 +1,38 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["dept"])) { - if ($person["birth"]["place"]["dept"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 0): ?> - - -
- - # - -
+ $person) { + if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["dept"])) { + if ($person["birth"]["place"]["dept"] === $q) { + $results[] = $id; + } + } +} +if (count($results) === 0): ?> + + +
+ + # + +
\ No newline at end of file diff --git a/search/lastname/data.json/index.php b/search/lastname/data.json/index.php index 861b791..a6c0daa 100644 --- a/search/lastname/data.json/index.php +++ b/search/lastname/data.json/index.php @@ -1,39 +1,39 @@ - $person) { - $name = ucfirst(strtolower($person["famname"])); - - if (isset($counts[$name])) { - $counts[$name]++; - } else { - $counts[$name] = 1; - } - if (!in_array($name, $names)) { - $names[] = $name; - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - + $person) { + $name = ucfirst(strtolower($person["famname"])); + + if (isset($counts[$name])) { + $counts[$name]++; + } else { + $counts[$name] = 1; + } + if (!in_array($name, $names)) { + $names[] = $name; + } +} + +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/search/lastname/index.php b/search/lastname/index.php index 1b932f0..5e3717d 100644 --- a/search/lastname/index.php +++ b/search/lastname/index.php @@ -1,73 +1,73 @@ - -
-

Rechercher par nom

-

Patientez...

- - - - -
-
-
+ +
+

Rechercher par nom

+

Patientez...

+ + + + +
+
+
\ No newline at end of file diff --git a/search/lastname/results/index.php b/search/lastname/results/index.php index 80bc75b..bfb80f7 100644 --- a/search/lastname/results/index.php +++ b/search/lastname/results/index.php @@ -1,36 +1,36 @@ - $person) { - if (ucfirst(strtolower($person["famname"])) === ucfirst(strtolower($q))) { - $results[] = $id; - } -} -if (count($results) === 0): ?> - - -
- - # - -
+ $person) { + if (ucfirst(strtolower($person["famname"])) === ucfirst(strtolower($q))) { + $results[] = $id; + } +} +if (count($results) === 0): ?> + + +
+ + # + +
\ No newline at end of file diff --git a/search/marriage/data.json/index.php b/search/marriage/data.json/index.php index 8a999a4..5e57689 100644 --- a/search/marriage/data.json/index.php +++ b/search/marriage/data.json/index.php @@ -1,39 +1,39 @@ - $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" : "") - ]; -} - + $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/search/marriage/index.php b/search/marriage/index.php index 85129bc..90db3e2 100644 --- a/search/marriage/index.php +++ b/search/marriage/index.php @@ -1,73 +1,73 @@ - -
-

Rechercher par date de mariage

-

Patientez...

- - - - -
-
-
+ +
+

Rechercher par date de mariage

+

Patientez...

+ + + + +
+
+
\ No newline at end of file diff --git a/search/marriage/results/index.php b/search/marriage/results/index.php index 172a124..618f060 100644 --- a/search/marriage/results/index.php +++ b/search/marriage/results/index.php @@ -1,38 +1,38 @@ - $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): ?> - - -
- - # - -
+ $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 diff --git a/search/name/data.json/index.php b/search/name/data.json/index.php index 7eeed57..76ef273 100644 --- a/search/name/data.json/index.php +++ b/search/name/data.json/index.php @@ -1,39 +1,39 @@ - $person) { - $name = ucfirst(strtolower($person["surname"])); - - if (isset($counts[$name])) { - $counts[$name]++; - } else { - $counts[$name] = 1; - } - if (!in_array($name, $names)) { - $names[] = $name; - } -} - -foreach ($names as $name) { - $arr[] = [ - 'name' => $name, - 'occurrences' => $counts[$name] . " personne" . ($counts[$name] > 1 ? "s" : "") - ]; -} - + $person) { + $name = ucfirst(strtolower($person["surname"])); + + if (isset($counts[$name])) { + $counts[$name]++; + } else { + $counts[$name] = 1; + } + if (!in_array($name, $names)) { + $names[] = $name; + } +} + +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/search/name/index.php b/search/name/index.php index c8a8f5a..afee504 100644 --- a/search/name/index.php +++ b/search/name/index.php @@ -1,73 +1,73 @@ - -
-

Rechercher par prénom

-

Patientez...

- - - - -
-
-
+ +
+

Rechercher par prénom

+

Patientez...

+ + + + +
+
+
\ No newline at end of file diff --git a/search/name/results/index.php b/search/name/results/index.php index 3850287..b316ac0 100644 --- a/search/name/results/index.php +++ b/search/name/results/index.php @@ -1,36 +1,36 @@ - $person) { - if (ucfirst(strtolower($person["surname"])) === ucfirst(strtolower($q))) { - $results[] = $id; - } -} -if (count($results) === 0): ?> - - -
- - # - -
+ $person) { + if (ucfirst(strtolower($person["surname"])) === ucfirst(strtolower($q))) { + $results[] = $id; + } +} +if (count($results) === 0): ?> + + +
+ + # + +
\ No newline at end of file diff --git a/search/state/data.json/index.php b/search/state/data.json/index.php index 6445118..e0bad67 100644 --- a/search/state/data.json/index.php +++ b/search/state/data.json/index.php @@ -1,39 +1,39 @@ - $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" : "") - ]; -} - + $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/search/state/index.php b/search/state/index.php index da20419..1976ac9 100644 --- a/search/state/index.php +++ b/search/state/index.php @@ -1,73 +1,73 @@ - -
-

Rechercher par région de naissance

-

Patientez...

- - - - -
-
-
+ +
+

Rechercher par région de naissance

+

Patientez...

+ + + + +
+
+
\ No newline at end of file diff --git a/search/state/results/index.php b/search/state/results/index.php index 6251ebf..98e4c54 100644 --- a/search/state/results/index.php +++ b/search/state/results/index.php @@ -1,38 +1,38 @@ - $person) { - if (isset($person["birth"]["place"]) && isset($person["birth"]["place"]["state"])) { - if ($person["birth"]["place"]["state"] === $q) { - $results[] = $id; - } - } -} -if (count($results) === 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