Ejemplo n.º 1
0
														<?php 
                echo isset($item->checked) ? " checked " : "";
                ?>
														<?php 
                echo $item->mandatory == 1 ? ' onclick="return false" onkeydown="return false" checked="checked" ' : "";
                ?>
													>
											<div class="extra-option-box"> 	
												<strong><?php 
                echo $item->name;
                ?>
</strong>,	<?php 
                echo $this->item->reservationData->userData->currency->symbol;
                ?>
 <?php 
                echo JHotelUtil::fmt($item->price, 2);
                echo $item->price_type == 1 ? ",&nbsp;" . strtolower(JText::_('LNG_PER_PERSON', true)) : "";
                echo $item->is_per_day == 1 ? ",&nbsp;" . JText::_('LNG_PER_DAY', true) : "";
                echo $item->is_per_day == 2 ? ",&nbsp;" . JText::_('LNG_PER_NIGHT', true) : "";
                ?>
												<p><i><?php 
                echo $item->description;
                ?>
</i></p>
												
												<div class="extras-options" id="options-<?php 
                echo $item->id;
                ?>
" style="display:<?php 
                echo isset($item->checked) ? "block" : "none";
                ?>
Ejemplo n.º 2
0
echo $hotel->informations->cancellation_conditions;
?>
		</p>
		
		<h4>
			<?php 
echo JText::_('LNG_INTERNET_WIFI', true);
?>
		</h4>
		<p>
			<?php 
echo $hotel->informations->wifi == 0 ? JText::_('LNG_NO_WIFI', true) : JText::_('LNG_WIFI_AVAILABLE', true);
?>
			
			<?php 
$price = $hotel->informations->price_wifi > 0 ? $this->hotel->currency_symbol . ' ' . JHotelUtil::fmt($hotel->informations->price_wifi, 2) : $free;
echo $hotel->informations->wifi != 0 ? JText::_('LNG_FOR', true) . ' ' . $price : '';
if (isset($hotel->informations->wifi_period)) {
    echo ' ' . $hotel->informations->wifi_period;
}
?>
		</p>
		<h4>
			<?php 
echo JText::_('LNG_SUITABLE_FOR_DISABLED', true);
?>
		</h4>
		<p>
			<?php 
