
<div id="goods_category" class="colbox">
  <h3>ÉÌÆ··ÖÀà</h3>
  <div class="colboxcontent">
    <ul class="even">
      <?php $_from = $this->_var['goods_category']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'row');$this->_foreach['row_last'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['row_last']['total'] > 0):
    foreach ($_from AS $this->_var['row']):
        $this->_foreach['row_last']['iteration']++;
?>
      <li<?php if (($this->_foreach['row_last']['iteration'] == $this->_foreach['row_last']['total'])): ?> class="last"<?php endif; ?>>
        <h4 class="title"><a href="<?php echo $this->url_rewrite(array('app'=>'category','cate_id'=>$this->_var['row']['cate_id'])); ?>"><?php echo htmlspecialchars($this->_var['row']['cate_name']); ?></a></h4>
          <?php if ($this->_var['row']['children']): ?>
          <?php $_from = $this->_var['row']['children']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'col');if (count($_from)):
    foreach ($_from AS $this->_var['col']):
?>
          <dl class="clearfix">
            <dt><a href="<?php echo $this->url_rewrite(array('app'=>'category','cate_id'=>$this->_var['col']['cate_id'])); ?>"><?php echo htmlspecialchars($this->_var['col']['cate_name']); ?></a> <?php if ($this->_var['col']['children']): ?>:<?php endif; ?> </dt>
            <?php if ($this->_var['col']['children']): ?>
            <?php $_from = $this->_var['col']['children']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'sub');if (count($_from)):
    foreach ($_from AS $this->_var['sub']):
?>
            <dd><a href="<?php echo $this->url_rewrite(array('app'=>'category','cate_id'=>$this->_var['sub']['cate_id'])); ?>"><?php echo htmlspecialchars($this->_var['sub']['cate_name']); ?></a></dd>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
            <?php endif; ?>
          </dl>
          <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
          <?php endif; ?>
        </li>
        <?php if (( $this->_foreach['row_last']['iteration'] % 3 ) == 0): ?></ul><ul class="<?php echo $this->cycle(array('values'=>'odd,even')); ?>"><?php endif; ?>
      <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </ul>
  </div>
  <div class="colbtm"></div>
</div>
