
<div id="goods_filter" class="colbox">
  <h3>商品筛选</h3>
  <div class="colboxcontent">
    <h4 class="first"><span class="collapse_open" onclick="hidden_filter(this,'filter_cate')"></span>商品分类</h4>
    <ul id="filter_cate" class="filter_body">
      <li class="cate_level_top <?php if ($_GET['cate_id'] == '' || $_GET['cate_id'] == '0'): ?>cur_cate<?php endif; ?>"><a href="<?php echo $this->_var['url_base']; ?>&amp;cate_id=0<?php echo $this->_var['filter_data']['keywords']['url']; ?><?php echo $this->_var['filter_data']['brand_id']['url']; ?><?php echo $this->_var['filter_data']['is_best']['url']; ?><?php echo $this->_var['filter_data']['tag_words']['url']; ?><?php echo $this->_var['filter_data']['color_gbk']['url']; ?><?php echo $this->_var['filter_data']['price_range']['url']; ?><?php echo $this->_var['display_url']; ?>">所有分类</a></li>
      <?php $_from = $this->_var['cate_family']['parents']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cate');$this->_foreach['parents_cate'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['parents_cate']['total'] > 0):
    foreach ($_from AS $this->_var['cate']):
        $this->_foreach['parents_cate']['iteration']++;
?>
      <li style="padding-left:<?php echo $this->_foreach['parents_cate']['iteration']; ?>5px;"><a href="<?php echo $this->_var['url_base']; ?>&amp;cate_id=<?php echo $this->_var['cate']['cate_id']; ?><?php echo $this->_var['filter_data']['keywords']['url']; ?><?php echo $this->_var['filter_data']['brand_id']['url']; ?><?php echo $this->_var['filter_data']['is_best']['url']; ?><?php echo $this->_var['filter_data']['tag_words']['url']; ?><?php echo $this->_var['filter_data']['color_rgb']['url']; ?><?php echo $this->_var['filter_data']['price_range']['url']; ?><?php echo $this->_var['display_url']; ?>"><?php echo htmlspecialchars($this->_var['cate']['cate_name']); ?></a></li>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
      <?php if ($this->_var['cate_family']['brothers']): ?>
        <?php $_from = $this->_var['cate_family']['brothers']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'b_cate');$this->_foreach['brother_cate'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['brother_cate']['total'] > 0):
    foreach ($_from AS $this->_var['b_cate']):
        $this->_foreach['brother_cate']['iteration']++;
?>
          <li <?php if ($this->_var['b_cate']['cate_id'] == $this->_var['cate_info']['cate_id']): ?>class="cur_cate" <?php endif; ?>style="padding-left: <?php echo $this->_foreach['parents_cate']['iteration']; ?>5px; margin-left:10px;"><a href="<?php echo $this->_var['url_base']; ?>&amp;cate_id=<?php echo $this->_var['b_cate']['cate_id']; ?><?php echo $this->_var['filter_data']['keywords']['url']; ?><?php echo $this->_var['filter_data']['brand_id']['url']; ?><?php echo $this->_var['filter_data']['is_best']['url']; ?><?php echo $this->_var['filter_data']['tag_words']['url']; ?><?php echo $this->_var['filter_data']['color_rgb']['url']; ?><?php echo $this->_var['filter_data']['price_range']['url']; ?><?php echo $this->_var['display_url']; ?>"><?php echo htmlspecialchars($this->_var['b_cate']['cate_name']); ?></a></li>
          <?php if ($this->_var['b_cate']['cate_id'] == $this->_var['cate_info']['cate_id']): ?>
            <?php $_from = $this->_var['cate_family']['sons']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cate');$this->_foreach['son_cate'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['son_cate']['total'] > 0):
    foreach ($_from AS $this->_var['cate']):
        $this->_foreach['son_cate']['iteration']++;
?>
              <li style="padding-left:<?php echo $this->_foreach['parents_cate']['iteration']; ?>5px; margin-left:20px;"><a href="<?php echo $this->_var['url_base']; ?>&amp;cate_id=<?php echo $this->_var['cate']['cate_id']; ?><?php echo $this->_var['filter_data']['keywords']['url']; ?><?php echo $this->_var['filter_data']['brand_id']['url']; ?><?php echo $this->_var['filter_data']['is_best']['url']; ?><?php echo $this->_var['filter_data']['tag_words']['url']; ?><?php echo $this->_var['filter_data']['color_rgb']['url']; ?><?php echo $this->_var['filter_data']['price_range']['url']; ?><?php echo $this->_var['display_url']; ?>"><?php echo htmlspecialchars($this->_var['cate']['cate_name']); ?></a></li>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
          <?php endif; ?>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
      <?php else: ?>
        <?php $_from = $this->_var['cate_family']['sons']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cate');$this->_foreach['son_cate'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['son_cate']['total'] > 0):
    foreach ($_from AS $this->_var['cate']):
        $this->_foreach['son_cate']['iteration']++;
