:)
This commit is contained in:
parent
d7dc145ac1
commit
8fce36a227
11
index.php
11
index.php
@ -2,16 +2,15 @@
|
|||||||
/*
|
/*
|
||||||
* Page displays in french because it will be mostly used by french. Feel free to add language system.
|
* Page displays in french because it will be mostly used by french. Feel free to add language system.
|
||||||
* TODO Cache the humongous API data
|
* TODO Cache the humongous API data
|
||||||
|
* TODO Sort the stations
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Form submit if a filter is active or not */
|
/* Form submit values if a filter is active or not */
|
||||||
$SEND_BUTTON = [
|
$SEND_BUTTON = [
|
||||||
true => [ 'value' => '', 'text' => 'Tout afficher'],
|
true => [ 'value' => '', 'text' => 'Tout afficher'],
|
||||||
false => [ 'value' => 'true', 'text' => 'Afficher la sélection'],
|
false => [ 'value' => 'true', 'text' => 'Afficher la sélection'],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Fetching velov API in an associative array. This form is easier to use as keys are ids */
|
/* Fetching velov API in an associative array. This form is easier to use as keys are ids */
|
||||||
$data =
|
$data =
|
||||||
json_decode(
|
json_decode(
|
||||||
@ -35,7 +34,7 @@ if(isset($_GET['filter'])){
|
|||||||
if(htmlentities($_GET['filter']))
|
if(htmlentities($_GET['filter']))
|
||||||
$filter = true;
|
$filter = true;
|
||||||
else
|
else
|
||||||
;$filter = false;
|
$filter = false;
|
||||||
}else
|
}else
|
||||||
$filter = false;
|
$filter = false;
|
||||||
?>
|
?>
|
||||||
@ -84,5 +83,9 @@ if(isset($_GET['filter'])){
|
|||||||
<h4>Pourquoi ces couleurs ?</h4>
|
<h4>Pourquoi ces couleurs ?</h4>
|
||||||
Le <span class="success">vert</span> est réservé aux stations actives, le <span class="danger">rouge</span> est pour celles inutilisables.
|
Le <span class="success">vert</span> est réservé aux stations actives, le <span class="danger">rouge</span> est pour celles inutilisables.
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<h4>C’est tout dans le désordre !</h4>
|
||||||
|
Oui.
|
||||||
|
</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user