<div class="clearfix"></div> <input type="hidden" id="paymenttype" value="2"/> <input class="form-button button3 bookbutton" type="button" id="paycard" disabled onClick="$('#paymenttype').val(2);$('#client').submit()" value="Pay with Credit Card"/> <?php if ($_SESSION['display_rate_in'] != "LKR") { ?> <input class="form-button button3 bookbutton" type="button" id="paypaypal" disabled onClick="$('#paymenttype').val(1);$('#client').submit()" value="Pay with Pay Pal"/> <?php } ?> <!--<input class="form-button" type="button" id="paylater" value="Pay Later" disabled onclick="$('#paymenttype').val(3);$('#client').submit();" style="margin-right: -2px;" />--> <span id="error_msg" style="color:#F00"></span> </form> </div> </div> <!-- //Paypal Form --> <form id="payPalForm" name="payPalForm" action="<?php echo HTTP_PATH; ?>paypal/paypal_start.php" method="post" > <input type="hidden" name="amount" class="medium-input-logn" id="amount" style="width:150px;" autocomplete="off"/> <input type="hidden" name="item_number" id="item_number" value="<?php echo "{$no_of_room} - {$hotel_room_type->roomTypeName()} at {$hotel->hotelName()} for {$numDays} Days"; ?>"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="business" value="*****@*****.**"> <input type="hidden" name="currency_code" value="<?php echo Sessions::getDisplayRatesIn(); ?>"> <input type="hidden" name="return" value="<?php echo HTTP_PATH; ?>_controller?action=successPaymentReservation"> <input type="hidden" name="custom" id="custom" value=""> <input type="hidden" name="item_name" id="item_name" value="Roomista.com :: <?php echo "{$no_of_room} - {$hotel_room_type->roomTypeName()} at {$hotel->hotelName()} for {$numDays} Day(s)"; ?>" size="45"> </form> <form id="paypal_payments" name="paypal_payments" style="display:none" action="../payments/paypal.php" method="post"> <input type="text" id="total_amount1" name="total_amount1"> </form> <!-- Paypal Form// --> <!-- //IPG Form --> <form id="ipg_payments" style="display:none"> <input type="text" id="total_amount2" name="total_amount2" value="0">
} else { $client = new Clients(); $client->setClientId($reservations->reservationClientId()); $client->extractor($client->getClientFromId()); $client_name = $client->clientFirstName() . " " . $client->clientLastName(); $client_email = $client->clientEmail(); } $hotels->setHotelId($reservations->reservationHotelId()); $hotels->extractor($hotels->getHotelFromId()); $date = date("Y-m-d"); // current date $new_date = strtotime(date("Y-m-d", strtotime($date)) . " +3 month"); $expire_date = date("Y-m-d", $new_date); $rooms->setRoomTypeId($reservations->reservationHotelRoomTypeId()); $rooms->extractor($rooms->getHotelRoomTypeFromId()); $hotel_name = $hotels->hotelName(); $room_type = $rooms->roomTypeName(); if ($reservations->reservationBedType() == "sgl") { $bed_type = "Single Bed"; } if ($reservations->reservationBedType() == "dbl") { $bed_type = "Double Bed"; } if ($reservations->reservationBedType() == "tpl") { $bed_type = "Tripple Bed"; } if ($reservations->reservationBedType() == "") { $bed_type = "Not Selected"; } if ($reservations->reservationMealType() == "bb") { $meal_type = "Bed & Breakfast";
<link rel="stylesheet" href="<?php echo HTTP_PATH; ?>bookings/css/lightbox.css" type="text/css" media="all"/> <!-- JavaScript For IE --> <!--[if (gte IE 6)&(lte IE 8)]> <script type="text/javascript" src="<?php echo HTTP_PATH; ?>js/selectivizr-min.js"></script> <![endif]--> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> </head> <body class="loading"> <div id="background-wrapper"> <div class="container"> <div class="hotel_image" style="background-image:url(images/bg-image.jpg)"></div> <div class="hotel_name"> <h2><?php echo $hotels->hotelName(); ?></h2> <h5><?php echo $hotels->hotelAddress(); ?></h5> </div> </div> <div id="wrapper"> <?php $image_src = "uploads/direct-booking-images/" . "header-" . $hotels_id . ".jpg"; if (file_exists(DOC_ROOT . $image_src)){ ?> <div id="page-header" style="background:url(<?php echo HTTP_PATH . $image_src; ?>) no-repeat top center;"> <?php }else{ ?> <div id="page-header" style="background:url(images/demo_image.jpg) no-repeat top center;"> <?php } ?> <!--<h2>Reservation: Complete Your booking</h2>-->
$queryString = str_replace("'", '’', $queryString); $HotelsQuick_rows = $Hotels->quickSearchHotels($queryString); $MainCityQuick_rows = $MainCity->quickSearchMainCity($queryString); echo '<div class="searchtitle">Hotels</div>'; if (count($HotelsQuick_rows) > 0) { for ($y = 0; $y < count($HotelsQuick_rows); $y++) { $Hotels->extractor($HotelsQuick_rows, $y); $MainCity->extractor($HotelsQuick_rows, $y); if ($Hotels->hotelsImages() != '') { $temp_arr = array(); $temp_arr = explode(",", $Hotels->hotelsImages()); $img_path = $temp_arr[0]; } else { $img_path = "no-image.png"; } echo '<a onClick="fill(\'' . trim($Hotels->hotelName()) . '\',\'' . trim($Hotels->hotelSeoUrl()) . '\',\'1\');"><div class="display_box">'; //echo '<img src="uploads/hotels/'.$img_path.'" alt="" />'; echo $Hotels->hotelName() . '</div></a>'; } } else { //echo 'Hotels Not Found :('; } if (count($MainCityQuick_rows) > 0) { echo '<div class="searchtitle">Citys</div>'; for ($r = 0; $r < count($MainCityQuick_rows); $r++) { $MainCity->extractor($MainCityQuick_rows, $r); echo '<a onClick="fill(\'' . trim($MainCity->mainCityName()) . '\',\'' . trim($MainCity->mainCitySeo()) . '\',\'2\');"><div class="display_box">'; echo $MainCity->mainCityName() . '</div></a>'; } } else { //echo '<span class="searchheading">Nothing interesting here? Try the sitemap.</span><br class="break" />';
function viewTableSpecialOfferHotels($data, $count) { $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewSpecialOfferHotelsFront"); $paginations->setTotalPages($count); $paginations->makePagination(); $mainCity = new MainCity(); $hotels = new Hotels(); $country = new country(); $SubCity = new SubCity(); $hotelimages = new HotelImages(); $discount = new HotelRoomRates(); ?> <div class="after-mid"> <div class="accordian-cont"> <ul id="ulHotelList" class="hotelList"> <?php for ($x = 0; $x < count($data); $x++) { $hotels->extractor($data, $x); $discount->setHotelId($hotels->hotelId()); $discount_data = $discount->getRatesFromHotelId(); $discount->extractor($discount_data); $rateAvailable = $hotels->getLowestRate(); if ($rateAvailable['RateAvailable'] == true) { $new_hotel = new Hotels(); $new_hotel->setHotelId($hotels->hotelId()); $new_hotel_data = $new_hotel->getHotelFromId(); $new_hotel->extractor($new_hotel_data); $hotelimages->setImageHotelId($new_hotel->hotelId()); $hotelimages->extractor($hotelimages->getImageFromHotelsIdOne()); $mainCity_discount = new MainCity(); $mainCity_discount->setMainCityId($new_hotel->hotelMainCityId()); $mainCity_discount->extractor($mainCity_discount->getMainCityFromId()); $filename = DOC_ROOT . 'uploads/hotels/thumbnails/' . $hotelimages->imageName(); ?> <li> <a href="<?php echo HTTP_PATH; echo $new_hotel->hotelSeoUrl(); ?> .html"> <?php if (file_exists($filename) && $hotelimages->imageName() != "") { ?> <img src="<?php echo HTTP_PATH . 'uploads/hotels/thumbnails/' . $hotelimages->imageName(); ?> " width="151" height="130" alt="new_hotel"/> <?php } else { ?> <img src="images/no_image.jpg" alt="image" width="151" height="130"/> <?php } ?> <div class="hotel-name-price"> <h5 onclick="makeAlert(<?php echo $new_hotel->hotelId(); ?> );"><?php echo $new_hotel->hotelName(); ?> </h5> <input type="hidden" id="<?php echo $new_hotel->hotelId(); ?> " name="<?php echo $new_hotel->hotelId(); ?> " value="<?php echo $new_hotel->hotelSeoUrl(); ?> "/> </div> <div> <span><?php echo $mainCity_discount->mainCityName(); ?> </span> </div> <div class="price-box"> <span>From</span> <span class="price"> <?php echo $_SESSION['defaultCurrency'] . ' ' . $rateAvailable['Rate']; ?> </span> <p></p> </div> </a> </li> <?php } ?> <div id="pagination"><?php $paginations->drawPagination(); ?> </div> <?php } ?> </ul> </div> </div> <?php }
function viewTableFront($data, $count) { $paginations = new Paginations(); $paginations->setLimit(10); $paginations->setPage($_REQUEST['page']); $paginations->setJSCallback("viewHotelsFront"); $paginations->setTotalPages($count); $paginations->makePagination(); $mainCity = new MainCity(); $hotels = new Hotels(); $dicount_hotel = new Hotels(); $country = new country(); $SubCity = new SubCity(); $hotelimages = new hotelimages(); $discount = new HotelRoomRates(); ?> <?php for ($x = 0; $x < count($data); $x++) { $dicount_hotel->extractor($data, $x); $discount->setHotelId($dicount_hotel->hotelId()); $discount_data = $discount->getRatesFromHotelId(); $discount->extractor($discount_data); if (round($discount->discountRatesUpLocal()) >= 0) { $new_hotel = new Hotels(); $new_hotel->setHotelId($dicount_hotel->hotelId()); $new_hotel_data = $new_hotel->getHotelFromId(); $new_hotel->extractor($new_hotel_data); $hotelimages->setImageHotelId($new_hotel->hotelId()); $hotelimages->extractor($hotelimages->getImageFromHotelsIdOne()); $mainCity_discount = new MainCity(); $mainCity_discount->setMainCityId($new_hotel->hotelMainCityId()); $mainCity_discount->extractor($mainCity_discount->getMainCityFromId()); $filename = '../../uploads/hotels/thumbnails/' . $hotelimages->imageName(); ?> <div class="offer-listing"> <?php if (file_exists($filename) && $hotelimages->imageName() != "") { ?> <img src="uploads/hotels/thumbnails/<?php echo $hotelimages->imageName(); ?> " width="157" height="130" alt="new_hotel"/> <?php } else { ?> <img src="images/no_image.jpg" alt="image" width="151" height="130"/> <?php } ?> <h4 onclick="makeAlert(<?php echo $new_hotel->hotelId(); ?> );" style="cursor:pointer;"><?php echo $new_hotel->hotelName(); ?> </h4> <input type="hidden" id="<?php echo $new_hotel->hotelId(); ?> " name="<?php echo $new_hotel->hotelId(); ?> " value="<?php echo $new_hotel->hotelSeoUrl(); ?> "/> <h5><?php echo $mainCity_discount->mainCityName(); ?> </h5> <p> <?php echo substr($new_hotel->hotelDescription(), 0, 250); ?> </p> <div class="price_tag"> <span class="striked_price"><!--Rs. 5,600--></span> <span class="actual_price"><?php if ($discount->dblBbSellLocal()) { echo 'LKR ' . $discount->dblBbSellLocal(); } else { echo 'N/A'; } ?> </span> <span class="label">Price Per Night</span> </div> <button onclick="makeAlert(<?php echo $new_hotel->hotelId(); ?> );">Book Now ></button> </div> <?php } } ?> <div id="pagination"><?php $paginations->drawPagination(); ?> </div><?php }
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(); }