echo $hotel->informations->suitable_disabled == 0 ? isset($this->hotel->types) & $this->hotel->types[0]->id == PARK_TYPE_ID ? JText::_('LNG_NO_SUITABLE_DISABLED_PARK', true) : JText::_('LNG_NO_SUITABLE_DISABLED', true) : (isset($this->hotel->types) & $this->hotel->types[0]->id == PARK_TYPE_ID ? JText::_('LNG_SUITABLE_DISABLED_AVAILABLE_PARK', true) : JText::_('LNG_SUITABLE_DISABLED_AVAILABLE', true));
?>
 static function getOffersCalendar($offers, $initialNrDays, $adults, $children, $month, $year, $bookings, $temporaryReservedRooms, $hotelAvailability)
 {
     $offersCalendar = array();
     $endDay = date('t', mktime(0, 0, 0, $month, 1, $year));
     //	dmp("D: ".$endDay);
     if ($adults == " " || $adults == "") {
         $adults = 2;
     }
     if (count($offers)) {
         foreach ($offers as $offer) {
             $roomsInfo = array();
             //dmp($room->daily);
             $index = 1;
             $daily = array();
             $nrDays = $initialNrDays;
             if ($nrDays < $offer->offer_min_nights) {
                 $nrDays = $offer->offer_min_nights;
             }
             //dmp($offer->offer_name);
             //dmp("days: ".$nrDays);
             $offerRateDetails = $offer->offerRateDetails;
             $roomRateDetails = $offer->roomRateDetails;
             //dmp($offerRateDetails);
             $firstDayPrice = 0;
             foreach ($offer->daily as &$daily) {
                 $available = true;
                 $totalPrice = 0;
                 $offer_max_nights = $offer->offer_max_nights;
                 $extraNightPrice = 0;
                 if ($index <= $endDay) {
                     $startDate = date('Y-m-d', mktime(0, 0, 0, $month, $index, $year));
                     $endDate = date('Y-m-d', mktime(0, 0, 0, $month, $index + $nrDays, $year));
                     $d = strtotime($startDate);
                     $nr_d = 'offer_day_' . date("N", $d);
                     if ($offer->{$nr_d} == 0) {
                         $available = false;
                     }
                     //check if arrival date is disabled
                     if (count($roomRateDetails)) {
                         foreach ($roomRateDetails as $roomRateDetail) {
                             if ($roomRateDetail->date == $startDate && $roomRateDetail->lock_arrival == 1) {
                                 $available = false;
                             }
                         }
                     }
                     //dmp($startDate);
                     //dmp($endDate);
                     $offer->nrRoomsAvailable = $offer->availability;
                     $offer->bookings = 0;
                     for ($d = strtotime($startDate); $d < strtotime($endDate);) {
                         $dayString = date('Y-m-d', $d);
                         //set default price from rate
                         $weekDay = date("N", $d);
                         $string_price = "price_" . $weekDay;
                         $dayPrice = $offer->{$string_price};
                         $childPrice = $offer->child_price;
                         $extraPersonPrice = $offer->extra_pers_price;
                         //check if there is a custom price set
                         if (count($offerRateDetails)) {
                             foreach ($offerRateDetails as $offerRateDetail) {
                                 if ($offerRateDetail->date == $dayString) {
                                     $dayPrice = $offerRateDetail->price;
                                     $extraPersonPrice = $offerRateDetail->extra_pers_price;
                                     $childPrice = $offerRateDetail->child_price;
                                 }
                             }
                         }
                         $isExtraNight = false;
                         //check if we have an extra night
                         if ($offer_max_nights <= 0) {
                             $dayPrice = $offer->extra_night_price;
                             $isExtraNight = true;
                         }
                         if ($offer->price_type == 1) {
                             $totalAdults = $adults <= $offer->base_adults ? $adults : $offer->base_adults;
                             $dayPrice = $dayPrice * $totalAdults + $childPrice * $children;
                         }
                         //add extra person cost - if it is the case
                         if ($adults > $offer->base_adults) {
                             $dayPrice += ($adults - $offer->base_adults) * $extraPersonPrice;
                         }
                         //for single use
                         //if the price is per person apply single supplement , if is for room apply discount
                         if ($adults == 1 && $children == 0) {
                             if (!$isExtraNight) {
                                 if ($offer->price_type == 1) {
                                     $dayPrice = $dayPrice + $offer->single_balancing;
                                     //dmp("add balancing: ".$offer->single_balancing." -> ".$dayPrice);
                                 } else {
                                     $dayPrice = $dayPrice - $offer->single_balancing;
                                 }
                             } else {
                                 if ($offer->price_type_day == 1) {
                                     if ($offer->price_type == 1) {
                                         $dayPrice = $dayPrice + $offer->single_balancing / $offer->offer_min_nights;
                                     } else {
                                         $dayPrice = $dayPrice - $offer->single_balancing / $offer->offer_min_nights;
                                     }
                                 }
                             }
                         }
                         //check if offer is available on stay period
                         if (!(strtotime($offer->offer_datas) <= $d && $d <= strtotime($offer->offer_datae))) {
                             $available = false;
                         }
                         //get the minimum availability in the selected period
                         if (count($roomRateDetails)) {
                             foreach ($roomRateDetails as $roomRateDetail) {
                                 //get room availability - if rate details are set default settings are ignored
                                 if ($roomRateDetail->date == $dayString) {
                                     $offer->nrRoomsAvailable = $roomRateDetail->availability;
                                 }
                             }
                         }
                         $totalNumberRoomsReserved = 0;
                         if (isset($bookings[$offer->room_id][$dayString])) {
                             $totalNumberRoomsReserved = $bookings[$offer->room_id][$dayString];
                         }
                         if (isset($temporaryReservedRooms[$offer->room_id]) && (strtotime($temporaryReservedRooms["datas"]) <= $d && $d < strtotime($temporaryReservedRooms["datae"]))) {
                             $totalNumberRoomsReserved += $temporaryReservedRooms[$offer->room_id];
                         }
                         //calculate maximum number of bookings per stay interval
                         if ($offer->nrRoomsAvailable <= $totalNumberRoomsReserved) {
                             $available = false;
                         }
                         if ($offer_max_nights > 0) {
                             if (count($offerRateDetails)) {
                                 foreach ($offerRateDetails as $offerRateDetail) {
                                     //set single use price
                                     if ($offerRateDetail->date == $dayString && $adults == 1 && $children == 0) {
                                         $dayPrice = $offerRateDetail->single_use_price;
                                     }
                                 }
                             }
                         }
                         //check if hotel is available
                         if (!$hotelAvailability[$dayString]) {
                             $available = false;
                         }
                         if (strtotime($startDate) == $d) {
                             $firstDayPrice = $dayPrice;
                         }
                         if ($isExtraNight) {
                             $extraNightPrice += $dayPrice;
                         }
                         //dmp("DP: ".$dayPrice);
                         $totalPrice += $dayPrice;
                         $offer_max_nights--;
                         $d = strtotime(date('Y-m-d', $d) . ' + 1 day ');
                     }
                 }
                 //dmp("T: ".$totalPrice);
                 //dmp($offer->nrRoomsAvailable);
                 //dmp($offer->bookings);
                 //average price per offer
                 $offer->offer_average_price = round($totalPrice / $nrDays, 2);
                 $offer->pers_total_price = round($totalPrice / ($adults + $children), 2);
                 $price = $offer->offer_average_price;
                 if (JRequest::getVar('show_price_per_person') == 1) {
                     $price = $offer->pers_total_price;
                 }
                 if ($offer->price_type_day == 1) {
                     $price = $firstDayPrice / ($adults + $children);
                     $price += $extraNightPrice / ($adults + $children);
                 }
                 $roomsInfo[] = array("price" => JHotelUtil::fmt($price, 2), "isAvailable" => $available);
                 $index++;
             }
             //dmp($roomsInfo);
             $id = $offer->offer_id . $offer->room_id;
             $hotelId = $offer->hotel_id;
             $offersCalendar[$id] = JHotelUtil::getAvailabilityCalendar($hotelId, $month, $year, $roomsInfo, $nrDays, $id);
         }
     }
     //dmp($offersCalendar);
     return $offersCalendar;
 }
    public function getReservationDetailsAirportTransfer()
    {
        $val_airport_transfer = 0;
        if (count($modelData->airport_transfer_type_ids) > 0) {
            // dmp($modelData->itemAirportTransferTypes);
            foreach ($modelData->itemAirportTransferTypes as $keyAirportTransfer => $airport_transfer) {
                $eKeyAirportTransfer = explode('|', $keyAirportTransfer);
                if ($exRoomReserved[0] != $eKeyAirportTransfer[0] || $exRoomReserved[1] != $eKeyAirportTransfer[1] || $exRoomReserved[2] != $eKeyAirportTransfer[2]) {
                    continue;
                }
                $pr_info = ($showDisplayPrice == true ? $airport_transfer->airport_transfer_type_display_price : $airport_transfer->airport_transfer_type_price) . ($airport_transfer->airport_transfer_type_vat != 0 ? " + " . $airport_transfer->airport_transfer_type_vat . " %" . JText::_('LNG_VAT', true) : "");
                $val_airport_transfer = $showDisplayPrice == true ? $airport_transfer->airport_transfer_type_display_price : $airport_transfer->airport_transfer_type_price;
                if ($airport_transfer->airport_transfer_type_vat > 0) {
                    $val_airport_transfer += $val_airport_transfer * $airport_transfer->airport_transfer_type_vat / 100;
                }
                ?>
				<tr class='tr_airport_transfer_title'>
					<td nowrap colspan=7 align=left style="padding: 3px 9px;">
						<strong><?php 
                echo JText::_('LNG_AIRPORT_TRANSFER', true);
                ?>
</strong>
					</td>
				</tr>
				<tr >	
					<td colspan=5 align=left style="padding: 3px 9px 3px 20px;">
						<?php 
                echo $airport_transfer->airport_transfer_type_name;
                ?>
						
					</td>
					<td>
						<?php 
                echo $pr_info;
                ?>
					</td>
					<td align=right style="padding: 3px 9px;" >
						<?php 
                echo JHotelUtil::fmt($val_airport_transfer);
                ?>
					</td>

				</tr>
				<tr>
					<td colspan=7 align=left style="padding: 3px 9px 3px 40px;">
						<table class='table_airport_transfer' cellpadding=0 cellspacing=0 width=100%>
							<tr>
								<td nowrap ><?php 
                echo JText::_('LNG_AIRLINE', true);
                ?>
 :&nbsp;</td>
								<td  colspan=3>
									<?php 
                foreach ($modelData->itemArrivalAirlines as $keyAirline => $valueAirline) {
                    $exKeyAirline = explode('|', $keyAirline);
                    if ($exRoomReserved[0] != $exKeyAirline[0] || $exRoomReserved[1] != $exKeyAirline[1] || $exRoomReserved[2] != $exKeyAirline[2]) {
                        continue;
                    }
                    echo $valueAirline->airline_name;
                }
                ?>
								</td>
							</tr>
							<tr>
								<td width=15% nowrap><?php 
                echo JText::_('LNG_FLIGHT_NR', true);
                ?>
 :</td>
								<td width=35%>
									<?php 
                foreach ($modelData->airport_transfer_flight_nrs as $keyTransferFlightNr => $valueTransferFlightNr) {
                    if ($exRoomReserved[0] != $valueTransferFlightNr[0] || $exRoomReserved[1] != $valueTransferFlightNr[1] || $exRoomReserved[2] != $valueTransferFlightNr[2]) {
                        continue;
                    }
                    echo $valueTransferFlightNr[3];
                }
                ?>
								</td>
								<td width=15% nowrap><?php 
                echo JText::_('LNG_GUEST', true);
                ?>
 :</td>
								<td width=35%>
									<?php 
                foreach ($modelData->airport_transfer_guests as $keyTransferGuest => $valueTransferGuest) {
                    if ($exRoomReserved[0] != $valueTransferGuest[0] || $exRoomReserved[1] != $valueTransferGuest[1] || $exRoomReserved[2] != $valueTransferGuest[2]) {
                        continue;
                    }
                    echo $valueTransferGuest[3];
                }
                ?>
								</td>
							</tr>
							<tr>
								<td width=10% nowrap><?php 
                echo JText::_('LNG_DATE', true);
                ?>
 :</td>
								<td width=35%>
									<?php 
                foreach ($modelData->airport_transfer_dates as $keyTransferDate => $valueTransferDate) {
                    if ($exRoomReserved[0] != $valueTransferDate[0] || $exRoomReserved[1] != $valueTransferDate[1] || $exRoomReserved[2] != $valueTransferDate[2]) {
                        continue;
                    }
                    echo $valueTransferDate[3];
                }
                ?>
								</td>
								<td width=15%><?php 
                echo JText::_('LNG_TIME', true);
                ?>
 :</td>
								<td width=35%>
									<?php 
                foreach ($modelData->airport_transfer_time_hours as $keyTransferTimeHour => $valueTransferTimeHour) {
                    if ($exRoomReserved[0] != $valueTransferTimeHour[0] || $exRoomReserved[1] != $valueTransferTimeHour[1] || $exRoomReserved[2] != $valueTransferTimeHour[2]) {
                        continue;
                    }
                    echo $valueTransferTimeHour[3];
                }
                echo ":";
                foreach ($modelData->airport_transfer_time_mins as $keyTransferTimeMin => $valueTransferTimeMin) {
                    if ($exRoomReserved[0] != $valueTransferTimeMin[0] || $exRoomReserved[1] != $valueTransferTimeMin[1] || $exRoomReserved[2] != $valueTransferTimeMin[2]) {
                        continue;
                    }
                    echo $valueTransferTimeMin[3];
                }
                ?>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<!--
				<tr class='rsv_dtls_room_price' bgcolor="#EFEDE9">
					<td colspan="6" style="padding: 3px 9px;"  align="right">
						<strong><?php 
                echo JText::_('LNG_AIRPORT_TRANSFER_SUBTOTAL', true);
                ?>
(<?php 
                echo $currency->name;
                ?>
)</strong>
					</td>
	
					<td align="right" style="padding: 3px 9px" >
						<strong><?php 
                echo JHotelUtil::fmt($val_airport_transfer, 2);
                ?>
</strong>
					</td>

				</tr>
				-->
				<?php 
            }
        }
    }
