Commit 17456262 authored by JonathanMM's avatar JonathanMM

Ajout du statut Close

parent 099d1111
......@@ -38,6 +38,7 @@
<select id="filtreEtat">
<option value="toutes">Toutes</option>
<option value="ouverte" selected>Ouverte</option>
<option value="fermee">Fermée</option>
<option value="travaux">En travaux</option>
</select>
<table id="stations">
......@@ -58,7 +59,7 @@
<td><a href="station.php?code={$station.code}">{$station.codeStr}</a></td>
<td><a href="station.php?code={$station.code}">{$station.name}</a></td>
<td>{$station.dateOuverture}</td>
<td>{if $station.state eq 'Operative' and $station.nbEDock gt 0}Ouverte{else}En travaux{/if}</td>
<td>{if $station.state eq 'Operative' and $station.nbEDock gt 0}Ouverte{elseif $station.state eq 'Close'}Fermée{else}En travaux{/if}</td>
<td>{$station.nbBike}</td>
<td>{$station.nbEbike}</td>
<td>{$station.nbFreeEDock}/{$station.nbEDock}</td>
......@@ -81,6 +82,9 @@
case "travaux":
dt.column(3).search("En travaux").draw();
break;
case "fermee":
dt.column(3).search("Fermée").draw();
break;
default:
dt.column(3).search("").draw();
break;
......
......@@ -64,6 +64,7 @@
<select id="filtreEtat">
<option value="toutes">Toutes</option>
<option value="ouverte" selected>Ouverte</option>
<option value="fermee">Fermée</option>
<option value="travaux">En travaux</option>
</select> -
Position
......@@ -100,6 +101,9 @@
case "travaux":
dt.column(3).search("En travaux").draw();
break;
case "fermee":
dt.column(3).search("Fermée").draw();
break;
default:
dt.column(3).search("").draw();
break;
......@@ -139,6 +143,8 @@
{
if(data == 'Operative' && row.nbEDock > 0)
return 'Ouverte';
else if(data == 'Close')
return 'Fermée';
else
return 'En travaux';
}
......
......@@ -132,6 +132,8 @@
{
if(data == 'Operative' && row.nbEDock > 0)
return 'Ouverte';
else if(data == 'Close')
return 'Fermée';
else
return 'En travaux';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment