Esempio n. 1
0
?>
<br/>
<ol class="dribbbles group" style="padding-left: 0px;">
    <?php
    $product_model = new Product();
    $web = new Configweb_model();
    $i = 0;
    foreach ($product as $last):
        $i++;
        $img_short = $product_model->get_images_product_title($last['product_id']);
        if (!empty($img_short['images'])) {
            $img = "uploads/product_thumb/" . $img_short['images'];
        } else {
            $img = "images/No_image_available.jpg";
        }
        $link = Yii::app()->createUrl('frontend/product/detail/id/' . $web->url_encode($last['product_id']));
        ?>
        <li id="screenshot-<?php echo $i; ?>" class="col-lg-4 col-md-4 col-sm-6 col-xs-6" style="text-align:center; margin-bottom:15px;">
            <div class="dribbble" id="box_list_product">
                <div class="dribbble-shot">
                    <div class="dribbble-img">
                        <a class="dribbble-link" href="/shots/2166663-Retinabbble-Chrome-extension-for-dribbble">
                            <div data-picture data-alt="Retinabbble - Chrome extension for dribbble">
                                <img src="<?php echo Yii::app()->baseUrl; ?>/<?php echo $img; ?>"/>
                            </div>
                        </a>
                        <a class="dribbble-over hvr-pop" href="<?php echo $link ?>" id="hover-box-product">    
                            <?php echo $last['product_name']; ?><br/>
                            <span id="font-22" style=" color: #ff9900;">ราคา <?php echo $last['product_price']; ?> บาท</span>
                        </a>
                    </div>
Esempio n. 2
0
        <font id="font-22">สินค้ามาใหม่</font>
    </div>
    <ol class="dribbbles group" style="padding-left: 0px; margin-top:10px;">
        <?php
        $product_model = new Product();
        $i = 0;
        foreach ($last_product as $last):
            $i++;
            $img_title = $product_model->get_images_product_title($last['product_id']);
            if (!empty($img_title)) {
                $img = "uploads/product_thumb/" . $img_title['images'];
            } else {
                $img = "images/No_image_available.jpg";
            }

            $link = Yii::app()->createUrl('frontend/product/detail/id/' . $config->url_encode($last['product_id']));
            ?>
            <?php if ($i == "1") { ?>
                <li id="screenshot-<?php echo $i; ?>" class="col-lg-6 col-md-6 col-sm-12" style="text-align:center; margin-bottom:15px;">
                    <div class="dribbble" id="box_list_product">
                        <div class="dribbble-shot">
                            <div class="dribbble-img">
                                <a class="dribbble-link" href="#">
                                    <div data-picture data-alt="Retinabbble - Chrome extension for dribbble">
                                        <img src="<?php echo Yii::app()->baseUrl; ?>/images/new-full.png" id="title-bar-tab">
                                        <img src="<?php echo Yii::app()->baseUrl; ?>/<?php echo $img; ?>" style="max-width:80%;"/>
                                    </div>
                                </a>
                                <a class="dribbble-over hvr-pop" href="<?php echo $link ?>" id="hover-box-product">
                                    <?php echo $last['product_name']; ?><br/>
                                    <span id="font-22">ราคา <?php echo $last['product_price']; ?> บาท</span>
Esempio n. 3
0
        }
        //});
    }

</script>

<script type="text/javascript">
    function set_group_img(img) {
        $("#img_group").html("<img src='<?php echo Yii::app()->baseUrl ?>/uploads" + "/" + img + " ' width='80%' style='margin-right:20px;' />");
    }
</script>

<?php
$config = new Configweb_model();
$this->breadcrumbs = array(
    $product['type_name'] => array('frontend/product/view/type/' . $config->url_encode($product['type_id'])),
    $product['product_name'],
);
?>
<br/>
<div class="well" style=" width:100%; margin-top:0px; background:#FFF; text-align: left; border:none; box-shadow: none;">
    <div class="row">
        <div class="col-lg-12">
            <font style=" color: #F00; font-size: 24px; font-weight: normal;" id="font-rsu-18">
            <img src="<?php echo Yii::app()->baseUrl; ?>/images/yellow-tag-icon.png"/>
            <?= $product['product_name'] ?>
            </font>
        </div>
    </div>
    <div class="row">
Esempio n. 4
0
<script type="text/javascript">
    $(".load_more").attr("disabled", "disabled");
</script>
<?php } ?>
<div class="row">
    <?php
    $config = new Configweb_model();
    $a = 0;
    foreach ($article as $art):
        $a++;
        if (!empty($art['images'])) {
            $img_art = "uploads/article/" . $art['images'];
        } else {
            $img_art = "images/No_image_available.jpg";
        }
        $link = Yii::app()->createUrl('frontend/article/view/id/' . $config->url_encode($art['id']));
        ?>
        <div class="col-sm-6 col-md-4">
            <div class="thumbnail">
                <img src="<?php echo Yii::app()->baseUrl; ?>/<?php echo $img_art; ?>" class="img-responsive article-img"/>
                <div class="caption"id="article-box">
                    <p><?php echo $art['title']; ?></p>
                </div>
                <p style=" text-align: right;"><a href="<?php echo $link;?>" class="btn btn-default btn-sm" role="button"><i class="fa fa-angle-double-right"></i> รายละเอียด</a></p>
            </div>
        </div>
    <?php endforeach; ?>
</div>
<script>
    $(document).ready(function () {
        var width = $(window).width();