Add the reservation modification feature.
[Project_webapp.git] / includes / reservations.php
index 3230f342122fa57f72c52b16cd9136d04359c1b8..0416bd5af660a159d5777a2029ebf2723021282a 100644 (file)
@@ -26,7 +26,6 @@ $connection->run_prepared_query();
 $connection->get_pquery_result();
 $rows = $connection->get_result_array();
 $connection->close_prepared_query();
-//var_dump($rows);
 if (empty($rows)) {
     echo "Aucune(s) re&#769;servation(s) en cours pour le moment. <br>";
 } else {
@@ -59,8 +58,8 @@ if (empty($rows)) {
                           <input type=\"hidden\" name=\"form\" value=\"reservations\" />
                           <input type=\"hidden\" name=\"flight_id\" value=\"" . $row['NumVol'] . "\" />
                           <input type=\"hidden\" name=\"class_name\" value=\"" . $row['Classe'] . "\" />
-                          <input type=\"submit\" name=\"modify\" value=\"Modifier\">
-                          <input type=\"submit\" name=\"cancel\" value=\"Annuler\">
+                          <input type=\"button\" name=\"modify\" value=\"Modifier\" onClick=\"location.href='index.php?page=modify&flight_id=" . $row['NumVol'] . "&class_name=" . $row['Classe'] . "';\">
+                          <input type=\"button\" name=\"cancel\" value=\"Annuler\" onClick=\"ConfirmCancelFlight()\">
                         </form>
                       </td>\n";
         } else {