Ejemplo n.º 5
0
</span>
						</td>
					</tr>
					<tr>
						<td>
							<strong><?php 
echo JText::_('LNG_ESTIMATED_TOTAL');
?>
</strong>
						</td>
						<td class="price">
							<?php 
echo $hotel->currency_symbol;
?>
 <span id="info-total"><?php 
echo JHotelUtil::fmt($reservationDetails->total, 2);
?>
</span>
						</td>
					</tr>
				</table>
			</div>
			
		</div>
		<div class="clear"></div>
	</div>
</div>

<script>
var reservationSubtotalI=<?php 
echo $reservationDetails->total - $reservationDetails->costData->costV;
Ejemplo n.º 6
0
" name="discount_code" id="discount_code" class="input-text noSubmit"> &nbsp;
				          	
				        </div>
				    </fieldset>
				</TD>
			</TR>
			<?php 
}
?>
			<!--micod
			Celda donde muestra en pantalla el impuesto del estado en porcentaje-->
			<!--<TR>
				<TD align=left colspan=1>	
					<?php 
$taxText = '';
$tax = JHotelUtil::fmt($this->hotel->informations->city_tax, 2);
if ($tax > 0) {
    if ($this->hotel->informations->city_tax_percent) {
        $taxText = JText::_('LNG_CITY_TAX_INFO_PERCENT', true);
        //micod
        //línea de código original: $tax = $tax.'%';
        $tax = $tax . '';
    } else {
        $taxText = JText::_('LNG_CITY_TAX_INFO', true);
        $tax = $this->userData->currency->symbol . ' ' . $tax;
    }
    $taxText = str_replace("<<city-tax>>", $tax, $taxText);
    echo $taxText;
}
?>
 