?>
          <li style="padding-left:<?php echo $this->_foreach['parents_cate']['iteration']; ?>5px; margin-left:20px;"><a href="<?php echo $this->_var['url_base']; ?>&amp;cate_id=<?php echo $this->_var['cate']['cate_id']; ?><?php echo $this->_var['filter_data']['keywords']['url']; ?><?php echo $this->_var['filter_data']['brand_id']['url']; ?><?php echo $this->_var['filter_data']['is_best']['url']; ?><?php echo $this->_var['filter_data']['tag_words']['url']; ?><?php echo $this->_var['filter_data']['color_rgb']['url']; ?><?php echo $this->_var['filter_data']['price_range']['url']; ?><?php echo $this->_var['display_url']; ?>"><?php echo htmlspecialchars($this->_var['cate']['cate_name']); ?></a></li>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
      <?php endif; ?>
    </ul>
    <?php if ($this->_var['brand_arr']): ?>
    <h4><span class="collapse_open" onclick="hidden_filter(this, 'filter_brand')"></span>品牌</h4>
    <ul id="filter_brand" class="filter_body">
      <?php $_from = $this->_var['brand_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'brand');$this->_foreach['filter_brand'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['filter_brand']['total'] > 0):
    foreach ($_from AS $this->_var['brand']):
        $this->_foreach['filter_brand']['iteration']++;
?>
      <li><a href="<?php echo $this->_var['url_base']; ?><?php echo $this->_var['filter_data']['cate_id']['url']; ?><?php echo $this->_var['filter_data']['keywords']['url']; ?>&amp;brand_id=<?php echo $this->_var['brand']['brand_id']; ?><?php echo $this->_var['filter_data']['is_best']['url']; ?><?php echo $this->_var['filter_data']['tag_words']['url']; ?><?php echo $this->_var['filter_data']['color_rgb']['url']; ?><?php echo $this->_var['filter_data']['price_range']['url']; ?><?php echo $this->_var['display_url']; ?>"><?php echo sub_str(htmlspecialchars($this->_var['brand']['brand_name']),12); ?>(<?php echo $this->_var['brand']['num']; ?>)</a></li>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </ul>
    <?php endif; ?>
    <?php if ($this->_var['show_price_range'] || $this->_var['price_range']): ?>
    <h4><span class="collapse_open" onclick="hidden_filter(this, 'filter_price')"></span>价格区间</h4>
    <ul id="filter_price" class="filter_body">
      <?php $_from = $this->_var['price_range']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'price');$this->_foreach['filter_color'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['filter_color']['total'] > 0):
    foreach ($_from AS $this->_var['price']):
        $this->_foreach['filter_color']['iteration']++;
?>
      <li><a href="<?php echo $this->_var['url_base']; ?><?php echo $this->_var['filter_data']['cate_id']['url']; ?><?php echo $this->_var['filter_data']['keywords']['url']; ?><?php echo $this->_var['filter_data']['brand_id']['url']; ?><?php echo $this->_var['filter_data']['is_best']['url']; ?><?php echo $this->_var['filter_data']['tag_words']['url']; ?><?php echo $this->_var['filter_data']['color_rgb']['url']; ?>&amp;min_price=<?php echo $this->_var['price']['left']; ?>&amp;max_price=<?php echo $this->_var['price']['right']; ?><?php echo $this->_var['display_url']; ?>"><?php echo price_format($this->_var['price']['left']); ?> - <?php echo price_format($this->_var['price']['right']); ?></a></li>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
      <li class="btnlist"><form method="get" onsubmit="submit_price('<?php echo $this->_var['url_base']; ?><?php echo $this->_var['filter_data']['cate_id']['url']; ?><?php echo $this->_var['filter_data']['keywords']['url']; ?><?php echo $this->_var['filter_data']['brand_id']['url']; ?><?php echo $this->_var['filter_data']['is_best']['url']; ?><?php echo $this->_var['filter_data']['tag_words']['url']; ?><?php echo $this->_var['filter_data']['color_rgb']['url']; ?><?php echo $this->_var['display_url']; ?>'); return false"><input type="text" id="price_left" size="6" value="<?php echo $_GET['min_price']; ?>" class="sinput" /> - <input type="text" id="price_right" size="6" value="<?php echo $_GET['max_price']; ?>" class="sinput" /> <input type="submit" value="提交" class="sbtn" /></form></li>
    </ul>
    <?php endif; ?>
    <?php if ($this->_var['color_arr']): ?>
    <h4><span class="collapse_open" onclick="hidden_filter(this, 'filter_color')"></span>颜色</h4>
    <ul id="filter_color" class="filter_body">
      <?php $_from = $this->_var['color_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'color');$this->_foreach['filter_color'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['filter_color']['total'] > 0):
    foreach ($_from AS $this->_var['color']):
        $this->_foreach['filter_color']['iteration']++;
?>
      <li<?php if ($this->_var['filter_data']['color_rgb'] && $this->_var['filter_data']['color_rgb']['value'] == $this->_var['color']['color_rgb']): ?> class="selected"<?php endif; ?>>
        <a href="<?php echo $this->_var['url_base']; ?><?php echo $this->_var['filter_data']['cate_id']['url']; ?><?php echo $this->_var['filter_data']['keywords']['url']; ?><?php echo $this->_var['filter_data']['brand_id']['url']; ?><?php echo $this->_var['filter_data']['is_best']['url']; ?><?php echo $this->_var['filter_data']['tag_words']['url']; ?>&amp;color_rgb=<?php echo $this->_var['color']['color_rgb_trim']; ?><?php echo $this->_var['filter_data']['price_range']['url']; ?><?php echo $this->_var['display_url']; ?>" title="<?php echo $this->_var['lang']['colorindex'][$this->_var['color']['color_rgb']]; ?>" style="background-color:<?php echo $this->_var['color']['color_rgb']; ?>">&nbsp;</a>
      </li>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </ul>
    <?php endif; ?>
  </div>
  <div class="colbtm"></div>
</div>