Esempio n. 1
0
<h1><?php 
echo ucFirst($incoming . $statusLabel);
?>
 Booking Request</h1><br />
	<div class="row">
		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-body">
				<?php 
if (mysql_num_rows($resultBookingInfo)) {
    while ($row = mysql_fetch_array($resultBookingInfo)) {
        ?>
							<div class="listing-item">
								<div class="item-pic">
									<img src="<?php 
        echo $commonController->resize_image(!empty($row['logo']) ? $commonController->getListingsFolderPath($row['logo']) : 'images/common/no-listing-image.png', 210);
        ?>
" alt="<?php 
        echo $row['name'];
        ?>
" alt="" />
								</div>
								<div class="listing-info">	
									<div class="listing-info-blank">
										<?php 
        echo stripslashes($row['message']);
        ?>
										<br />
										Status : <?php 
        echo $status[$row['status']];
        ?>
}
?>
								<label for="facility_type[]" class="error"></label>
							</div>
							<div class="clearfix"></div>
							<br />


							<div class="form-group">
								<label>Logo</label>
								<?php 
if (!empty($data['image'])) {
    ?>
									<div class="clear"></div>
									<a class="fancybox" href="<?php 
    echo SITE_URL . (!empty($data['image']) ? $commonController->getListingsFolderPath($data['image']) : 'images/common/no-member-image.png');
    ?>
">
										<img src="<?php 
    echo $commonController->resize_image($commonController->getListingsFolderPath($data['image']), 200);
    ?>
" alt="<?php 
    echo $data['name'];
    ?>
" />
									</a>
									<div class="clear"></div>	
								<?php 
}
?>
if (mysql_num_rows($resultSearch)) {
    $index = 0;
    while ($row = mysql_fetch_assoc($resultSearch)) {
        $mapResult[$index] = $row;
        $mapResult[$index]['encoded_id'] = base64_encode($row['id']);
        $dataDeal['select'] = 'd.name as deal_name, d.value as discount ';
        $dataDeal['table'] = 'deals d';
        $dataDeal['where'] = array('d.id = ' . $row['deals'], 'd.status = 1');
        $dataDeal['limit'] = '0,1';
        $resultDeal = $commonController->getTableData($dataDeal);
        if (mysql_num_rows($resultDeal)) {
            $rowDeal = mysql_fetch_array($resultDeal);
            $mapResult[$index]['discount'] = $rowDeal['discount'];
            $mapResult[$index]['deal_name'] = $rowDeal['deal_name'];
        }
        $mapResult[$index]['logo'] = $commonController->resize_image(!empty($row['logo']) ? $commonController->getListingsFolderPath($row['logo']) : 'images/common/no-listing-image.png', 200);
        $dataAccommodation['table'] = 'accommodations a LEFT JOIN establishments_accommodations ea ON ea.accommodation_id = a.id';
        $dataAccommodation['where'] = array('ea.establishment_id = ' . $row['id']);
        $dataAccommodation['order'] = 'a.name ASC';
        $resultAccommodation = $commonController->getTableData($dataAccommodation);
        if (mysql_num_rows($resultAccommodation)) {
            while ($rowAccommodation = mysql_fetch_array($resultAccommodation)) {
                $accommodationName[] = $rowAccommodation['name'];
            }
            if (!empty($accommodationName)) {
                $mapResult[$index]['accommodation'] = implode(", ", $accommodationName);
            }
        }
        $roomsResult = $commonController->getTableData(array('select' => 'MIN(rate) as min_rate', 'table' => 'establishment_rooms', 'where' => array('establishment_id=' . $row['id'], 'status=1'), 'groupBy' => 'establishment_id'));
        if (mysql_num_rows($roomsResult)) {
            $rowRooms = mysql_fetch_array($roomsResult);
Esempio n. 4
0
    ?>
" class="share-ml"> &nbsp; </a></li>
					</ul>
				</div>
			</div>
			<div class="product-detail">      
				<div class="product-slider detail-tabs-content" id="photoGallery">
					<?php 
    if (!empty($existingGallery) && count($existingGallery['path']) > 0) {
        ?>
						<ul id="image-gallery" class="gallery list-unstyled cS-hidden">
					<?php 
        for ($index = 0; $index < count($existingGallery['path']); $index++) {
            ?>
							<li data-thumb="<?php 
            echo $commonController->resize_image($commonController->getListingsFolderPath($existingGallery['path'][$index]), 50);
            ?>
"> 
								<img src="<?php 
            echo $commonController->resize_image($commonController->getListingsFolderPath($existingGallery['path'][$index]), 500);
            ?>
" />
							</li>
					<?php 
        }
        ?>
					</ul>
					<?php 
    }
    ?>
				</div>