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/mesinpolesshinemate.com/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;">Search for "<?= ucwords($keyword); ?>"</li> </ul> </div> </div> </div> </div> <!-- End of Breadcrumbs --> <div class="container"> <div class="row"> <!-- Left Sidebar --> <div class="col-md-3"> <div class="widget-title"> <h5>shop by</h5> </div> <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>Search Product</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 class="col-md-4 col-sm-4 sortby"> <em>Sort by:</em> <div class="c-selectParent1"> <?= form_open('search/get'); ?> <input type="hidden" name="search_product" value="<?= $keyword; ?>"> <select id="sortProductBox" name="sort_product" onchange="this.form.submit();"> <option value="" <?php if ($sort_product_by == '') : ?> selected <?php endif; ?> >Sort Products</option> <option value="price-asc" <?php if ($sort_product_by == 'price-asc') : ?> selected <?php endif; ?> >Price Low to High</option> <option value="price-desc" <?php if ($sort_product_by == 'price-desc') : ?> selected <?php endif; ?> >Price High to Low</option> <option value="name-asc" <?php if ($sort_product_by == 'name-asc') : ?> selected <?php endif; ?> >Product Name A-Z</option> <option value="name-desc" <?php if ($sort_product_by == 'name-desc') : ?> selected <?php endif; ?> >Product Name Z-A</option> </select> <?= form_close(); ?> </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"> <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 if(isset($this->session->userdata('customer')['customer_id'])) : ?> <?php //get product detail id (for 1st detail only) $this->db->select('id_product_details')->from('product_details')->where('product_id', $item->id_products)->limit(1); $id_product_detail = $this->db->get()->row()->id_product_details; //check if customer is a reseller. if reseller use reseller price $this->db->select('reseller_id')->from('customers')->where('id_customers', $this->session->userdata('customer')['customer_id']); $reseller_id = $this->db->get()->row()->reseller_id; //check if reseller price already available (already input by admin) $this->db->select('price')->from('resellers_price')->where('reseller_id', $reseller_id)->where('product_detail_id', $id_product_detail); $count_reseller = $this->db->get()->num_rows(); ?> <?php if($reseller_id != NULL && $count_reseller > 0) : ?> <?php //customer is reseller. use reseller price $this->db->select('price')->from('resellers_price')->where('reseller_id', $reseller_id)->where('product_detail_id', $id_product_detail); $product_price = $this->db->get()->row(); ?> <?php else : ?> <?php //get product price and discount price (retail prices) $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; ?> <?php endif; ?> <?php else : ?> <?php //get product price and discount price (retail prices) $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; ?> <?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(isset($this->session->userdata('customer')['customer_id'])) : ?> <?php if($reseller_id != NULL && $count_reseller > 0) : ?> Rp <?= number_format($product_price->price); ?> <?php else : ?> <?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:13px;">Rp <?= number_format($product_price->price); ?></strike></div> <?php else : ?> Rp <?= number_format($product_price->price); ?> <?php endif; ?> <?php endif; ?> <?php else : ?> <?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:13px;">Rp <?= number_format($product_price->price); ?></strike></div> <?php else : ?> Rp <?= number_format($product_price->price); ?> <?php endif; ?> <?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>