<style>
.col-main{padding:0;}
</style>
<div class="main container">
  <div class="clearfix category-container row">
    <div class="page-title-wrap container">
            <h1 class="product-category">Top Sellers</h1>
            <span class="items-count">1026 Item(s)</span>
      </div>
        <!-- product list start-->
          <div class="col-main col-sm-24">
            <div class="category-products">
                  <ul class="product_list">
                    <?php foreach ($top_sellers_array2 as $product) { ?>
                      <li class="list_item">
                        <dl class="list_item_inner">
                          <a href="<?php echo  $product['href_addtowishlist']; ?>" class="link-wishlist">
                            <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['title']; ?>" href="<?php echo $product['href']; ?>"><?php echo $product['title']; ?></a> </div>
                              <div class="clearfix">
                                  <div class="item_price">
                                      <p><span class="old-price"><?php echo $product['market_price']; ?></span><span class="special-price"><?php echo $product['price']; ?></span></p>
                                  </div>
                                  <!--<div class="item_review">
                                        <div class="rating rating_2">
                                            <span class="nostar nostar_category">
                                                <span style="width:90%;" class="nstar nstar_category"></span>
                                            </span>
                                        </div>
                                        (<?php echo $product['review_info']['count'];?>)<span class="line">|</span>Orders (<?php echo $product['sold'];?>) 
                                  </div>-->
                              </div>
                          </dd>
                          </dl>
                        </li>
                      <?php }?>
                  </ul>
              </div>
            <div class="hei20"></div>
            <div class="toolbar clearfix">
                  <div class="sorter_bottom">
                      <div class="col-sm-8 left"><b><?php echo $text_results; ?></b></div>
                      <div class="col-sm-16 right">
                         <a href="<?php echo $action . '&page=' . (($page>1)?($page-1):$page); ?>"><?php echo 'Previous'?></a>                     
                        <?php foreach ($pages as $f_page) { ?>        
                        <?php if ( $f_page['value'] < ($page - 2) ) {continue; } ?>
                        <?php if ( $f_page['value'] > ($page + 4) ) {continue; } ?>                                               
                        <?php if ($f_page['value'] == $page) { ?>
                        <b class="selected"><?php $x = explode(" ",$f_page['text']);echo $x[0]; ?></b>
                        <?php } else { ?>
                          <a class="page_btn" href="<?php echo $action . '&page=' . $f_page['value']; ?>"><?php $x = explode(" ",$f_page['text']);echo $x[0]; ?></a></td>
                        <?php } ?>   
                        <?php } ?>                       
                        <a class="page_btn" href="<?php echo $action . '&page=' . (($page<count($pages))?($page+1):$page); ?>"><?php echo 'Next'?></a>                     
                        <label>Go to Page</label>
                        <select onchange="return SelectPage(this.value)" style="width:50px;">
                            <?php foreach ($pages as $f_page){?>
                            <option value="<?php echo $f_page['value']?>" <?php if ($f_page['value'] == $page){echo 'selected';}?>><?php echo $f_page['value']?></option>
                            <?php };?>
                        </select>
                        <script type="text/javascript">
							function SelectPage(page) {
								window.location.href="<?php echo $action; ?>&page=" + page;
							}
						</script>
                      </div>
                  </div>
            </div>          
            <div class="hei10"></div>
            <!-- product list start -->             
       </div>
    </div>
    <hr class="delimiter">
</div>