echo "<td>" . $guestItinerary->get_firstName() . " " . $guestItinerary->get_lastName() . "</td>"; echo "<td><a class='data' href='flightinfo.php?FID=" . $guestItinerary->get_FID() . "'>" . $guestItinerary->get_FName() . "</a></td>"; echo "<td>" . $guestItinerary->get_source() . "</td>"; echo "<td>" . $guestItinerary->get_dest() . "</td>"; echo "<td>" . $guestItinerary->get_travelDate() . "</td>"; echo "</tr>"; } echo "</table>"; echo "<br><a href='confirmreservation.php?action=cancel&IID=" . $IID . "'>Cancel Reservation</a>"; } else { echo "<br><br><h3>No record found. Please check the Itinerary ID</h3>"; echo "<h4><a href='confirmreservation.php'>Try Again</a></h4>"; } } else { //Guest requested to cancel itinerary $result = cancelReservation($IID); if ($result == 0) { echo "<h2>Itinerary Cancelled"; echo "<h4>The itinerary has been successfully removed. However the guest information is retained for further processing.</h4>"; echo "<p><a href='processitinerary.php'>Process new itinerary</a></p>"; } } } else { ?> <form action="confirmreservation.php"> <input class="form_tfield" type="text" name="IID" value="" /> <input class="form_submitb" name="imageField" type="submit" value="Submit" /> </form> <div id="note"> <p>Enter the Itinerary ID. (Example: 5)</p>
$endDate = new DateTime($informationroom->get_endDate()); $formattedBeginDate = $beginDate->format('Y-m-d'); $formattedEndDate = $endDate->format('Y-m-d'); //if ($showResult) if (isset($_POST['Submit'])) { error_log("will call updateReservation"); $ret = updateReservation($informationroom); if ($ret == -1) { echo "Could not update the Room Reservation"; } else { echo "Update was successful"; } } else { if (isset($_POST['Cancel'])) { error_log("will do a cancel"); $ret = cancelReservation($informationroom); if ($ret == -1) { echo "Could not cancel the room reservation"; } else { echo "Reservation cancellation was submitted"; } } else { if (isset($_POST['Approve'])) { error_log("will approve"); $ret = approveReservation($informationroom); if ($ret == -1) { echo "Could not approve the room reservation"; } else { $activityType = $informationroom->get_activityType(); if ($activityType == 'Apply') { echo 'Room reservation request for ' . $informationroom->get_parentFirstName() . ', ' . $informationroom->get_parentLastName() . ', start date ' . $informationroom->get_beginDate() . ', end date ' . $informationroom->get_endDate() . '. was approved';