filter working

This commit is contained in:
Adrian Amaglio 2018-03-27 08:51:11 +02:00
parent 74a5b5375b
commit 3e9da1451e

View File

@ -55,6 +55,7 @@ if(isset($_GET['filter'])){
<tr><th>Sélectionner</th><th>Nom</th><th>Vélos</th><th>Places Libres</th></tr> <tr><th>Sélectionner</th><th>Nom</th><th>Vélos</th><th>Places Libres</th></tr>
<?php <?php
foreach ($data as $key => $station){ foreach ($data as $key => $station){
if ( ! $filter || isset($_GET[$key])){
echo echo
'<tr> '<tr>
<td><input type="checkbox" name="',$key,'"/></td> <td><input type="checkbox" name="',$key,'"/></td>
@ -65,6 +66,7 @@ if(isset($_GET['filter'])){
<td>', $station['ABS'], '</td> <td>', $station['ABS'], '</td>
</tr>'; </tr>';
} }
}
?> ?>
</table> </table>
<?php if ($filter) { ?> <?php if ($filter) { ?>