Exemplo n.º 1
0
function accommodationdetails_thanks_ordercancel($merchant_name)
{
    $args = explode('-', $merchant_name);
    $merchant_id = $args[0];
    $model = new BookingForConnectorModelMerchantDetails();
    $merchant = $model->getItem($merchant_id);
    $output = '';
    $output = $output . '<div class="com_bookingforconnector_merchantdetails">
	<h2 class="com_bookingforconnector_merchantdetails-name"> 
		<span class="com_bookingforconnector_merchantdetails-rating com_bookingforconnector_merchantdetails-rating' . $merchant->Rating . '">
			<span class="com_bookingforconnector_merchantdetails-ratingText">Rating ' . $merchant->Rating . '</span>
		</span>
	</h2>
	<div class="com_bookingforconnector_merchantdetails-contacts">
	' . _e('Payment process not successfully completed', 'bfi') . '
	</div>
</div>';
    echo $output;
}
    $location = $resource->LocationName;
    $resourceName = BFCHelper::getLanguage($resource->Name, $language, null, array('ln2br' => 'ln2br', 'striptags' => 'striptags'));
    $addressData = "";
    $resourceLat = "";
    $resourceLon = "";
    if (!empty($resource->XPos)) {
        $resourceLat = $resource->XPos;
    }
    if (!empty($resource->YPos)) {
        $resourceLon = $resource->YPos;
    }
    $isMapVisible = $resource->IsMapVisible;
    $isMapMarkerVisible = $resource->IsMapMarkerVisible;
    $showResourceMap = $resourceLat != null && $resourceLon != null && $isMapVisible && $isMapMarkerVisible;
    $merchant_id = $resource->MerchantId;
    $model = new BookingForConnectorModelMerchantDetails();
    $merchant = $model->getItem($merchant_id);
    $route = url('merchant-details/sale/' . $resource->ResourceId . '-' . seoUrl($resource->Name));
    $routeMerchant = url('merchant-details/merchantdetails/' . $resource->MerchantId . '-' . seoUrl($merchant->Name));
    $routeInfoRequest = '';
    $routeRapidView = url('merchant-details/sale/' . $resource->ResourceId . '-' . seoUrl($resource->Name), array('query' => array('layout' => 'rapidview')));
    ?>
	<div class="com_bookingforconnector_search-resource">
		<div class="com_bookingforconnector_merchantdetails-resource" id="container<?php 
    echo $resource->ResourceId;
    ?>
"> 
			<div class="row-fluid ">
					<div class="span9 borderright minhlist">
						<div class="com_bookingforconnector_merchantdetails-resource-features">
						<!-- img -->