<div id="store_category" class="colbox">
  <h3>店铺分类</h3>
  <div class="colboxcontent">
    <dl>
      <dt><a href="<?php echo $this->url_rewrite(array('app'=>'store','store_id'=>$this->_var['store_id'],'cate_id'=>'0','cate_name'=>$this->_var['lang']['all_goods'],'show_type'=>$this->_var['show_type'])); ?>">所有商品</a></dt>
      <?php $_from = $this->_var['goods_category']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'parent');if (count($_from)):
    foreach ($_from AS $this->_var['parent']):
?>
      <dt <?php if ($_GET['cate_id'] == $this->_var['parent']['cate_id']): ?>class="selected"<?php endif; ?>><a href="<?php echo $this->url_rewrite(array('app'=>'store','store_id'=>$this->_var['store_id'],''=>'','cate_id'=>$this->_var['parent']['cate_id'],'cate_name'=>$this->_var['parent']['cate_name'],'show_type'=>$this->_var['show_type'])); ?>"><?php echo htmlspecialchars($this->_var['parent']['cate_name']); ?></a></dt>
        <?php $_from = $this->_var['parent']['children']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');if (count($_from)):
    foreach ($_from AS $this->_var['child']):
?>
        <dd <?php if ($_GET['cate_id'] == $this->_var['child']['cate_id']): ?>class="selected"<?php endif; ?>><a href="<?php echo $this->url_rewrite(array('app'=>'store','store_id'=>$this->_var['store_id'],'cate_id'=>$this->_var['child']['cate_id'],'cate_name'=>$this->_var['child']['cate_name'],'show_type'=>$this->_var['show_type'])); ?>"><?php echo htmlspecialchars($this->_var['child']['cate_name']); ?></a></dd>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </dl>
  </div>
  <div class="colbtm"></div>
</div>