Ejemplo n.º 7
0
        $p = $daily['display_price_final'];
        $day = $daily['date'];
        echo '<tr><td>' . date('D d M', strtotime($day)) . '</td><td>' . JHotelUtil::fmt($p, 2) . ' ' . $this->userData->currency->symbol . '</td></tr>';
        $grand_total += JHotelUtil::fmt($p, 2);
    }
    ?>
										<tr class="price_breakdown_grad_total">
											<td>
												<strong> = <?php 
    echo JText::_('LNG_GRAND_TOTAL', true);
    ?>
</strong>
											</td>
											<td>
												<?php 
    echo JHotelUtil::fmt($grand_total, 2);
    ?>
										</tr>
									</table>
								</div>
							</div>
							<div id="tabs-3_<?php 
    echo $offer->room_id;
    ?>
">
								<?php 
    echo JText::_('LNG_RATE_RULES_DESCRIPTION', true);
    ?>
										
							</div>
						</div>
 static function getExcursionCalendar($excursions, $nrOfDays, $adults, $children, $month, $year, $bookings, $temporaryReservedExcursions, $hotelAvailability)
 {
     $excursionsCalendar = array();
     $endDay = date('t', mktime(0, 0, 0, $month, 1, $year));
     //	dmp("D: ".$endDay);
     foreach ($excursions as $excursion) {
         $excursionsInfo = array();
         $index = 1;
         $excursionRateDetails = $excursion->excursionRateDetails;
         $ignoredDates = explode(",", $excursion->excursionIgnoredDates);
         $nrDays = 0;
         foreach ($excursion->daily as &$daily) {
             $price = $daily["price"];
             $available = true;
             $totalPrice = 0;
             $nrDays = $nrOfDays;
             if ($index <= $endDay) {
                 $startDate = date('Y-m-d', mktime(0, 0, 0, $month, $index, $year));
                 $nrDays = $nrDays < $excursion->min_days ? $excursion->min_days : $nrDays;
                 $endDate = date('Y-m-d', mktime(0, 0, 0, $month, $index + $nrDays, $year));
                 $excursion->nrExcursionsAvailable = $excursion->availability;
                 $excursion->bookings = 0;
                 if (array_search($startDate, $ignoredDates)) {
                     $available = false;
                 }
                 $d = strtotime($startDate);
                 $nr_d = 'excursion_day_' . date("N", $d);
                 if ($excursion->{$nr_d} == 0) {
                     $available = false;
                 }
                 for ($i = $index; $i < $index + $nrDays; $i++) {
                     $day = date('Y-m-d', mktime(0, 0, 0, $month, $i, $year));
                     //check if hotel is available
                     if ($hotelAvailability != null && !$hotelAvailability[$day]) {
                         $available = false;
                     }
                     foreach ($excursionRateDetails as $excursionRateDetail) {
                         if ($excursionRateDetail->date == $day) {
                             $excursion->nrExcursionsAvailable = $excursionRateDetail->availability;
                         }
                     }
                     $totalNumberExcursionsReserved = 0;
                     if (isset($bookings[$excursion->excursion_id][$day])) {
                         $totalNumberExcursionsReserved = $bookings[$excursion->excursion_id][$day];
                     }
                     if (isset($temporaryReservedExcursions[$excursion->excursion_id]) && (strtotime($temporaryReservedExcursions["datas"]) <= strtotime($day) && strtotime($day) < strtotime($temporaryReservedExcursions["datae"]))) {
                         $totalNumberExcursionsReserved += $temporaryReservedExcursions[$excursion->excursion_id];
                     }
                     //calculate maximum number of bookings per stay interval
                     if ($excursion->nrExcursionsAvailable <= $totalNumberExcursionsReserved) {
                         $available = false;
                     }
                     if (isset($excursion->daily[$i - 1])) {
                         $price = $excursion->daily[$i - 1]['price'];
                     }
                     //echo $p.' <br/>';
                     $totalPrice += $price;
                 }
             }
             //average price per excursion
             $excursion->excursion_average_price = round($totalPrice / $nrDays, 2);
             $excursion->pers_total_price = round($totalPrice / $nrDays, 2);
             if (JRequest::getVar('show_price_per_person') == 1) {
                 $price = $excursion->pers_total_price;
             } else {
                 $price = $excursion->excursion_average_price;
             }
             $excursionsInfo[] = array("price" => JHotelUtil::fmt($price, 2), "isAvailable" => $available);
             $id = $excursion->excursion_id + 1000;
             $index++;
         }
         $hotelId = $excursion->hotel_id;
         $excursionsCalendar[$id] = JHotelUtil::getAvailabilityCalendar($hotelId, $month, $year, $excursionsInfo, $nrDays, $id);
     }
     return $excursionsCalendar;
 }
