<style>
.col-main{padding:0;}
</style>
<div class="main container">
    <div class="category-container catrgory-search-container row">
        <div class="page-title-wrap container">
        	<h1 class="product-category"><?php echo $heading_title; ?></h1>
            <span class="items-count"><?php echo $text_critea; ?></span>
            <div id="results">
                <form enctype="multipart/form-data" action="<?php echo $action; ?>" style="width:100;" method="post">
                    <div class="seach-text">
                        <span>
                            <?php echo $entry_search; ?>
                            <?php if ($search) { ?>
                            <input class="input-text form-control" type="text" name="search" value="<?php echo $search; ?>" />
                            <?php } else { ?>
                            <input class="input-text form-control" type="text" name="search" value="<?php echo $text_keywords; ?>"
                            onclick="this.value = ''" />
                            <?php } ?>
                        </span>
                        <span>
                            <?php if (!$description) { ?>
                                <input type="checkbox" name="description" />
                            <?php } else { ?>
                                <input type="checkbox" name="description" CHECKED />
                            <?php } ?>
                            <?php echo $entry_description; ?>
                        </span>
                    </div>
                    <div class="buttons" style="border:none;">
                    	<input type="submit" class="btn btn-primary" value="<?php echo $button_search; ?>" />
                    </div>
                </form>
            </div>
        </div>
        
        <?php if (isset($products)) { ?>
        <div class="category-products">
        	<div class="toolbar clearfix">
                <dl class="sorter">
                    <dt class="col-sm-18"><b><?php echo $text_search; ?></b></dt>
                    <dd class="col-sm-6">
                        <?php echo $entry_page; ?>
                        <form action="<?php echo $action; ?>"  style="display:inline-block;" method="post" enctype="multipart/form-data">            
                            <select name="page"  style="width:80px;" onchange="this.form.submit();">            
                            <?php foreach ($pages as $pages) { ?>            
                            <?php if ($pages['value'] == $page) { ?>            
                            <option value="<?php echo $pages['value']; ?>" SELECTED><?php echo $pages['text']; ?></option>            
                            <?php } else { ?>            
                            <option value="<?php echo $pages['value']; ?>"><?php echo $pages['text']; ?></option>            
                            <?php } ?>            
                            <?php } ?>            
                            </select>            
                        </form>
                    </dd>
                </dl>
            </div>
        </div>
        
        
        <!-- product list start-->
        <div class="col-main col-sm-24">
          <div class="category-products">
              <ul class="product_list">
                <?php foreach ($products as $product) { ?>
                <li class="list_item">
                  <dl class="list_item_inner">
                  		<a class="link-wishlist" href="">
                                <span class="tip">Add to Wishlist</span>
				                <i class="icon-heart"></i>
                         </a>
                         <dt class="img_wrap">
                         	<a  href="<?php echo $product['href']; ?>" class="list_item_img"><img class="product-img" width="270"  alt="<?php echo $product['name']; ?>" src="<?php echo $product['thumb']; ?>"></a>
                         </dt>
                         <dd class="product-description">
                         	<div class="item_title item_title_2">
                            	<a title="<?php echo $product['name']; ?>" href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
                            </div>
                            <div class="clearfix">
                                <div class="item_price"><span class="special-price"><?php echo $product['price']; ?></span></div>
                                <div class="item_actions"><button type="button" title="Add to Cart" class="add2cart" onclick="location='<?php echo $product['href']; ?>'">More Details</button></div>
							</div>
                         </dd>
                  	</dl>
                  </li>
                  <?php }?>
                </ul>
            </div>
            <div class="hei20"></div>
            <div class="toolbar clearfix">
            	<div class="sorter_bottom col-sm-24"><?php echo $text_results; ?></div>
            </div>
          </div>
        <!-- product list start -->
        <?php } else { ?>
        <div class="d"><?php echo $text_error; ?></div>
        <?php }?>
    </div>
    <hr class="delimiter">
</div>

