1
0
mirror of synced 2025-12-28 00:23:25 +00:00

feat(login/register) blabla

This commit is contained in:
Valentin
2024-06-10 18:19:34 +02:00
parent f6570e074c
commit 10825d7598
17 changed files with 243 additions and 38 deletions

View File

@@ -1,5 +1,14 @@
<?php
include 'services/stop_service.php';
function getStops($line) {
$json = file_get_contents(__DIR__ . '/../../data/stops.json');
$data = json_decode($json, true);
$result = array_filter($data, function($item) use ($line) {
return $item['fields']['mode'] === 'METRO' && $item['fields']['indice_lig'] === "$line";
});
return $result;
}
?>
<h2>Lignes de Métro</h2>
@@ -20,7 +29,6 @@ include 'services/stop_service.php';
</div>
<div class="modal-body">
<?php
$stops = getStops($i);
include 'components/navigate/stop_list.php';
?>
</div>