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/lastname/data.json/index.php | 39 ------------ app/genealogy/search/lastname/index.php | 73 ----------------------- app/genealogy/search/lastname/results/index.php | 36 ----------- 3 files changed, 148 deletions(-) delete mode 100644 app/genealogy/search/lastname/data.json/index.php delete mode 100644 app/genealogy/search/lastname/index.php delete mode 100644 app/genealogy/search/lastname/results/index.php (limited to 'app/genealogy/search/lastname') diff --git a/app/genealogy/search/lastname/data.json/index.php b/app/genealogy/search/lastname/data.json/index.php deleted file mode 100644 index a6c0daa..0000000 --- a/app/genealogy/search/lastname/data.json/index.php +++ /dev/null @@ -1,39 +0,0 @@ - $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/app/genealogy/search/lastname/index.php b/app/genealogy/search/lastname/index.php deleted file mode 100644 index 5e3717d..0000000 --- a/app/genealogy/search/lastname/index.php +++ /dev/null @@ -1,73 +0,0 @@ - -
-

Rechercher par nom

-

Patientez...

- - - - -
-
-
- \ No newline at end of file diff --git a/app/genealogy/search/lastname/results/index.php b/app/genealogy/search/lastname/results/index.php deleted file mode 100644 index bfb80f7..0000000 --- a/app/genealogy/search/lastname/results/index.php +++ /dev/null @@ -1,36 +0,0 @@ - $person) { - if (ucfirst(strtolower($person["famname"])) === ucfirst(strtolower($q))) { - $results[] = $id; - } -} -if (count($results) === 0): ?> - - -
- - # - -
- \ No newline at end of file -- cgit