echo "Not Available"; } ?> </li> <li><span>No Of Rooms: </span> <?php echo $reservations->reservationNoOfRoom(); ?> </li> </ul> <div class="price-details"> <p class="deposit">Total Price</p> <h3 class="total-price"> <?php echo $reservations->reservationTotalPrice(); ?> <?php echo $reservations->currencyType() . " LKR"; ?> </h3> </div> </div> </div> </div> <div id="footer"></div> </div> </div> <!-- JavaScript -->
if ($reservations->reservationMealType() == "fb") { echo "Full Board"; } if ($reservations->reservationMealType() == "ai") { echo "All Inclusive"; } if ($reservations->reservationMealType() == "ro") { echo "Not Available"; } ?> </li> <li><span>No Of Rooms: </span> <?php echo($reservations->reservationNoOfRoom()); ?></li> </ul> <div class="price-details"> <p class="deposit">Total Price</p> <h3 class="total-price"> <?php echo number_format($reservations->reservationTotalPrice(), 2); ?> <?php echo($reservations->currencyType()); ?> </h3> </div> </div> </div> </div> </div> </div> <div id = "footer"> <div class="container"><span class="copy">© 2014 Roomista.com | All rights reserved</span></div> </div> <!-- JavaScript --> <script type="text/javascript" src="<?php echo HTTP_PATH; ?>js/jquery-1.9.1.js"></script> <script type='text/javascript' src='<?php echo HTTP_PATH; ?>js/jquery-ui.js'></script> <script type="text/javascript" src="<?php echo HTTP_PATH; ?>js/superfish.js"></script> <script type="text/javascript" src="<?php echo HTTP_PATH; ?>js/jquery.prettyPhoto.js"></script> <script type="text/javascript" src="<?php echo HTTP_PATH; ?>js/scripts.js"></script>
<tr style="background-color:#e3e3e3; border:solid 1px #ccc; margin-bottom:1px;"> <td width="34%" height="30" style="padding-left:10px;">From</td> <td width="31%" style="padding-left:2px;">To</td> <td width="35%" style="padding-left:10px;">Rates</td> </tr> <tr style="background-color:#fff; border:solid 1px #ccc; margin-bottom:1px;"> <td width="34%" height="30" style="padding-left:10px;"><?php echo date("d M Y", strtotime($check_in_date)); ?> </td> <td width="31%" style="padding-left:2px;"><?php echo date("d M Y", strtotime($check_out_date)); ?> </td> <td width="35%" style="padding-left:10px;"><?php echo "<strong>" . $reservations->currencyType() . " " . $reservations->reservationTotalPrice() . "</strong>"; ?> </td> </tr> <?php if ($reservations->reservationOfferAvailable() == 1) { $offer = unserialize(urldecode($reservations->reservationOfferData())); if ($offer['OfferAvailable'] == true) { ?> <tr style="background-color:#e3e3e3; border:solid 1px #ccc; margin-bottom:1px;"> <td colspan="3" width="100%" height="25" style="padding-left:10px;">Offer</td> </tr> <tr style="background-color:#fff; border:solid 1px #ccc; margin-bottom:1px;"> <td width="34%" height="30" style="padding-left:10px;"><?php echo $offer['Title']; ?>
<tr style="background-color:#e3e3e3; border:solid 1px #ccc; margin-bottom:1px;"> <td width="34%" height="30" style="padding-left:10px;">From</td> <td width="31%" style="padding-left:2px;">To</td> <td width="35%" style="padding-left:10px;">Rates</td> </tr> <tr style="background-color:#fff; border:solid 1px #ccc; margin-bottom:1px;"> <td width="34%" height="30" style="padding-left:10px;"><?php echo date("d M Y", strtotime($check_in_date)); ?> </td> <td width="31%" style="padding-left:2px;"><?php echo date("d M Y", strtotime($check_out_date)); ?> </td> <td width="35%" style="padding-left:10px;"><?php echo "<strong>" . $reservations->reservationTotalPrice() . "</strong>"; //; ?> </td> </tr> </table> </td> <td width="310" valign="top"> <table width="340" border="0" style="font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#414141; border-collapse: collapse; "> <tr style="background-color:#414141; "> <td height="30" style="color:#fff; padding-left:10px; border:solid 1px #414141; text-align:center; font-weight:bold;">Booked through and payable by :</td> </tr> <tr height="58" style="background-color:#e3e3e3; border:solid 1px #ccc; margin-bottom:1px;"> <td height="58" style="padding-left:10px;">Roomista (Pvt) Ltd, No 16/3 Cambridge Place, Colombo 7, Sri Lanka</td> </tr> </table>
function viewTable($data, $count) { $reservation = new Reservations(); $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewReservations"); $paginations->setTotalPages($count); $paginations->makePagination(); ?> <div class="mws-panel-header"> <span class="mws-i-24 i-table-1">View Reservations</span> </div> <div class="mws-panel-body"> <table cellpadding="0" cellspacing="0" border="0" class="mws-datatable-fn mws-table"> <colgroup> <col class="con0"/> <col class="con1"/> </colgroup> <thead> <tr> <th class="head1">Hotel</th> <th class="head0">Client</th> <th class="head0">Room Rate</th> <th class="head1">Total Price</th> </tr> </thead> <tbody> <?php if (count($data) > 0) { ?> <?php for ($i = 0; $i < count($data); $i++) { $reservation->extractor($data, $i); $hotels = new Hotels(); $hotels->setHotelId($reservation->reservationHotelId()); $hotels->extractor($hotels->getHotelFromId()); $clients = new Clients(); $clients->setClientId($reservation->reservationClientId()); $clients->extractor($clients->getClientFromId()); ?> <tr id="row_<?php echo $reservation->reservationId(); ?> "> <td class="con1"><?php echo $hotels->hotelName(); ?> </td> <td class="con0"><?php echo $clients->clientFirstName() . ' - ' . $clients->clientFirstName(); ?> </td> <td class="con0"><?php echo $reservation->reservationRoomRate(); ?> </td> <td class="center"><?php echo $reservation->reservationTotalPrice(); ?> </td> </tr> <?php } ?> <?php } ?> </tbody> </table> </div> <?php $paginations->drawPagination(); }