<!--分类导航-->
<?php $this->skymvc->loadmodel("category");$this->assign("tag_nav",$_ENV["categoryModel"]->tag_nav(1)); ?>
<?php if ($this->_var['tag_nav']['child']): ?>
 
<div style="border:1px solid #ccc; border-radius:5px; margin-bottom:10px; "> 

<a href="/index.php?m=list&a=default&catid=<?php echo $this->_var['tag_nav']['id']; ?>" class="tab-list-heading" ><i class="icon-star icon-white"></i><?php echo $this->_var['tag_nav']['cname']; ?></a> 
<ul class="tab-list">
<?php $_from = $this->_var['tag_nav']['child']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<li <?php if ($this->_var['c']['id'] == get ( 'catid' )): ?> class="active"<?php endif; ?>><a href="/index.php?m=list&catid=<?php echo $this->_var['c']['id']; ?>" class="red_f"><?php echo $this->_var['c']['cname']; ?></a></li>
 
<?php if ($this->_var['c']['child']): ?>
<?php $_from = $this->_var['c']['child']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'd');if (count($_from)):
    foreach ($_from AS $this->_var['d']):
?>
<li><a href="/index.php?m=list&a=default&catid=<?php echo $this->_var['d']['id']; ?>" >|__<?php echo $this->_var['d']['cname']; ?></a></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>

<?php endif; ?>
<!--End 分类导航-->