function display_reservations($results) { echo <<<EOS <div class="row"> <table class="table table-striped table-bordered"> <thead> <tr> <th>Last Name</th> <th>First Name</th> <th>Check In</th> <th>Check Out</th> <th>Roll Out Beds</th> <th>Room Number</th> <th>Action</th> </tr> </thead> <tbody> EOS; if (is_array($results)) { for ($i = 0; $i < count($results); $i++) { display_reservation($results[$i]); } } else { display_reservation($results); } echo <<<EOS </tbody> </table> </div> EOS; }
function display_reservations($results) { if (is_array($results)) { for ($i = 0; $i < count($results); $i++) { display_reservation($results[$i]); } } else { display_reservation($results); } }
function test_retrieve_RoomReservationActivity_byRequestId($roomReservationRequestId) { $reservation = retrieve_RoomReservationActivity_byRequestId($roomReservationRequestId); if ($reservation == false) { echo "</br>" . "No Reservations were Found." . "</br></br></br>"; } else { echo "</br>" . "Records Found:" . "</br>"; // foreach ($reservations as $reservation) // { display_reservation($reservation); // } } }