Ejemplo n.º 9
0
            echo $payment->payment_name;
            ?>
</B>
								</a>	
								
							</TD>
							<TD align=center><?php 
            echo $payment->payment_days != 0 ? ($payment->is_check_days == true ? "" : "<s>") . $payment->payment_days . ($payment->is_check_days ? "" : "</s>") : "&nbsp;";
            ?>
</TD>
							<TD align=center><?php 
            echo $payment->payment_percent != 0 ? $payment->payment_percent . " %" : "&nbsp;";
            ?>
</TD>
							<TD align=center><?php 
            echo $payment->payment_value != 0 ? JHotelUtil::fmt($payment->payment_value, 2) : "&nbsp;";
            ?>
</TD>
							<TD align=center>
								<img border= 1 
									src ="<?php 
            echo JURI::base() . "components/" . getBookingExtName() . "/assets/img/" . ($payment->is_available == false ? "unchecked.gif" : "checked.gif");
            ?>
" 
									onclick	=	"	
													document.location.href = '<?php 
            echo JRoute::_('index.php?option=' . getBookingExtName() . '&task=paymentsettings.state&payment_id[]=' . $payment->payment_id . '&hotel_id=' . $this->hotel_id);
            ?>
 '
												"
								/>
Ejemplo n.º 10
0
:</b> <?php 
        echo JHotelUtil::getDateGeneralFormat($offer->offer_datas);
        ?>
 - <?php 
        echo JHotelUtil::getDateGeneralFormat($offer->offer_datae);
        ?>
								</div>
								<div class="offer-date-interval splStayDate">		
									<b><?php 
        echo JText::_('LNG_STARTING_PRICE', true);
        ?>
