Ejemplo n.º 1
0
    ");

    $hotel_room_type = new HotelRoomType();
    $hotel = new Hotels();
    $country = new country();

    $hotel->setHotelId($hotels_id);
    $hotel->extractor($hotel->getHotelFromId());

    $country->setCountryId($_SESSION['country_id']);

    $hotel_room_type->setRoomTypeId($room_type_id);

    $hotel_room_type->extractor($hotel_room_type->getHotelRoomTypeFromId());

    if ($hotels_id != $hotel_room_type->roomTypeHotelId()) {
        echo "Error";
        die();
    }

    $villa_type_id = 5;
?>
<!DOCTYPE html><!--[if lt IE 7]>
<html dir="ltr" lang="en-US" class="ie6"> <![endif]--><!--[if IE 7]>
<html dir="ltr" lang="en-US" class="ie7"> <![endif]--><!--[if IE 8]>
<html dir="ltr" lang="en-US" class="ie8"> <![endif]--><!--[if gt IE 8]><!-->
<html dir="ltr" lang="en-US" xmlns="http://www.w3.org/1999/html"> <!--<![endif]-->
<head>
<!--designing script-->
<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/scripts.js"></script>
Ejemplo n.º 2
0
    foreach (Common::createDateRangeArray($_REQUEST['check_in_date'], $_REQUEST['check_out_date']) as $key => $value) {
        $roomData = $roomcontrol->getAvailableRoomCountForRoomForDate($value, $hotelRoomType->roomTypeId());
        if (count($roomData) > 0) {
            if ($roomData[0]['available_rooms'] > 0) {
                array_push($roomsCount, $roomData[0]['available_rooms']);
            } else {
                array_push($roomsCount, 0);
            }
        } else {
            array_push($roomsCount, 0);
        }
    }
    if (count($roomsCount) > 0 && min($roomsCount) > 0) {
        $room_count_empty++;
        $roomType = new HotelRoomType();
        $roomTypeData = $roomType->getHotelRoomTypeFromHotelRoomtypeId($hotelRoomType->roomTypeHotelId(), $hotelRoomType->roomTypeId());
        $roomType->extractor($roomTypeData);
        ?>
            <!--INFO: Modal Popup -->
            <div class="basic-modal-content" id="basic-modal-content<?php 
        echo $hotelRoomType->roomTypeId();
        ?>
">
                <div class="content">
                    <div class="left-col">
                        <h4>Room Type: <?php 
        echo $hotelRoomType->roomTypeName();
        ?>
</h4>

                        <div class="left-col-upper">