<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php $this->load->view(TPL_FOLDER."header");?>
<div class=ad950>
  <script type="text/javascript" src="<?php echo site_url(CTL_FOLDER.'feed/ads/8');?>"></script>
</div>
<div class="list">
  <div class="list_right">
    <!-- 当前位置 -->
    <div class="list_place">
      <div class="list_place_ioc"><img src="{tpl_path}images/ioc_02.gif" align="absmiddle"/></div>
      <div class="list_place_nav">您的位置:<a href="<?php echo base_url();?>">首页</a> <?php echo $nav;?> &nbsp;&nbsp; 搜索到相关店铺<span class="lgoods_list_num"><?php echo $total;?></span>家</div>
    </div>
    <div class="list_choose">
      <ul>
        <li id="this_choose" style="font-weight:bold; color:#fff;">所有店铺</li>
      </ul>
    </div>
    <!-- 高级选项 -->
    <div class="list_look" style="height:25px">
      <table width="98%" border="0" cellspacing="0" cellpadding="5" style="margin:0px 10px">
        <tr>
          <th width="50%" align="left">店铺标题</th>
          <th width="17%" align="left">宝贝总数</th>
          <th width="18%" align="left">商家类型</th>
          <th width="15%" align="left">商家信用</th>
        </tr>
      </table>
    </div>
    <!-- 商品列表 -->
    <div class="list_goodslist">
      <?php 
		if(isset($query)){
	?>
      <table width="98%" border="0" cellspacing="0" cellpadding="5" class="ui-tx-tablelist">
        <?php foreach($query as $row){?>
        <tr>
          <td width="50%"><a href="<?php echo $row['click_url'];?>" target="_blank" title="<?php $row['shop_title'];?>"><?php echo $row['shop_title'];?></a></td>
          <td width="17%"><?php echo $row['auction_count'];?></td>
          <td width="18%"><?php if($row['shop_type'] == 'B'){?>
            <img src="{tpl_path}images/common/level_20.gif" alt="商城卖家" />
            <?php }else{?>
            普通卖家
            <?php }?></td>
          <td width="15%"><?php echo get_level_img($row['seller_credit']);?> </td>
        </tr>
        <?php }?>
      </table>
      <?php }?>
    </div>
    <!-- 列表分页 -->
    <div id="pages"> <?php echo $paginate;?> </div>
  </div>
  <div class="list_left">
    <!-- 热销商品 -->
    <div class="list_hot">
      <div class="hot_head"><span>推荐商家</span></div>
      <!--列表模块-->
      <div class="hot_goods">
        <div class="index_shop">
          <ul style="width:188px">
            <?php 
		if(isset($shop_top)){
		foreach($shop_top as $row){
		?>
            <li style="background-position:left 7px"><a href="<?php echo $row['click_url'];?>" target="_blank" title="<?php $row['shop_title'];?>"><?php echo strcut($row['shop_title'],39);?></a> <br />
              卖家信用：<?php echo get_level_img($row['seller_credit']);?> </li>
            <?php 
			}
		}?>
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>
<?php $this->load->view(TPL_FOLDER."footer");?>
