Example #1
0
        //	$tmpcurrstay->Variations = $selVariation;
        $tmpcurrstay->DiscountVariation = $resStay->DiscountVariation;
        $tmpcurrstay->SupplementVariation = $resStay->SupplementVariation;
        $currstaysuggested = htmlspecialchars(json_encode($tmpcurrstay), ENT_COMPAT, 'UTF-8');
    }
    //echo "<pre>currstaysuggested:<br />";
    //echo print_r($currstaysuggested);
    //echo "</pre>";
    $staysuggesteds[$resStay->BookingType] = $currstaysuggested;
    return $arr;
}
$hasResourceStay = false;
if (isset($this->resstays)) {
    $hasResourceStay = true;
    foreach ($this->resstays as $rst) {
        $allStaysToView = pushStay($allStaysToView, $resource->ResourceId, $rst, $resource, $allstaysuggested);
    }
}
$this->allstaysuggested = $allstaysuggested;
//foreach($this->allstays as $rst) {
//	$allStaysToView = pushStay($allStaysToView, $rst->ResourceId, $rst);
//}
$duration = $checkin->diff($checkout);
$showQuote = $DiscountedPrice > 0 && $stayAvailability > 0;
$selPriceTypeObj = null;
if (isset($completestay->CalculatedPricesDetails)) {
    $calPrices = $completestay->CalculatedPricesDetails;
}
if (!empty($completestay)) {
    $selPriceType = $completestay->RatePlanId;
    $selPriceTags = $completestay->Tags;
        $rt->DiscountedPriceString = BFCHelper::priceFormat((double) $resStay->SuggestedStay->DiscountedPrice);
        $rt->DiscountedPrice = (double) $resStay->SuggestedStay->DiscountedPrice;
    }
    $arr[$index]->RatePlans[] = $rt;
    return $arr;
}
$hasResourceStay = false;
$eecstays = array();
if (!empty($this->resstays)) {
    $hasResourceStay = true;
    foreach ($this->resstays as $rst) {
        $allStaysToView = pushStay($allStaysToView, $resource->ResourceId, $rst, $resource);
    }
}
foreach ($this->allstays as $rst) {
    $allStaysToView = pushStay($allStaysToView, $rst->ResourceId, $rst);
}
$duration = $checkin->diff($checkout);
?>
<script type="text/javascript">
    var daysToEnable = [<?php 
echo $checkInDates;
?>
];
    var unitId = '<?php 
echo $resource->ResourceId;
?>
';
    var checkOutDaysToEnable = [];
	var allStays = <?php 
echo json_encode($allStaysToView);