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


PHP JHotelUtil::getStringIDConfirmation方法代码示例

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


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

示例1: getReservationDetails


//.........这里部分代码省略.........
            ?>
 </span>

									</td>
								</tr>
							</table>
						</td>
					</tr>
					
					
					<tr bgcolor="#D9E5EE" class='rsv_dtls_header'>
						<td colspan="6" align="left" style="padding: 3px 9px;">&nbsp;</td>
						<td align="right" style="padding: 3px 9px;">&nbsp;</td>
					</tr><?php 
        }
        ?>
					<!--micod-->
					<!--Lugar de la vista de la cotización donde se muestra la hora de llegada, de salida, número de habitaciones y los huespedes-->
					<tr bgcolor="#F8F7F5" class='rsv_dtls_hotel_container'>
						<td style="padding: 3px 9px 3px 0;" colspan="10">
							<table>
								<?php 
        if (isset($reservationData->userData->confirmation_id) && $reservationData->userData->confirmation_id > 0) {
            ?>
									<tr>
										<td  align="left" valign="top" style="padding: 3px 9px;">
											<strong><?php 
            echo JText::_('LNG_ID_RESERVATION', true);
            ?>
</strong>
										</td>
										<td style="padding: 3px 9px;" colspan="4" align="left">
											<span class='title_ID'><?php 
            echo JHotelUtil::getStringIDConfirmation($reservationData->userData->confirmation_id);
            ?>
</span>
										</td>
									</tr>
									<?php 
        }
        ?>
									<?php 
        if ($reservationData->userData->rooms && count($roomsInfo) > 0) {
            ?>
									<tr>	
										<td align="left" valign="top" style="padding: 3px 9px;">
											<strong><?php 
            echo JText::_('LNG_ARIVAL');
            ?>
</strong>
										</td>
										<td  align="left" style="padding: 3px 9px;">
											<?php 
            echo JHotelUtil::getDateGeneralFormat($reservationData->userData->start_date);
            ?>
 (<?php 
            echo JText::_('LNG_CHECK_IN');
            ?>
 <?php 
            echo $reservationData->hotel->informations->check_in;
            ?>
)
										</td>
									</tr>	
									<tr>	
										<td  align="left" valign="top" style="padding: 3px 9px;">
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:67,代码来源:ReservationService(original).php

示例2: stripslashes

					<?php 
    echo JHtml::_('grid.id', $i, $item->confirmation_id);
    ?>
				</td>
				<td class="center">
					<a
						href='<?php 
    echo JRoute::_('index.php?option=com_jhotelreservation&task=reservation.edit&reservationId=' . $item->confirmation_id);
    ?>
'
						title="<?php 
    echo JText::_('LNG_CLICK_TO_EDIT', true);
    ?>
"> 
						<?php 
    echo JHotelUtil::getStringIDConfirmation($item->confirmation_id);
    ?>
					</a>	
					
				</td>
				<td class="center"  width="1%">
					<?php 
    echo $item->first_name . ' ' . $item->last_name;
    ?>
				</td>
				<td class="center" width="1%">
					<?php 
    echo stripslashes($item->hotel_name);
    ?>
				</td>
				<td class="center">
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:default.php

示例3: displayTableRow

 function displayTableRow($room, $row)
 {
     //dmp("R: ". $row);
     $startDate = $this->state->get('filter.start_date');
     $endDate = $this->state->get('filter.end_date');
     echo "<td class='td_color_fundal_1'></td>";
     for ($d = strtotime($startDate); $d <= strtotime($endDate);) {
         $dayString = date('d-m-Y', $d);
         $class = "";
         if ($d == strtotime(date('d-m-Y') . ' -1 day')) {
             $class = 'td_color_fundal_crt_day_1';
         } else {
             $class = 'td_color_fundal_1';
         }
         $class2 = "";
         if ($d == strtotime(date('d-m-Y'))) {
             $class2 = 'td_color_fundal_crt_day_2';
         } else {
             $class2 = 'td_color_fundal_2';
         }
         $showBooking = false;
         if (isset($this->availabilityReport[$room->room_id])) {
             foreach ($this->availabilityReport[$room->room_id][$row] as $booking) {
                 if (strtotime($booking->start_date) < strtotime($startDate)) {
                     $booking->start_date = $startDate;
                 }
                 if (strtotime($booking->start_date) == $d) {
                     $stayPeriod = JHotelUtil::getNumberOfDays($booking->start_date, $booking->end_date);
                     $colSpan = $stayPeriod * 2;
                     echo "<td class='td_color_fundal_1' colspan='{$colSpan}'>";
                     echo "\t<div class='reseravation_box reserved_details_" . strtolower(str_replace(' ', '_', $booking->status_reservation_name)) . "'>" . "<a class='client' href='#dialog_" . $booking->confirmation_id . "' name='modal'>" . $booking->last_name . ' ' . $booking->first_name . "</a>" . "</div>" . "<div id='dialog_" . $booking->confirmation_id . "' class='window'>" . "<div class='info'>" . "<SPAN class='title_ID'>" . JText::_('LNG_RESERVATION', true) . ' : ' . JHotelUtil::getStringIDConfirmation($booking->confirmation_id) . "</SPAN>" . "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type='button' value='Close it' class='close'/>" . $booking->confirmation_details . "</div>" . "</div>";
                     echo "</td>";
                     $showBooking = true;
                     $d = strtotime(date('d-m-Y', $d) . ' + ' . $stayPeriod . ' day ');
                     break;
                 }
             }
             //echo "<td  class='td_color_fundal_1'></td>";
         }
         if (!$showBooking) {
             echo "<td  class='{$class2}'></td>";
             if ($d != strtotime($endDate)) {
                 echo "<td class='{$class}'></td>";
             }
         } else {
             continue;
         }
         $d = strtotime(date('d-m-Y', $d) . ' + 1 day ');
     }
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:50,代码来源:view.html.php

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

示例5: processTransaction

 public function processTransaction($data)
 {
     $this->normalReturnUrl = JRoute::_('index.php?option=com_jhotelreservation&task=paymentoptions.processResponse&processor=buckaroo', false, -1);
     $this->amount = $data->cost > 0 ? $data->cost : $data->total;
     $this->itemName = $data->reservationData->hotel->hotel_name . " Reservation from " . $data->reservationData->userData->start_date . ' to ' . $data->reservationData->userData->end_date;
     $this->itemNumber = $data->confirmation_id;
     $this->setInvoiceNumber(JHotelUtil::getStringIDConfirmation($data->confirmation_id));
     $this->setCurrencyCode($data->reservationData->hotel->hotel_currency);
     $this->setCulture('nl-NL');
     $result = new stdClass();
     $result->transaction_id = 0;
     $result->amount = $data->cost > 0 ? $data->cost : $data->total;
     $result->payment_date = date("Y-m-d");
     $result->response_code = 0;
     $result->confirmation_id = $data->confirmation_id;
     $result->currency = $data->reservationData->hotel->hotel_currency;
     $result->processor_type = $this->type;
     $result->status = PAYMENT_REDIRECT;
     $result->payment_status = PAYMENT_STATUS_PENDING;
     return $result;
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:21,代码来源:Buckaroo.php


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