File: /home/barbeatleanalyti/www/m.beatleanalytics.com/application/views/customer/product_list.php
<?php
include ('include/header.php');
include ('include/search.php');
//print_r($productList);
?>
<!-------product------->
<div class="container product">
<?
for($i=0; $i<count($productList); $i++) {
$name = $productList[$i]->name;
if(strlen($productList[$i]->name) > 20){
$name = substr($productList[$i]->name,0,20)."..";
}
?>
<div class="col-xs-6 col-md-6 pro-list">
<div class="prod-info-main prod-wrap clearfix">
<div class="col-md-5 col-sm-12 col-xs-12">
<div class="product-image">
<!--- <img src="<?php echo base_url();?>/assets/products/<?php echo $productList[$i]->prod_image; ?>" alt="Scott Stevens" class="img-responsive rotprod img-responsive" />
---->
<a class="example-image-link"
href="<?php echo base_url();?>/assets/products/<?php echo $productList[$i]->prod_image; ?>" data-lightbox="example-1"><img class="example-image" src="<?php echo base_url();?>/assets/products/<?php echo $productList[$i]->prod_image; ?>" alt="image-1" /></a>
<?php
//$this->Customer_model->fetchProductsImage($productList[$i]->prod_image);
?>
<!--<span class="tag2 hot">
HOT
</span> -->
</div>
</div>
<div class="col-md-7 col-sm-12 col-xs-12">
<div class="product-deatil">
<h5 class="name">
<a href="#">
<?php
echo $name;
?>
</a>
</h5>
<p class="price-container">
<span>
<?php echo $productList[$i]->points; ?></span>
<!--- <button type="button" class="btn btn-info buy-now">Buy Now</button>-->
<a href="orderprocess/<?php echo $productList[$i]->productid; ?>" class="btn btn-info buy-now" role="button">Redeem</a>
</p>
<!--
<div class="Add-cart">
<button type="button" class="btn btn-info">Buy Now</button>
</div>---->
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<br><br><br>
<!-------product------->
<script>
$(window).load(function(){
loadingFade();
});
</script>
<?php
include ('include/footer.php');
?>