<div class="container">


<div class="row">

	 
<div class="cont_outer">
<?php
if(count($this->resProducts)) {
foreach($this->resProducts as $product)
{
    //echopre($product);
$imageUpParts = pathinfo(ConfigUrl::uploadimageroot().$product->Image);
$imageVal   = explode("_",$product->Image);
$imageVal[2]='151x151.'.$imageUpParts['extension'];
$imageVal   = implode("_",$imageVal);

$imgPath= BASE_PATH.'uploads/image/'.$product->Image;
if($product->Image=="")
{
    $imageVal ='noimage_1.png';
    $dimensions ='height=" " width=" "';
}
else
{
    if(file_exists($imgPath)==false)
    {
         $imageVal ='noimage.png';
         $dimensions ='height=" " width=" "';
    }
    else
    {
        $dimensions ='';
    }
}


$imageLoc   = ConfigUrl::root().'uploads/image/'.$imageVal;


?>
<div class="col-xs-12 col-md-6 col-lg-4">
<div class="cotegory_list_box">
<div class="cotegory_list_box_img">
	<a href="<?php echo ConfigUrl::base()?>index/pagelisting/<?php echo $product->alias; ?>/"><img <?php echo $dimensions;?> src="<?php echo $imageLoc; ?>" alt="CamLence"></a>
</div>

<div class="cotegory_list_box_txt">
	<h1><a href="<?php echo ConfigUrl::base()?>index/pagelisting/<?php echo $product->alias; ?>/"><?php echo $product->Title; ?></a></h1>
	<p><?php
	if(strlen($product->Description)>550)
		echo substr($product->Description,0,550).'...';
	else
		echo $product->Description;
	
	?></p>
	<!--<div class="cotegory_list_box_txt">
		<div class="readmore_mrdiv">
			<a href="<?php echo ConfigUrl::base()?>index/pagelisting/<?php echo $product->alias; ?>/" class="read_more btn_styles1">View Details</a>
		</div>
	<div class="clear"></div>
	</div>-->
<div class="clear"></div>
</div>


<div class="clear"></div>

</div>
<div class="clear"></div>
</div>
<?php }} else { ?>
<div class="no_product">No Product</div>
<?php } ?>
<div class="clear"></div>

</div>



<div class="clear"></div>
<!--  start paging..................................................... -->
         <?php if($this->pageCount > 1){  ?>

		 <div class="pagination">
           <ul>
       		
                <?php if($this->page != 1){?>
                    <li><a href="<?php echo ConfigUrl::base()?>index/viewlisting/<?php echo $this->productId; ?>/1/" class="page_first" >First</a></li>
                    <li><a class="page_prev" href="<?php echo ConfigUrl::base()?>index/viewlisting/<?php echo $this->productId; ?>/<?php if($this->page != 1) echo $this->page - 1; else echo $this->page; ?>/" >Previous</a></li>
                <?php
                }?>
            <li class="pageinfo"><div id="page-info">Page <strong><?php echo $this->page; ?></strong> / <?php echo $this->pageCount; ?></div></li>
            <?php if($this->pageCount != $this->page){?>
                    <li><a class="page_next" href="<?php echo ConfigUrl::base()?>index/viewlisting/<?php echo $this->productId; ?>/<?php if($this->pageCount != $this->page) echo  $this->page + 1; else echo $this->pageCount; ?>/" >Next</a></li>
                    <li><a class="page_last" href="<?php echo ConfigUrl::base()?>index/viewlisting/<?php echo $this->productId; ?>/<?php echo $this->pageCount; ?>/" >Last</a></li>
             <?php
                }?>
            
            </ul>
		<div class="clear"></div>
		</div>
        <?php
        }

       ?>


<div class="clear"></div>
</div>



<div class="clear"></div>
</div>

</div>
</div>