

<!--<div class="bread_crumb">
	<a href="#">All Categories<img style="padding:0 0 0 5px;" src="<?php echo ConfigUrl::images() ?>breadcrumb_arrow.png" alt="BreadCrumb"></a>
	<a href="#">Electronics & Technology<img src="images/breadcrumb_arrow.png" style="padding:0 0 0 5px;" alt="BreadCrumb"></a>
	</a><a class="brdcrmb_currentpage" >Camera Accessories </a>
	<div class="clear"></div>
	</div>
-->

<h2 class="col-xs-12">Search Results</h2>
<div class="clearfix"></div>

<div class="content_area"> 
<!-- ********* Search Result Listing *********  -->
<?php
if(!empty($this->searchResults)) {
     
    foreach($this->searchResults as $serRow) {  
//        /echopre($serRow);
	$imageUpParts = pathinfo(ConfigUrl::uploadimageroot().$serRow->Image);
	$imageVal   = explode("_",$serRow->Image);
        if(is_array($imageUpParts) && array_key_exists('extension', $imageUpParts)){
            $imageVal[2] = '151x151.'.$imageUpParts['extension'];
        }else{
            $imageVal[2] = '151x151.jpg';
        }
	$imageVal   = implode("_",$imageVal);
	
	$imageLoc   = ConfigUrl::root().'uploads/image/'.$imageVal;
	$imgPath=BASE_PATH.'uploads/image/'.$imageVal;
	if($serRow->Image=="")
	{
		$imageVal ='noimage.png';
		$dimensions ='height=" " width=" "';
	}
	else
	{
		if(file_exists($imgPath))
		{
			 $dimensions ='';
		}
		else
		{
			$imageVal ='noimage.png';
			$dimensions ='height=" " width=" "';
	
		}
	}
	
	$imageLoc   = ConfigUrl::root().'uploads/image/'.$imageVal;
	  
   $serRow->Title;
    $serRow->Description;
	if(isset($serRow->Description)) {
		if(strlen($serRow->Description)>550)
    		$Description=substr($serRow->Description,0,550).'...';
		else
    		$Description= $serRow->Description;

        ?>
<?php
}

   //$serRow->Title;
    //$serRow->Description;
    //$serRow->dPostDate;
	//style="border-bottom:1px solid #ccc;border-bottom: 1px solid #D9D7AE; "
?>
<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 $serRow->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 $serRow->alias ?>"><?php echo $serRow->Title ?></a></h1>
	<p><?php
	
		echo $Description;
	
	?></p>
	 
	
	
	<div class="clear"></div>
	</div>
	
	<div class="clear"></div>
	</div>
	<div class="clear"></div>
</div>
<?php
    }
 ?>

<!--  start paging..................................................... -->
         <?php if($this->pageCount > 1){  ?>

		 <div class="pagination">
           <ul>
       		<li><a href="<?php echo ConfigUrl::base()?>search/index/1/" class="page_first" >First</a></li>
           	<li><a class="page_prev" href="<?php echo ConfigUrl::base()?>search/index/<?php if($this->page != 1) echo $this->page - 1; else echo $this->page; ?>/" >Previous</a></li>
            <li class="pageinfo"><div id="page-info">Page <strong><?php echo $this->page; ?></strong> / <?php echo $this->pageCount; ?></div></li>
         	<li><a class="page_next" href="<?php echo ConfigUrl::base()?>search/index/<?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()?>search/index/<?php echo $this->pageCount; ?>/" >Last</a></li>
            </ul>
		<div class="clear"></div>
		</div>
        <?php
        }

       ?>
<?php
} else {
?>
<div class="col-xs-12" align="center">No Results Found</div>
<?php
}
?>
<!-- ********* Search Result Listing Ends Here *********  -->
 

<!--<div class="pagination">
<ul>
<li><a href="#">Prev</a></li>
<li><a class="pagination_active" href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">6</a></li>
<li><a href="#">7</a></li>
<li><a href="#">8</a></li>
<li><a href="#">9</a></li>
<li><a href="#">Next</a></li>

</ul>

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

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

<div class="clear"></div>
</div>
<!-- Inner Content Wrap End -->


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