:</b> <?php 
        echo $offer->currency_symbol;
        ?>
 <?php 
        echo JHotelUtil::fmt($offer->starting_price, 2);
        ?>
 p.p.
								</div>
								<div class="offer-date-interval splStayDate">		
									<b><?php 
        echo JText::_('LNG_MINIMUM_NIGHTS', true);
        ?>
:</b> <?php 
        echo $offer->offer_min_nights;
        ?>
								</div>
							</div>
						</div>
					</div>
				</div>
Ejemplo n.º 11
0
                ?>
</em>
																<strong><?php 
                echo $offer[3];
                ?>
</strong>
																
															</div>
															<div class="price">
															
																<span class="price-small">
																	<span class="currency"><?php 
                echo $hotel->currency_symbol;
                ?>
</span><span class="amount"><?php 
                echo JHotelUtil::fmt($offer["price"], 2);
                ?>
</span>
																	<span class="pppn">p.p.</span>
																</span>
																
																<a class="ui-hotel-button prevent-click right" href="<?php 
                echo JHotelUtil::getHotelLink($hotel);
                ?>
">
																	<span class="ui-button-text"><?php 
                echo JText::_('LNG_BOOK', true);
                ?>
</span>
																</a>
																
 function prepareInvoiceEmail($reservationDetails, $emailTemplate)
 {
     $datas = JHotelUtil::getDateGeneralFormat($reservationDetails->reservationData->userData->start_date);
     $datae = JHotelUtil::getDateGeneralFormat($reservationDetails->reservationData->userData->end_date);
     $companyLogo = "<img src=\"" . JURI::root() . PATH_PICTURES . $reservationDetails->reservationData->appSettings->logo_path . "\" alt=\"Company logo\" />";
     $currentDate = JHotelUtil::getDateGeneralFormat(date("Y-m-d H:i:s"));
     $chekInTime = $reservationDetails->reservationData->hotel->informations->check_in;
     $chekOutTime = $reservationDetails->reservationData->hotel->informations->check_out;
     $hotelName = $reservationDetails->reservationData->hotel->hotel_name;
     $cancellationPolicy = $reservationDetails->reservationData->hotel->informations->cancellation_conditions;
     $touristTax = $reservationDetails->reservationData->hotel->informations->city_tax_percent == 1 ? $reservationDetails->reservationData->hotel->informations->city_tax + '% ' : JHotelUtil::fmt($reservationDetails->reservationData->hotel->informations->city_tax, 2);
     $emailTemplate = str_replace(EMAIL_COMPANY_LOGO, $companyLogo, $emailTemplate);
     $gender = JText::_("LNG_EMAIL_GUEST_TYPE_" . $reservationDetails->reservationData->userData->guest_type, true);
     $emailTemplate = str_replace(EMAIL_RESERVATIONGENDER, $gender, $emailTemplate);
     $emailTemplate = str_replace(EMAIL_RESERVATIONFIRSTNAME, $reservationDetails->reservationData->userData->first_name, $emailTemplate);
     $emailTemplate = str_replace(EMAIL_RESERVATIONLASTNAME, $reservationDetails->reservationData->userData->last_name, $emailTemplate);
     $emailTemplate = str_replace(EMAIL_START_DATE, $datas, $emailTemplate);
     $emailTemplate = str_replace(EMAIL_END_DATE, $datae, $emailTemplate);
     $emailTemplate = str_replace(EMAIL_CURRENT_DATE, $currentDate, $emailTemplate);
     $emailTemplate = str_replace(EMAIL_RESERVATION_ID, JHotelUtil::getStringIDConfirmation($reservationDetails->confirmation_id), $emailTemplate);
     $emailTemplate = str_replace(EMAIL_RESERVATIONDETAILS, $reservationDetails->reservationInfo, $emailTemplate);
     $emailTemplate = str_replace(EMAIL_BILINGINFORMATIONS, $reservationDetails->billingInformation, $emailTemplate);
     $emailTemplate = str_replace(EMAIL_PAYMENT_METHOD, $reservationDetails->paymentInformation, $emailTemplate);
     $emailTemplate = str_replace(EMAIL_HOTEL_CANCELATION_POLICY, $cancellationPolicy, $emailTemplate);
     $emailTemplate = str_replace(EMAIL_HOTEL_NAME, $hotelName, $emailTemplate);
     $emailText = "";
     $fromName = $reservationDetails->reservationData->appSettings->company_name;
     $emailTemplate = str_replace(EMAIL_COMPANY_NAME, $fromName, $emailTemplate);
     return $emailTemplate;
 }
