
<?php if ($this->_var['filter_data']): ?>
<div id="filter_condition"> <span>您的筛选条件如下：</span><br />
  <?php $_from = $this->_var['filter_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'filter');$this->_foreach['filter_data'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['filter_data']['total'] > 0):
    foreach ($_from AS $this->_var['key'] => $this->_var['filter']):
        $this->_foreach['filter_data']['iteration']++;
?>
    <p class="filter_condition_item"><label><?php echo $this->_var['lang'][$this->_var['filter']['name']]; ?>:</label>  <?php if ($this->_var['filter']['name'] == 'color_rgb'): ?> <span style="background-color:<?php echo $this->_var['filter']['value']; ?>" class="color-span"></span> <?php else: ?> <span><?php echo htmlspecialchars($this->_var['filter']['value']); ?></span> <?php endif; ?> <a href="<?php echo $this->_var['url_base']; ?><?php $_from = $this->_var['filter_data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('k', 'item');$this->_foreach['filter_cancel'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['filter_cancel']['total'] > 0):
    foreach ($_from AS $this->_var['k'] => $this->_var['item']):
        $this->_foreach['filter_cancel']['iteration']++;
?><?php if ($this->_var['k'] != $this->_var['key']): ?><?php echo $this->_var['item']['url']; ?><?php endif; ?><?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?><?php echo $this->_var['display_url']; ?>">取消</a></p>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
<?php endif; ?>
<div id="goods_list" class="colbox sortlist"> <script type='text/javascript' src='temp/js/982d27fad180899613f45330b1344bb7.js'></script>
  <?php if ($this->_var['goods_list']['data']): ?>
  <div id="displaymode">
    <p class="quickchanger"> <?php echo $this->html_page_simple(array('from'=>$this->_var['goods_list']['info'],'url'=>$this->_var['url_format'])); ?> </p>
    <span>显示方式 : <a href="<?php echo $this->_var['url_base']; ?><?php echo $this->_var['filte_url']; ?>&amp;show_type=l_l<?php echo $this->_var['url_extra']['sort']; ?><?php echo $this->_var['url_extra']['order']; ?><?php echo $this->_var['page_url']; ?>" title="列表显示"><img src="themes/mall/skin/default/images/btn_display_mode_list<?php echo $this->_var['btn_act']['l_l']; ?>.gif" /></a> <a href="<?php echo $this->_var['url_base']; ?><?php echo $this->_var['filte_url']; ?>&amp;show_type=l_t<?php echo $this->_var['url_extra']['sort']; ?><?php echo $this->_var['url_extra']['order']; ?><?php echo $this->_var['page_url']; ?>" title="表格显示"><img src="themes/mall/skin/default/images/btn_display_mode_grid<?php echo $this->_var['btn_act']['l_t']; ?>.gif" /></a> </span> <span>排序方式 : <a href="<?php echo $this->_var['url_base']; ?><?php echo $this->_var['filte_url']; ?><?php echo $this->_var['url_extra']['show_type']; ?>&amp;sort=store_price&amp;order=<?php echo $this->_var['order']; ?><?php echo $this->_var['page_url']; ?>" title="价格排序"><img src="themes/mall/skin/default/images/btn_sortby_price_<?php echo $this->_var['order']; ?><?php echo $this->_var['btn_act']['store_price']; ?>.gif" /></a> <a href="<?php echo $this->_var['url_base']; ?><?php echo $this->_var['filte_url']; ?><?php echo $this->_var['url_extra']['show_type']; ?>&amp;sort=goods_id&amp;order=<?php echo $this->_var['order']; ?><?php echo $this->_var['page_url']; ?>" title="时间排序"><img src="themes/mall/skin/default/images/btn_sortby_time_<?php echo $this->_var['order']; ?><?php echo $this->_var['btn_act']['goods_id']; ?>.gif" /></a> </span> </div>
  <?php if ($this->_var['show_type'] == 'l_t'): ?>
  <div class="colboxcontent itemgrid">
  <?php $_from = $this->_var['goods_list']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
    foreach ($_from AS $this->_var['goods']):
?>
    <dl class="item">
      <dt class="pic"><a href="<?php echo $this->url_rewrite(array('app'=>'goods','spec_id'=>$this->_var['goods']['spec_id'])); ?>" target="_blank"><img src="<?php echo $this->image(array('file'=>$this->_var['goods']['default_image'],'width'=>'120','height'=>'120')); ?>" alt="<?php echo $this->_var['goods']['orig_name']; ?>" /></a></dt>
      <dd class="name"><a href="<?php echo $this->url_rewrite(array('app'=>'goods','spec_id'=>$this->_var['goods']['spec_id'])); ?>" title="<?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?>" target="_blank" ><?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?></a></dd>
      <dd class="price"><span class="nowprice"><?php echo price_format($this->_var['goods']['store_price']); ?></span> <span class="marketprice"><?php echo price_format($this->_var['goods']['market_price']); ?></span></dd>
      <dd class="sales">已销售 <a href="<?php echo $this->url_rewrite(array('app'=>'goods','spec_id'=>$this->_var['goods']['spec_id'])); ?>#bought_history" target="_blank"><em><?php echo $this->_var['goods']['sales_volume']; ?></em></a> 件</dd>
      <?php if ($this->_var['goods']['messages']): ?>
      <dd class="commended">发表评论 <a href="<?php echo $this->url_rewrite(array('app'=>'goods','spec_id'=>$this->_var['goods']['spec_id'])); ?>#goods_comment" target="_blank"><em><?php echo $this->_var['goods']['messages']; ?></em></a> 人</dd>
     <?php endif; ?>
    </dl>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> </div>
  <?php else: ?>
  <div class="itemlist">
    <ul>
      <?php $_from = $this->_var['goods_list']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)):
    foreach ($_from AS $this->_var['goods']):
