</small>
		</div>
	</div>


	<?php 
if ($currency != $hotel_currency) {
    ?>
		<p class="uk-alert">
			<?php 
    echo CHClient::string('property_currency');
    ?>
: <?php 
    echo CHLibDisplay::money($booking->amounts->total, $hotel_currency);
    ?>
			<br><small><?php 
    echo CHClient::string('exchange_notice');
    ?>
: <?php 
    echo CHLibDisplay::money($booking->amounts->total_customer_currency, $currency);
    ?>
 = <?php 
    echo CHLibDisplay::money($booking->amounts->total, $hotel_currency);
    ?>
</small>
		</p>
	<?php 
}
?>

</div>
Пример #2
0
 <a data-uk-modal href="#ch-modal-conditions"><?php 
echo CHClient::string('see_conditions');
?>
</a></p>
			</div>
		</div>

		<hr>

		<div class="uk-grid">
			<div class="uk-width-medium-10-10 uk-text-right">
				<button data-ch-book-submit data-ch-hotel-title="<?php 
echo $hotel->title;
?>
" class="uk-button uk-button-primary uk-button-large"><?php 
echo $config->confirm_card_hosted ? CHClient::numstring(count($this->rooms->units), 'book_room') . ' ' . CHLibDisplay::money($this->data->currency_total, $currency) . ' <i class="uk-icon-lock"></i>' : CHClient::string('continue') . ' <i class="uk-icon-angle-right"></i>';
?>
</button>
				<br><small><?php 
echo CHClient::string('get_instant_confirmation');
?>
</small>
			</div>
		</div>

	</form>

</div>


Пример #3
0
        }
    }
    ?>
					</div>	
				</div>

				<div class="ch-available-room-price">
					<div data-ch-room-price="unit-<?php 
    echo $unit;
    ?>
room-<?php 
    echo $this->room->id;
    ?>
">
						<?php 
    $amount = CHLibDisplay::money($this->available->rates[0]->currency->amount->{$first_board}, $currency);
    ?>
						<h4 data-ch-amount data-ch-amount-unit="<?php 
    echo $unit;
    ?>
" data-ch-amount-room="<?php 
    echo $this->room->id;
    ?>
"><?php 
    echo $amount;
    ?>
</h4>
						<a class="uk-button uk-button-primary uk-button-small ch-available-display-active" href="javascript:;" data-ch-reserve data-ch-hotel-title="<?php 
    echo $hotel->title;
    ?>
"><?php 
Пример #4
0
 /**
  * Render month row
  */
 static function monthRow($first, $last, $month, $rooms, $ari, $filter_room = false, $start_empty_days = 0, $end_empty_days = 0)
 {
     $html = [];
     $today_int = CHLibDate::getDate()->format('Ymd');
     $currency = isset($ari->currency) ? CHLibDisplay::currencySymbol($ari->currency) : '';
     foreach ($rooms as $room) {
         // check room
         if ($filter_room && $room->id != $filter_room) {
             continue;
         }
         // prepare available & rates keys
         $room_ari = isset($ari->ari) ? CHLibData::getObjectFromList($ari->ari, $room->id, 'room_id') : 0;
         // generate html
         if (!$filter_room) {
             $title = '<div class="uk-vertical-align-middle">' . $room->title . '</div>';
             $html[] = '<div class="uk-vertical-align ch-month-cell ch-month-cell-row ch-month-cell-title">' . $title . '</div>';
         }
         // empty rows
         for ($i = 0; $i < $start_empty_days; $i++) {
             $html[] = '<div class="ch-month-cell ch-month-cell-row"></div>';
         }
         foreach ($month->dates as $date) {
             // month rows
             $day = $date->day;
             if ($day < $first || $day > $last) {
                 continue;
             }
             // get day data
             $date_int = str_replace('-', '', $date->date);
             $rate = '-';
             $aclass = '';
             $is_not_in_past = $date_int >= $today_int;
             if ($room_ari) {
                 $has_availability = isset($room_ari->availability[$day - 1]);
                 $has_rate_and_is_not_zero = isset($room_ari->rates[0]->rate[$day - 1]) && $room_ari->rates[0]->rate[$day - 1] > 0;
                 if ($is_not_in_past && $has_availability && $has_rate_and_is_not_zero) {
                     $rate = CHLibDisplay::money($room_ari->rates[0]->rate[$day - 1], $currency);
                     $available = $room_ari->availability[$day - 1];
                     $aclass = 'ch-month-cell-span-available-' . ($available ? $available > 2 ? 'ok' : 'low' : 'no');
                 }
             }
             // cells
             $html[] = '<div class="ch-month-cell ch-month-cell-row ch-month-cell-day-' . $date->day_week . '">';
             $html[] = '<small class="uk-text-muted ch-month-cell-span ch-month-cell-span-available ' . $aclass . '">' . $rate . '</small>';
             $html[] = '</div>';
         }
         // empty rows
         for ($i = 0; $i < $end_empty_days; $i++) {
             $html[] = '<div class="ch-month-cell ch-month-cell-row"></div>';
         }
     }
     return implode("\n", $html);
 }
