|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/kamariallee.com/public_html/application/views/ |
Upload File : |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!-- Breadcrumbs -->
<div class="breadcrumbs">
<div class="container">
<div class="row">
<div class="col-md-12">
<ul class="bcrumbs" id="crumbs">
<li><a href="<?= base_url(); ?>">Home</a></li>
<li style="color:white;">New Arrival</li>
</ul>
</div>
</div>
</div>
</div>
<!-- End of Breadcrumbs -->
<div class="container">
<div class="row">
<!-- Left Sidebar -->
<div class="col-md-3">
<div class="shop-sidebar1">
<div class="item-details widget shop-title-h5">
<h5>Category</h5>
<?= Modules::run('category_column'); ?>
<!-- <ul>
<li><a href="gird.html#">Categories 01 (1) </a></li>
<li><a href="gird.html#">Categories 02 (3)</a></li>
<li><a href="gird.html#">Categories 03 (5)</a></li>
<li><a href="gird.html#">Categories 04 (8)</a></li>
</ul> -->
</div>
<!-- <div class="item-details price-tag widget shop-title-h5">
<h5>Price</h5>
<label for="amount">Range: <span>$100.00 - 500.00</span></label>
<div id="pricerange"></div>
<input type="text" id="amount" readonly>
</div> -->
<!-- <div class="item-details widget shop-title-h5">
<h5>MANUFACTURE</h5>
<ul>
<li><a href="gird.html#">Calvin Klein (1)</a></li>
<li><a href="gird.html#">Diesel (3)</a></li>
<li><a href="gird.html#">Polo (2)</a></li>
<li><a href="gird.html#">Tommy Hilfiger (3)</a></li>
</ul>
</div> -->
<!-- <div class="item-details widget shop-title-h5">
<h5>COLOR</h5>
<ul>
<li><a href="gird.html#">Black (1)</a></li>
<li><a href="gird.html#">Blue (2)</a></li>
<li><a href="gird.html#">Green (1)</a></li>
<li><a href="gird.html#">Grey (1)</a></li>
<li><a href="gird.html#">Red (2)</a></li>
<li><a href="gird.html#">White (3)</a></li>
</ul>
</div> -->
</div>
<div class="shop-sidebar2">
<!-- <div class="shop-tags item-details2 widget shop-title-h52">
<h5>Tags</h5>
<a href="gird.html#">Shoes</a>
<a href="gird.html#">Bags</a>
<a href="gird.html#">Dress</a>
<a href="gird.html#">What ches</a>
<a href="gird.html#">Belt</a>
<a href="gird.html#">Accessories</a>
<a href="gird.html#">Men</a>
<a href="gird.html#">Women</a>
<a href="gird.html#">Sauget</a>
<a href="gird.html#">Sandal</a>
<a href="gird.html#">Sport</a>
</div> -->
</div>
</div>
<!-- End of Left Sidebar -->
<!-- Site Content -->
<div class="col-md-9">
<!-- Page Title Category -->
<div class="productr-page-title">
<h5>New Arrival</h5>
<span class="et-border"></span>
</div>
<!-- Page Title Category -->
<!-- FILTERS -->
<div class="product-filter">
<div class="grid-filter col-md-4 col-sm-4">
<div><span class="text-muted">Showing <?= count($products);?> from total <?= $total_products; ?> products</span></div>
<!-- <a class="active"><i class="fa fa-th-large"></i></a>
<a href="list.html"><i class="fa fa-list"></i></a> -->
</div>
<div class="col-md-4 col-sm-4 byview">
<!-- <em>View:</em>
<div class="c-selectParent2">
<select>
<option>05</option>
<option>09</option>
<option>10</option>
<option>15</option>
<option>20</option>
<option>50</option>
<option>100</option>
</select>
</div> -->
</div>
</div>
<!-- FILTERS -->
<!-- Product Grid -->
<div class="product-grid">
<div class="row">
<?php foreach ($products as $item) : ?>
<div class="col-md-4 col-sm-6">
<div class="product-singleArea">
<div class="product-img">
<?php
//check if item out of stock
$this->db->select('id_product_details')->from('product_details')->where('product_id', $item->id_products)->where('stock !=', 0);
$count_current_stock = $this->db->get()->num_rows();
?>
<?php if ($count_current_stock == 0) : ?>
<img id="nostockIcon" src="<?= base_url('assets/frontend/img/outofstock.png'); ?>">
<?php endif; ?>
<a href="<?= base_url() . 'product/' . $item->alias; ?>"><div class="overlay"></div></a>
<img class="img-responsive primary_image" src="<?= base_url() . 'uploads/product/small/' . $item->image1; ?>" alt="<?= $item->title; ?>"/>
<?php if($item->image2 != ''): ?>
<img class="img-responsive hover_image" src="<?= base_url() . 'uploads/product/small/' . $item->image2; ?>" alt="<?= $item->title; ?>"/>
<?php endif; ?>
<?php
//get product price and discount price
$this->db->select('price, discounted_price')->from('product_details')->where('product_id', $item->id_products)->limit(1);
$product_price = $this->db->get()->row();
?>
<?php if ($product_price->discounted_price != 0): ?>
<div class="offer-nostock">sale</div>
<?php endif; ?>
<div class="product-cart-area">
<div class="btn-others">
<ul>
<li><a href="<?= base_url() . 'wishlist/add_wishlist/' . $item->id_products; ?>"><i class="fa fa-heart-o"></i></a></li>
<li><a href="<?= base_url() . 'product/' . $item->alias; ?>"><i class="fa fa-expand"></i></a></li>
</ul>
</div>
<!-- <div class="btn-add-to-cart cart-btn"><a href="gird.html#">ADD TO CART</a></div> -->
</div>
</div>
<div class="product-details">
<div class="product-title"><a href="<?= base_url() . 'product/' . $item->alias; ?>"><?= strtoupper($item->title); ?></a></div>
<div class="product-pd">
<?php if ($product_price->discounted_price != 0): ?>
<div class="product-price">Rp <?= number_format($product_price->discounted_price); ?><br><strike style="color:grey; font-size:15px;">Rp <?= number_format($product_price->price); ?></strike></div>
<?php else : ?>
Rp <?= number_format($product_price->price); ?>
<?php endif; ?>
</div>
<!-- <div class="product-review">
<div class="star">
<span class="yes"><i class="fa fa-star"></i></span>
<span class="yes"><i class="fa fa-star"></i></span>
<span class="yes"><i class="fa fa-star"></i></span>
<span class="yes"><i class="fa fa-star"></i></span>
<span class="yes"><i class="fa fa-star"></i></span>
</div>
</div> -->
</div>
</div>
</div>
<?php endforeach; ?>
</div>
<!-- PAGINATION -->
<div class="row">
<div class="col-sm-12">
<?php
//create pagination...
echo '<div style="text-align:center;">' . $this->pagination->create_links() . '</div>';
?>
</div><!-- end class="col-sm-12" -->
</div> <!-- end row -->
</div>
<!-- PRODUCT TABS -->
</div>
</div>
</div>