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>
<?php
foreach ($data as $key => $station){
if ( ! $filter || isset($_GET[$key])){
echo
'<tr>
<td><input type="checkbox" name="',$key,'"/></td>
@ -65,6 +66,7 @@ if(isset($_GET['filter'])){
<td>', $station['ABS'], '</td>
</tr>';
}
}
?>
</table>
<?php if ($filter) { ?>