Пример #1
0
 /**
  * Return the country name
  * @param type $code
  * @return type
  */
 static function country($code)
 {
     $countries = CHLibDisplay::countries();
     return isset($countries[$code]) ? $countries[$code] : '-';
 }
Пример #2
0
				</div>
				<div class="uk-width-medium-3-10 uk-margin-top">
					<label class="uk-form-label" for="ch-book-country"><?php 
echo CHClient::string('country');
?>
</label>
					<select class="uk-width-1-1 <?php 
echo $this->requestErrors('country');
?>
" name="country" id="ch-book-country">
						<option value="">-- <?php 
echo CHClient::string('select');
?>
 --</option>
						<?php 
echo JHtml::_('select.options', CHLibDisplay::countries(), null, null, $this->requestValue('country'));
?>
					</select>
				</div>
			</div>

		</fieldset>

		<br>

		<fieldset>

			<legend><?php 
echo CHClient::string('your_stay');
?>
</legend>
<?php

/**
 * @package		CHAdminPro
 * @copyright	Copyright (C) CloudHotelier. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/gpl.html>
 * @author		Xavier Pallicer <*****@*****.**>
 */
defined('_JEXEC') or die('no direct access');
$vlang = 'user';
$booking = $displayData['booking'];
$customer = $booking->customer;
$hotel = $booking->hotel;
$currency = CHLibDisplay::currencySymbol($booking->currency);
$customer_currency = CHLibDisplay::currencySymbol($booking->customer->currency);
$countries = CHLibDisplay::countries();
$booking_status = CHClient::bookingStatus($booking->booking_status, true);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta name="viewport" content="width=device-width" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title><?php 
echo CHClient::string('your_booking');
?>
 - <?php 
echo $booking->booking_id;
?>
</title>
	</head>