?>
      <li>
        <div class="info">
          <p class="pic"><a href="<?php echo $this->url_rewrite(array('app'=>'goods','spec_id'=>$this->_var['goods']['spec_id'])); ?>" target="_blank"><img src="<?php echo $this->image(array('file'=>$this->_var['goods']['default_image'],'width'=>'120','height'=>'120')); ?>" alt="<?php echo $this->_var['goods']['orig_name']; ?>" /></a></p>
          <p class="nowprice"><?php echo price_format($this->_var['goods']['store_price']); ?></p>
          <p class="name"><a href="<?php echo $this->url_rewrite(array('app'=>'goods','spec_id'=>$this->_var['goods']['spec_id'])); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?></a></p>
          <p class="marketprice">市场价 : <span><?php echo price_format($this->_var['goods']['market_price']); ?></span></p>
          <?php if ($this->_var['goods']['messages']): ?>
          <p class="commended">发表评论 : <em><?php echo $this->_var['goods']['messages']; ?></em> 人</p>
          <?php endif; ?>
          <p class="sales">已销售 : <em><?php echo $this->_var['goods']['sales_volume']; ?></em> 件</p>
        </div>
        <div class="otherinfo">
          <p class="city">所在地 : <?php echo $this->_var['goods']['region']; ?></p>
          <p class="store">店铺 : <a href="<?php echo $this->url_rewrite(array('app'=>'store','store_id'=>$this->_var['goods']['store_id'])); ?>" target="_blank"><?php echo htmlspecialchars($this->_var['goods']['store_name']); ?></a> <?php if ($this->_var['goods']['is_certified']): ?><a href="<?php echo $this->url_rewrite(array('app'=>'article','act'=>'builtin','code'=>'certification')); ?>" target="_blank"><img src="data/images/certification.gif" alt="已认证"  title="已认证"/></a><?php endif; ?></p>
          <?php if ($this->_var['goods']['color_names']): ?>
          <p>颜色:<?php $_from = $this->_var['goods']['color_names']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('color_name', 'spec_id');if (count($_from)):
    foreach ($_from AS $this->_var['color_name'] => $this->_var['spec_id']):
?>&nbsp;&nbsp;<a href="<?php echo $this->url_rewrite(array('app'=>'goods','spec_id'=>$this->_var['spec_id'])); ?>"><?php echo htmlspecialchars($this->_var['color_name']); ?></a><?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
          <p> <?php endif; ?>
            <?php if ($this->_var['goods']['spec_names']): ?>
          <p>规格:<?php $_from = $this->_var['goods']['spec_names']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('spec_name', 'spec_id');if (count($_from)):
    foreach ($_from AS $this->_var['spec_name'] => $this->_var['spec_id']):
?>&nbsp;&nbsp;<a href="<?php echo $this->url_rewrite(array('app'=>'goods','spec_id'=>$this->_var['spec_id'])); ?>"><?php echo htmlspecialchars($this->_var['spec_name']); ?></a><?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
          <p> <?php endif; ?>
        </div>
      </li>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </ul>
  </div>
  <?php endif; ?>
  <div class="pagechanger"> <?php echo $this->html_page_links(array('from'=>$this->_var['goods_list']['info'],'url'=>$this->_var['url_format'])); ?> </div>
  <?php endif; ?>
  <?php if (! $this->_var['goods_list']['data']): ?>
  <div class="nodata"> <?php if ($_GET['keywords'] == ''): ?>
    <h1>抱歉，该分类没有商品</h1>
    <?php else: ?>
    <h1>抱歉，没有找到</h1>
    <p> <span>你可以尝试以下方法：</span><ul><li> 缩短或者更改关键字（例：将“电动滑板车”改为“滑板车”后重新搜索）</li></ul> </p>
    <?php endif; ?>
  </div>
  <?php endif; ?>

  <div class="colbtm"></div>
</div>