Пример #5
0
        echo $n;
        ?>
"
													data-ch-upgrade-amount="<?php 
        echo CHLibDisplay::money($room_extra->currency->amount * $n, $currency);
        ?>
"
													data-ch-upgrade-sum="<?php 
        echo $room_extra->currency->amount * $n;
        ?>
"
													><?php 
        echo $n;
        ?>
 <?php 
        echo $n ? '&nbsp;&nbsp;&nbsp;&nbsp;' . CHLibDisplay::money($room_extra->currency->amount * $n, $currency) : '';
        ?>
												</option>
											<?php 
    }
    ?>
										</select>
									</p>
									<!--
									<button data-ch-upgrade-button type="button" class="uk-button"><?php 
    echo CHClient::string('add');
    ?>
</button>
									-->
								</div>
							</div>
			</small>
		</div>
	</div>


	<?php 
if ($hotel->currency != $this->availability->request->currency) {
    ?>
		<p class="uk-alert">
			<?php 
    echo CHClient::string('property_currency');
    ?>
: <?php 
    echo CHLibDisplay::money($this->data->total, $hotel_currency);
    ?>
			<br><small><?php 
    echo CHClient::string('exchange_notice');
    ?>
: <?php 
    echo CHLibDisplay::money($this->data->currency_total, $currency);
    ?>
 = <?php 
    echo CHLibDisplay::money($this->data->total, $hotel_currency);
    ?>
</small>
		</p>
	<?php 
}
?>

</div>
Пример #7
0
        ?>
			  <?php 
    } else {
        ?>
					<?php 
        echo CHClient::string('payed_in_advance');
        ?>
		    <?php 
    }
    ?>

				<?php 
    if ($room->amounts->deposit) {
        ?>
					(<?php 
        echo CHLibDisplay::money($room->amounts->deposit, $currency);
        ?>
)
				<?php 
    }
    ?>
				<br><strong><?php 
    echo CHClient::string('cancellation_policy');
    ?>
</strong>: <?php 
    echo $this->escape($room->rate->cancellation_policy);
    ?>
				<?php 
    if ($deadline) {
        ?>
					<br><strong><?php 
-board> </span> 
						<br>&nbsp;&nbsp;&nbsp;<i class="uk-icon-check-square-o"></i> <span data-ch-summary-unit-<?php 
    echo $i;
    ?>
-type> </span>
					</small>
				</p>
			<?php 
}
?>

			<p><strong><?php 
echo CHClient::string('booking_total');
?>
: <?php 
echo CHLibDisplay::money(0, $currency, 'data-ch-summary-total');
?>
</strong></p>

			<p><a class="uk-button uk-button-primary" data-ch-reserve data-ch-hotel-title="<?php 
echo $hotel->title;
?>
"><?php 
echo CHClient::string('reserve');
?>
</a></p>

		</div>

		<!-- summary invalid selection -->
		<p data-ch-summary-invalid class="uk-hidden"><?php 
						</small>
					</div>
				</div>
			<?php 
}
?>

			<div class="uk-hidden" data-ch-upgrade-extra-template>
				<br> <i class="uk-icon-check-square-o"></i> &nbsp;&nbsp;{title} {n}: <strong>{amount}</strong>
			</div>

			<p><strong><?php 
echo CHClient::string('booking_total');
?>
: <?php 
echo CHLibDisplay::money($this->rooms->currency_total, $currency, 'data-ch-summary-total');
?>
</strong></p>

			<p><a class="uk-button uk-button-primary" data-ch-reserve data-ch-hotel-title="<?php 
echo $hotel->title;
?>
"><?php 
echo CHClient::string('continue');
?>
 <i class="uk-icon-angle-right"></i></a></p>

		</div>

	</div>
Пример #10
0
				<?php 
            if ($room->available < 3) {
                ?>
<small class="ch-text-red"><?php 
                echo CHClient::string('warn_available_' . $room->available);
                ?>
</small><?php 
            }
            ?>
				<?php 
            echo $rate->free_cancellation ? '<small class="ch-text-block ch-text-green">' . CHClient::string('free_cancellation') . '</small>' : '<small>' . CHClient::string($rate->conditions) . '</small>';
            ?>
 
				<span class="uk-float-right">
					<span class="ch-text-block ch-text-green"><?php 
            echo CHLibDisplay::money($amount, $currency);
            ?>
</span>
				</span>
			</p>	

		<?php 
        }
        ?>


	<?php 
    }
    ?>

<?php