当前位置: 首页>>代码示例>>PHP>>正文


PHP JHotelUtil::fmt方法代码示例

本文整理汇总了PHP中JHotelUtil::fmt方法的典型用法代码示例。如果您正苦于以下问题:PHP JHotelUtil::fmt方法的具体用法?PHP JHotelUtil::fmt怎么用?PHP JHotelUtil::fmt使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JHotelUtil的用法示例。


在下文中一共展示了JHotelUtil::fmt方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: isset

														<?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";
                ?>
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:edit.php

示例2: isset

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));
?>
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:informations.php

示例3: getOffersCalendar


//.........这里部分代码省略.........
                         //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;
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:101,代码来源:HotelService(original).php

示例4: getReservationDetailsAirportTransfer

    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 
//.........这里部分代码省略.........
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:101,代码来源:ReservationService(original).php

示例5:

</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;
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default.php

示例6:

" 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;
}
?>
 
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:30,代码来源:default.php

示例7: date

        $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>
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:offers.php

示例8: getExcursionCalendar

 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;
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:76,代码来源:ExcursionsService.php

示例9: getBookingExtName

            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);
            ?>
 '
												"
								/>
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default.php

示例10:

:</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>
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default.php

示例11:

                ?>
</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>
																
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:30,代码来源:default(original).php

示例12: prepareInvoiceEmail

 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;
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:30,代码来源:EmailService(original).php

示例13: strtolower

    ?>
</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');
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default.php

示例14: foreach

    ?>
<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">
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:hotelreviews.php


注:本文中的JHotelUtil::fmt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。