Navigation Menu

Skip to content

Commit

Permalink
j'ai une durée qui fonctionne o/
Browse files Browse the repository at this point in the history
  • Loading branch information
KaneRoot committed Apr 24, 2012
1 parent 4cc07f1 commit 1f5c248
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ls5/bdd/projet/site/consulter_vols.php
Expand Up @@ -25,7 +25,10 @@
V.idVol as idvol,
C.nomCompagnie as compagnie,
X.nomVille as vdepart, Y.nomVille as varrivee,
V.dateDepart, V.dateArrivee,
to_char(V.dateDepart, 'yyyy/mm/dd hh24:mi:ss') as datedepart,
to_char(V.dateArrivee, 'yyyy/mm/dd hh24:mi:ss') as datearrivee,
trunc((V.dateArrivee - V.dateDepart)*24) as dureeh,
trunc( MOD(( (V.dateArrivee - V.dateDepart)*24*60),60)) as dureem,
V.idCompagnie as idcompagnie,
nb_billets_reserve(V.idVol, V.idCompagnie) as billetsreserves,
nb_billets_achetes(V.idVol, V.idCompagnie) as billetsachetes,
Expand All @@ -51,6 +54,7 @@
<th>Ville d'arrivée</th>
<th>Date de départ</th>
<th>Date d'arrivée</th>
<th>Durée</th>
<th>Nb billets réservés</th>
<th>Nb billets achetés</th>
<th>Nb billets restants</th>
Expand All @@ -67,6 +71,7 @@
"<td>" . $row['VARRIVEE'] . " </td> " .
"<td>" . $row['DATEDEPART'] . " </td> " .
"<td>" . $row['DATEARRIVEE'] . " </td> " .
"<td>" . $row['DUREEH'] .":". $row['DUREEM'] . " </td> " .
"<td>" . $row['BILLETSRESERVES'] . " </td> " .
"<td>" . $row['BILLETSACHETES'] . " </td> " .
"<td>" . $row['BILLETSRESTANTS'] . "</td>";
Expand Down

0 comments on commit 1f5c248

Please sign in to comment.