Example #1
0
<?php

$oOffer = new Offer();
$oOfferImage = new OfferImage();
$offerAll = $oOffer->findAllFrom("Offer", "1=1 order by sequence");
//1st Room
//8th Room
$idx = 1;
if ($oOffer->countFrom('Offer', "1=1") > 0) {
    foreach ($offerAll as $offer) {
        $offergalleries = $oOfferImage->findByOfferId($offer->id);
        ?>

<div class="col-full-room" id="room-full-0<?php 
        echo $idx;
        ?>
">
           		 <div class="col-room-half slider offer-slick room-gallery <?php 
        if ($idx == 2 || $idx == 4) {
            echo 'even';
        }
        ?>
" id="">
                
                		<div><img src="<?php 
        echo URL_PUBLIC;
        ?>
public/offer/images/<?php 
        echo $offer->filename;
        ?>
" /></div>