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


PHP JHotelUtil::getDateGeneralFormat方法代码示例

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


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

示例1: getReservationDetails

 public function getReservationDetails()
 {
     $reservationDetails = null;
     $id = JRequest::getVar('confirmation_id');
     $reservationDetails->confirmation_id = $id;
     $table = $this->getTable('Confirmations', 'Table');
     $table->load($id);
     $hotelService = new HotelService();
     $hotel = $hotelService->getHotel($table->hotel_id);
     $reservationDetails->hotelDetails = $hotel->hotel_name . ", " . $hotel->hotel_address . ", " . $hotel->hotel_city . ", " . $hotel->country_name;
     $reservationDetails->arrivalDate = JHotelUtil::getDateGeneralFormat($table->start_date);
     $reservationDetails->returnDate = JHotelUtil::getDateGeneralFormat($table->end_date);
     $reservationDetails->bookingPerson = $table->first_name . ", " . $table->last_name;
     $reservationDetails->hotelId = $table->hotel_id;
     return $reservationDetails;
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:16,代码来源:hotelratings.php

示例2: array

    ?>
				</td>
			</tr>
					
			<tr>
				<td width=10% nowrap class="key"><?php 
    echo JText::_('LNG_DEPARTURE', true);
    ?>
 </td>
				<td>
					<?php 
    if (!$this->state->get("reservation.id")) {
        $endDate = JHotelUtil::convertToFormat($this->item->reservationData->userData->end_date);
        echo JHTML::_('calendar', $endDate == $this->appSettings->defaultDateValue ? '' : $endDate, 'end_date', 'end_date', $this->appSettings->calendarFormat, array('class' => 'inputbox', 'size' => '10', 'maxlength' => '10'));
    } else {
        echo JHotelUtil::getDateGeneralFormat($this->item->reservationData->userData->end_date);
        ?>
							<input type="hidden" name="end_date" id="end_date" value="<?php 
        echo $this->item->reservationData->userData->end_date;
        ?>
" />
						<?php 
    }
    ?>
				</td>
			</tr>
			<tr>
				<td width=10% nowrap class="key"><?php 
    echo JText::_('LNG_ARRIVAL_TIME', true);
    ?>
 </td>
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:edit.php

示例3: isset

    echo isset($description->content) ? $description->content : "";
    ?>
					</td>
					<td class="center">
						<?php 
    echo $item->price;
    ?>
					</td>
					<td class="center">
						<?php 
    echo $item->start_date != '0000-00-00' ? JHotelUtil::getDateGeneralFormat($item->start_date) : "";
    ?>
					</td>
					<td class="center">
						<?php 
    echo $item->end_date != '0000-00-00' ? JHotelUtil::getDateGeneralFormat($item->end_date) : "";
    ?>
					</td>
					<td class="center">
						<?php 
    if (isset($item->image_path)) {
        echo "<img class='preview' src='" . JURI::root() . PATH_PICTURES . EXTRA_OPTISON_PICTURE_PATH . $item->image_path . "'/>";
    }
    ?>
					</td>
					<td class="center">
						<?php 
    echo $item->is_per_day == 1 ? JText::_("LNG_YES") : JText::_("LNG_NO");
    ?>
					</td>
					<td class="center">
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default.php

示例4: getReservationDetailsExcursions

    public function getReservationDetailsExcursions($resevation, $excursions, $currency)
    {
        $result = array();
        $nr_days_except_offers = 0;
        $index = 0;
        foreach ($excursions as $excursion) {
            $index++;
            $showExcursionDescription = true;
            $excursionInfo = new stdClass();
            $totalExcursionPrice = 0;
            $dayCounter = 0;
            $showPricePerDay = true;
            if (isset($excursion->price_type_day) && $excursion->price_type_day == 1) {
                $showPricePerDay = false;
            }
            ob_start();
            foreach ($excursion->daily as $day) {
                $price_day = $day['price_final'];
                if (isset($excursion->customPrices) && isset($excursion->customPrices[$day["date"]])) {
                    $price_day = $excursion->customPrices[$day["date"]];
                }
                $price_day *= $excursion->nrItemsBooked;
                $info_discount = '';
                $dayCounter++;
                foreach ($day['discounts'] as $d) {
                    if (strlen($info_discount) > 0) {
                        $info_discount .= '<BR>';
                    }
                    $info_discount .= $d->discount_name . ' ' . JHotelUtil::fmt(-1 * $d->discount_value) . '' . ($d->percent == 1 ? "%" : " " . $currency->symbol);
                }
                if (strlen($info_discount) > 0) {
                    $info_discount = "<div class='discount_info'>" . $info_discount . '</div>';
                }
                ?>
					
					<tr class='rsv_dtls_excursion_info'>
						<?php 
                if ($showExcursionDescription) {
                    ?>
							<td colspan=5 align="left" valign="top" style="border-top:solid 1px grey;padding: 3px 9px;"	rowspan='<?php 
                    echo !$showPricePerDay ? 1 : count($excursion->daily);
                    ?>
'>
								
								<?php 
                    if (count($excursions) > 1) {
                        ?>
									<strong>#<?php 
                        echo $index;
                        ?>
</strong>
								<?php 
                    }
                    ?>
								<?php 
                    echo '<strong>' . $excursion->excursion_name . '</strong>' . ' (' . JText::_('LNG_FOR', true) . ' ' . $excursion->nrItemsBooked . ')';
                    ?>
							</td>
							<?php 
                    $showExcursionDescription = false;
                }
                ?>
						
					<?php 
                $totalExcursionPrice += $price_day;
                ?>
					
					<td align="left" valign="top" style="border-top:solid  1px grey;padding: 3px 9px;" nowrap="nowrap">
							
							<?php 
                if (isset($excursion->price_type_day) && $excursion->price_type_day == 1) {
                    $nrDays = JHotelUtil::getNumberOfDays($resevation->start_date, $resevation->end_date);
                    //TODO - get nr Days
                    echo $nrDays . " " . strtolower(JText::_("LNG_NIGHTS"));
                } else {
                    echo JHotelUtil::getDateGeneralFormat($day['date']);
                }
                echo $info_discount;
                ?>
						</td>
						<td align="right" valign="top" style="border-top:solid  1px grey;padding: 3px 9px;">
							&nbsp;
							<?php 
                echo JHotelUtil::fmt($showPricePerDay ? $price_day : $totalExcursionPrice, 2);
                ?>
						</td>
						
						
					</tr>
					
					<?php 
                if (isset($excursion->price_type_day) && $excursion->price_type_day == 1) {
                    break;
                }
            }
            ?>
				
					<?php 
            $excursionInfo->name = $excursion->excursion_name;
            $excursionInfo->excursionDescription = ob_get_contents();
//.........这里部分代码省略.........
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:101,代码来源:ReservationService(original).php

示例5: stripslashes

    echo stripslashes($item->hotel_name);
    ?>
				</td>
				<td class="center">
					<?php 
    echo stripslashes($item->voucher);
    ?>
				</td>
				<td >
					<?php 
    echo JHotelUtil::getDateGeneralFormat($item->start_date);
    ?>
				</td>
				<td >
					<?php 
    echo JHotelUtil::getDateGeneralFormat($item->end_date);
    ?>
				</td>
				<td class="center">
					<?php 
    echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC2', true));
    ?>
				</td>
				<td class="center">
					<?php 
    echo JText::_('LNG_ADULTS', true);
    ?>
: <?php 
    echo $item->total_adults;
    ?>
					 &nbsp;&nbsp;&nbsp;
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default.php

示例6: strtolower

				<div class="clear"></div>
				
			</div>
		</form>
	</div>
	<?php 
} else {
    ?>
			<font size="4px">
				<strong><?php 
    echo JText::_('LNG_ADD_EXCURSIONS');
    ?>
:</strong>
			</font>
			<span class=""><?php 
    echo strtolower(JHotelUtil::getDateGeneralFormat($this->userData->start_date)) . ' ' . JText::_('LNG_TO', true) . ' ' . strtolower(JHotelUtil::getDateGeneralFormat($this->userData->end_date)) . ', ' . JText::_('LNG_NUMBER_OF', true) . ' ' . strtolower(JText::_('LNG_ADULTS', true)) . ': ' . $this->userData->adults;
    ?>
  </span>
<?php 
}
?>

	<form action="<?php 
echo JRoute::_('index.php');
?>
" method="post" name="userForm" id="userForm">
		<div class="hotel-search-list">
			<?php 
if (count($this->excursions) > 0) {
    foreach ($this->excursions as $excursion) {
        //var_dump($excursion);
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default_excursions.php

示例7:

									<b><?php 
        echo JText::_('LNG_RESERVE_BY', true);
        ?>
:</b> <?php 
        echo JHotelUtil::getDateGeneralFormat($offer->offer_dataef);
        ?>
								</div>
								<div class="offer-date-interval splStayDate">		
									<b><?php 
        echo JText::_('LNG_STAY', true);
        ?>
:</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">		
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default.php

示例8: stripslashes

?>
	
			<br/>
			<b><?php 
echo JText::_('LNG_HOTEL', true);
?>
</b> <?php 
echo stripslashes($this->reservationDetails->hotelDetails);
?>
	
			<br/>
			<b><?php 
echo JText::_('LNG_RESERVATION_PERIOD', true);
?>
 </b><?php 
echo JHotelUtil::getDateGeneralFormat($this->reservationDetails->arrivalDate) . ' ' . JText::_('LNG_TO', true) . ' ' . $this->reservationDetails->returnDate;
?>
	
			<br/>
		</div>
		<table class="reviewtable">
				<tr>
					<th style="background-color:#FFFFFF">&nbsp;</th>
				<?php 
foreach ($this->reviewRatingScales as $reviewRatingScale) {
    ?>
					
						<th style="background-color:#FFFFFF">
							<?php 
    echo $reviewRatingScale->rating_scale_desc;
    ?>
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default_printrating.php

示例9: strtolower

		<div id="search-info">
			<span class="search-title"><?php 
echo $this->pagination->total;
?>
 <?php 
echo JText::_('LNG_HOTELS_FOUND', true);
?>
 </span>
			<strong class="search-available"></strong>
			
			<strong><?php 
echo JText::_('LNG_YOU_SEARCHED_FOR');
?>
:</strong>
			<span class=""><?php 
echo JHotelUtil::getDateGeneralFormat($this->userData->start_date) . ' ' . JText::_('LNG_TO', true) . ' ' . JHotelUtil::getDateGeneralFormat($this->userData->end_date) . ' - ' . JText::_('LNG_NUMBER_OF', true) . ' ' . strtolower(JText::_('LNG_ADULTS', true)) . ': ', $this->userData->adults . ($this->appSettings->show_children != 0 ? ' ,' . strtolower(JText::_('LNG_CHILDREN', true)) . ': ' . $this->userData->children : "") . ', ' . JText::_('LNG_NUMBER_OF', true) . ' ' . JText::_('LNG_ROOMS', true) . ': ' . $this->userData->rooms;
?>
  </span>
		</div>
		<div id="search-order">
			<strong><?php 
echo $this->pagination->getResultsCounter();
?>
</strong>
			
			<ul class="sort-by">
				<li class="title">
					<span><?php 
echo JText::_('LNG_SORT_BY');
?>
: </span>
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default(original).php

示例10: getBookingExtName

        ?>
		
								<?php 
        echo $offer->offer_dataef == '0000-00-00' ? "&nbsp;" : JHotelUtil::getDateGeneralFormat($offer->offer_dataef);
        ?>
							</TD>
							<TD align=center>
								<?php 
        echo $offer->offer_datas == '0000-00-00' ? "&nbsp;" : JHotelUtil::getDateGeneralFormat($offer->offer_datas);
        ?>
								<?php 
        echo JText::_('LNG_TO', true);
        ?>
	
								<?php 
        echo $offer->offer_datae == '0000-00-00' ? "&nbsp;" : JHotelUtil::getDateGeneralFormat($offer->offer_datae);
        ?>
							</TD>
								<?php 
        if (checkUserAccess(JFactory::getUser()->id, "manage_featured_hotels")) {
            ?>
									<td align=center><img border=1
										src="<?php 
            echo JURI::base() . "components/" . getBookingExtName() . "/assets/img/" . ($offer->top == false ? "unchecked.gif" : "checked.gif");
            ?>
"
										onclick="document.location.href = '<?php 
            echo JRoute::_('index.php?option=' . getBookingExtName() . '&task=offers.changeTopState&offer_id=' . $offer->offer_id . '&hotel_id=' . $offer->hotel_id);
            ?>
 '" />
									</td>
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default.php

示例11: 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

示例12:

				<?php 
$data_1 = $this->userData->year_start . '-' . $this->userData->month_start . '-' . $this->userData->day_start;
?>
				<strong>
				<?php 
echo JHotelUtil::getDateGeneralFormat($data_1);
?>
				</strong>
				<?php 
//echo date( 'l, F d, Y', strtotime( $this->userData->year_start.'-'.$this->userData->month_start.'-'.$this->userData->day_start ) )
echo JText::_('LNG_TO', true);
?>
				<strong>
				<?php 
$data_2 = $this->userData->year_end . '-' . $this->userData->month_end . '-' . $this->userData->day_end;
echo JHotelUtil::getDateGeneralFormat($data_2);
?>
				</strong>
				<?php 
//echo ", ".JText::_('LNG_FOR',true)." ".(isset($this->userData->roomGuests)?$this->userData->roomGuests[$this->_models['variables']->getReservedItems()]:$this->userData->guest_adult).' '.strtolower(JText::_('LNG_ADULT_S',true))
?>
						
			</div>
			</div>
		</div>
	</div>
</div>

		<?php 
if (JRequest::getVar('infoCheckAvalability') != '') {
    ?>
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:roomrates.php

示例13:

        ?>
'
								title		= 	"<?php 
        echo JText::_('LNG_CLICK_TO_EDIT', true);
        ?>
"
							>
								<B><?php 
        echo $room_discount->discount_name;
        ?>
</B>
							</a>	
							
						</TD>
						<TD align=center><?php 
        echo JText::_('LNG_FROM', true) . '&nbsp;&nbsp;' . JHotelUtil::getDateGeneralFormat($room_discount->discount_datas) . '&nbsp;&nbsp;' . JText::_('LNG_TO', true) . '&nbsp;&nbsp;' . JHotelUtil::getDateGeneralFormat($room_discount->discount_datae);
        ?>
</TD>
						<TD align=center><?php 
        echo $room_discount->discount_rooms;
        ?>
</TD>
						<TD align=center><?php 
        echo $room_discount->discount_value . ' %';
        ?>
</TD>
						<TD align=center>
						<?php 
        $str_conditions = '';
        if ($room_discount->minimum_number_days > 0) {
            $str_conditions .= ' >= ' . $room_discount->minimum_number_days . '&nbsp;' . JText::_('LNG_DAYS', true);
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default.php


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