示例#1
0
            echo $package->package_name;
            ?>
</B>
							</a>	
							
						</TD>
						<TD valign=top align=center>
						
							<?php 
            echo $package->package_datas != '0000-00-00' ? getDateGeneralFormat($package->package_datas) : str_repeat('&nbsp;', 10);
            ?>
							<?php 
            echo $package->package_datas != '0000-00-00' || $package->package_datae != '0000-00-00' ? '&nbsp;&nbsp;' . JText::_('LNG_TO', true) . '&nbsp;&nbsp;' : ' ';
            ?>
							<?php 
            echo $package->package_datae != '0000-00-00' ? getDateGeneralFormat($package->package_datae) : str_repeat('&nbsp;', 10);
            ?>
						</TD>
						<TD  valign=top align=left><?php 
            echo $package->package_description;
            ?>
</TD>
						<!--
						<TD align=center><?php 
            echo $package->package_number;
            ?>
</TD>
						-->
						<TD  valign=top align=center>
							<?php 
            /*
示例#2
0
 function prepareEmail($templEmail)
 {
     $data_1 = $this->year_start . '-' . $this->month_start . '-' . $this->day_start;
     $datas = getDateGeneralFormat($data_1);
     $data_2 = $this->year_end . '-' . $this->month_end . '-' . $this->day_end;
     $datae = getDateGeneralFormat($data_2);
     $ratingURL = '<a href="' . JURI::root() . 'index.php?option=com_jhotelreservation&controller=hotelratings&view=hotelratings&confirmation_id=' . $this->confirmation_id . '">' . JText::_('LNG_CLICK_TO_RATE', true) . '</a>';
     //$templEmail = str_replace("\r\n",'<BR>', $templEmail); -- this causes many view problems / don not use it anymore
     $companyLogo = "<img src=\"" . JURI::base() . "/components/" . getBookingExtName() . '/img/logo.jpg' . "\" alt=\"Company logo\" />";
     $chekInTime = $this->itemHotelSelected->informations->check_in;
     $chekOutTime = $this->itemHotelSelected->informations->check_out;
     $hotelName = $this->itemHotelSelected->hotel_name;
     $cancellationPolicy = $this->itemHotelSelected->informations->cancellation_conditions;
     $touristTax = $this->itemHotelSelected->informations->city_tax_percent == 1 ? $this->itemHotelSelected->informations->city_tax + '% ' : fmt($this->itemHotelSelected->informations->city_tax, 2);
     $templEmail = str_replace(EMAIL_COMPANY_LOGO, $companyLogo, $templEmail);
     $templEmail = str_replace(EMAIL_SOCIAL_SHARING, "", $templEmail);
     $gender = JText::_("LNG_EMAIL_GUEST_TYPE_" . $this->guest_type, true);
     $templEmail = str_replace(htmlspecialchars(EMAIL_RESERVATIONGENDER), $gender, $templEmail);
     $templEmail = str_replace(EMAIL_RESERVATIONGENDER, $gender, $templEmail);
     $templEmail = str_replace(htmlspecialchars(EMAIL_RESERVATIONFIRSTNAME), '', $templEmail);
     $templEmail = str_replace(EMAIL_RESERVATIONFIRSTNAME, '', $templEmail);
     $templEmail = str_replace(htmlspecialchars(EMAIL_RESERVATIONLASTNAME), $this->last_name, $templEmail);
     $templEmail = str_replace(EMAIL_RESERVATIONLASTNAME, $this->last_name, $templEmail);
     $templEmail = str_replace(EMAIL_START_DATE, $datas, $templEmail);
     $templEmail = str_replace(EMAIL_END_DATE, $datae, $templEmail);
     $templEmail = str_replace(EMAIL_CHECKIN_TIME, $chekInTime, $templEmail);
     $templEmail = str_replace(EMAIL_CHECKOUT_TIME, $chekOutTime, $templEmail);
     $templEmail = str_replace(htmlspecialchars(EMAIL_RESERVATIONDETAILS), $this->Reservation_Details_EMail, $templEmail);
     $templEmail = str_replace(EMAIL_RESERVATIONDETAILS, $this->Reservation_Details_EMail, $templEmail);
     $templEmail = str_replace(htmlspecialchars(EMAIL_BILINGINFORMATIONS), $this->Guest_Details, $templEmail);
     $templEmail = str_replace(EMAIL_BILINGINFORMATIONS, $this->Guest_Details, $templEmail);
     $templEmail = str_replace(htmlspecialchars(EMAIL_PAYMENT_METHOD), $this->Payment_Information, $templEmail);
     $templEmail = str_replace(EMAIL_PAYMENT_METHOD, $this->Payment_Information, $templEmail);
     $templEmail = str_replace(htmlspecialchars(EMAIL_GUEST_DETAILS), $this->GuestsDetails, $templEmail);
     $templEmail = str_replace(EMAIL_GUEST_DETAILS, $this->GuestsDetails, $templEmail);
     $templEmail = str_replace(EMAIL_HOTEL_CANCELATION_POLICY, $cancellationPolicy, $templEmail);
     $templEmail = str_replace(EMAIL_HOTEL_NAME, $hotelName, $templEmail);
     $templEmail = str_replace(EMAIL_TOURIST_TAX, $touristTax, $templEmail);
     $emailText = "";
     if ($this->payment_processor_sel_type == PROCESSOR_BANK_ORDER) {
         $emailText = JText::_('LNG_PROCESSOR_BANK_TRANSFER_EMAIL_TEXT', true);
         $emailText = str_replace(EMAIL_RESERVATION_COST, my_round($this->total_cost > 0 ? $this->total_cost : $this->total - $this->total_payed, 2), $emailText);
         $emailText = str_replace(EMAIL_RESERVATION_ID, $this->getStringIDConfirmation(), $emailText);
     }
     if ($this->payment_processor_sel_type == PROCESSOR_EENMALIGE_INCASO) {
         $emailText = JText::_('LNG_PROCESSOR_EENMALIGE_INCASO_EMAIL_TEXT', true);
         $emailText = str_replace(EMAIL_RESERVATION_COST, my_round($this->total_cost, 2), $emailText);
     }
     $templEmail = str_replace(EMAIL_BANK_TRANSFER_DETAILS, $emailText, $templEmail);
     $templEmail = str_replace(EMAIL_RATING_URL, $ratingURL, $templEmail);
     //$templEmail = str_replace(htmlspecialchars(EMAIL_PLACEHOLDER),				$placeholder,						$templEmail);
     //$templEmail = str_replace(EMAIL_PLACEHOLDER,									$placeholder, 						$templEmail);
     $fromName = $this->itemAppSettings->company_name;
     if (getCurrentJoomlaVersion() < 1.6) {
         global $mainframe;
         if (strlen($fromName) == 0) {
             $fromName = $mainframe->getCfg('fromname');
         }
     } else {
         if (strlen($fromName) == 0) {
             $config =& JFactory::getConfig();
             $fromName = $config->get('config.fromname');
         }
     }
     $templEmail = str_replace(htmlspecialchars(EMAIL_COMPANY_NAME), $fromName, $templEmail);
     $templEmail = str_replace(EMAIL_COMPANY_NAME, $fromName, $templEmail);
     return $templEmail;
 }
示例#3
0
            ?>
		
								<?php 
            echo $offer->offer_dataef == '0000-00-00' ? "&nbsp;" : getDateGeneralFormat($offer->offer_dataef);
            ?>
							</TD>
							<TD align=center>
								<?php 
            echo $offer->offer_datas == '0000-00-00' ? "&nbsp;" : getDateGeneralFormat($offer->offer_datas);
            ?>
								<?php 
            echo JText::_('LNG_TO', true);
            ?>
	
								<?php 
            echo $offer->offer_datae == '0000-00-00' ? "&nbsp;" : 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->featured == false ? "unchecked.gif" : "checked.gif");
                ?>
"
										onclick="document.location.href = '<?php 
                echo JRoute::_('index.php?option=' . getBookingExtName() . '&task=manageoffers.changeFeaturedState&offer_id=' . $offer->offer_id . '&hotel_id=' . $offer->hotel_id);
                ?>
 '" />
									</td>