コード例 #1
0
ファイル: hotel_booking.php プロジェクト: jcodesdotme/pp
$bookingclient = new BookingClient();
$bookingclient = new BookingClient();
$rooms = new HotelRoomType();
$client;
$merchantReferenceNo = $_REQUEST['resid'];
//$session->getMerchantReferenceNo();
$reservations->setReservationId($merchantReferenceNo);
$pay_data = $reservations->getReservationsFromId();
$reservations->extractor($pay_data);
$reservation_link_id = $reservations->reservationFromBookingLink();
$reservations_status = $reservations->reservationPaymentStatus();
if ($reservations->reservationFromBookingLink()) {
    $client = new BookingClient();
    $client->setId($reservations->reservationClientId());
    $client->extractor($client->getClientsFromId());
    $client_name = $client->name();
    $client_email = $client->email();
} 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());
コード例 #2
0
ファイル: room_confirmation.php プロジェクト: jcodesdotme/pp
             <li class="email_list"><strong>Email:</strong>
                 <?php if($hotels->hotelEmail()!= ""){
                         echo $hotels->hotelEmail();
                     }else{
                         echo '*****@*****.**';
                     }
                 ?>
             </li>
         </ul>
     </div>
 </div>
 <div class="booking-side-wrapper">
     <div class="booking-side clearfix">
         <h4 class="title-style4">Your Reservation<span class="title-block"></span></h4>
         <ul>
             <li><span>Client Name: </span> <?php echo $bookingclient->name(); ?></li>
             <li>
                 <span>Address: </span>  <?php echo $bookingclient->address1() . "," . $bookingclient->address2(); ?>
             </li>
             <li><span>Email: </span><?php echo $bookingclient->email(); ?></li>
             <li><span>Contact: </span><?php echo $bookingclient->contactno(); ?></li>
             <li><span>Room: </span>
                 <?php
                     $rooms = new HotelRoomType();
                     $rooms->setRoomTypeId($reservations->reservationHotelRoomTypeId());
                     $rooms->extractor($rooms->getHotelRoomTypeFromId());
                     echo($rooms->roomTypeName()); ?></li>
             <li>
                 <span>Check In: </span> <?php echo(str_replace("00:00:00", "", $reservations->reservationCheckInDate())); ?>
             </li>
             <li>
コード例 #3
0
ファイル: room_confirmation.php プロジェクト: jcodesdotme/pp
                            <li class="fax_list"><strong>Fax:</strong> +44 98765 43210</li>
                            <li class="email_list"><strong>Email:</strong> email@website.com</li>
                        </ul>
                    </div>
                </div>

            <?php 
}
?>

            <div class="booking-side-wrapper">
                <div class="booking-side clearfix">
                    <h4 class="title-style4">Your Reservation<span class="title-block"></span></h4>
                    <ul>
                        <li><span>Client Name: </span> <?php 
echo $bookingclient->name();
?>
</li>
                        <li>
                            <span>Address: </span>  <?php 
echo $bookingclient->address1() . "," . $bookingclient->address2();
?>
                        </li>
                        <li><span>Email: </span><?php 
echo $bookingclient->email();
?>
</li>
                        <li><span>Contact: </span><?php 
echo $bookingclient->contactno();
?>
</li>
コード例 #4
0
$reservation_link_id = $reservations->reservationFromBookingLink();
$reservations_status = $reservations->reservationPaymentStatus();
$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);
$bookingclient->setId($reservations->reservationClientId());
$bookingclient->extractor($bookingclient->getClientsFromId());
$country = new country();
$country->setCountryId($bookingclient->country());
$country->extractor($country->getCountryFromId());
$rooms->setRoomTypeId($reservations->reservationHotelRoomTypeId());
$rooms->extractor($rooms->getHotelRoomTypeFromId());
$client_name = $bookingclient->name();
$client_mobile = $bookingclient->contactno();
$client_email = $bookingclient->email();
$client_message = $bookingclient->message();
$hotel_name = $hotels->hotelName();
$hotel_url = $hotels->hotelSeoUrl();
$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";
}