diff --git a/index.php b/index.php index 444a865..a90b1f0 100644 --- a/index.php +++ b/index.php @@ -4,6 +4,14 @@ * TODO Cache the humongous API data */ +/* Form submit if a filter is active or not */ +$SEND_BUTTON = [ + true => [ 'value' => '', 'text' => 'Tout afficher'], + 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 */ $data = json_decode( @@ -27,7 +35,7 @@ if(isset($_GET['filter'])){ if(htmlentities($_GET['filter'])) $filter = true; else - $filter = false; + ;$filter = false; }else $filter = false; ?> @@ -36,38 +44,23 @@ if(isset($_GET['filter'])){
+
+