Ejemplo n.º 13
0
    ?>
</strong><br/>
							<a href="<?php 
    echo JHotelUtil::getHotelLink($this->hotel) . '?' . strtolower(JText::_("LNG_REVIEWS"));
    ?>
" ><?php 
    echo count($hotel->reviews);
    ?>
 <?php 
    echo JText::_('LNG_REVIEWS');
    ?>
</a>
						</div>
						<div class="rating">
							<?php 
    echo JHotelUtil::fmt($hotel->hotel_rating_score, 1);
    ?>
						</div>
						<div class="clear"></div>					
					</div>
				<?php 
}
?>
			
			<div class="hotel-details">
				<?php 
if ($hotel->recommended == 1) {
    ?>
				<div class="hotel-recommanded">
					<span><?php 
    echo JText::_('LNG_RECOMMENDED');
Ejemplo n.º 14
0
    ?>
<div id="reviews-container">	
	<div class="blue-box">
		<div class="result-counter"><?php 
    //echo $this->pagination->getResultsCounter()
    ?>
</div>
	</div>
	<div class="hotel-reviews">
		<?php 
    foreach ($hotel->reviews as $review) {
        ?>
			<div class="hotel-review">	
				<div class="rating_total_score_number">
						<strong> <?php 
        echo JHotelUtil::fmt($review->average, 1);
        ?>
</strong>
					</div> 
				<div class="review-details">
					<div class="reviewer-name">
					 	<?php 
        echo $review->last_name;
        ?>
					</div>
					<div class="reviewer-type">
						<?php 
        echo $review->party_composition;
        ?>
					</div>
					<div class="reviewer-location">