<p >
<a href="/index.php?m=activity&a=apply" class="btn btn-success btn-large">发起活动</a>
</p>
 
<div class="tab-list-heading"><i class=" icon-star-empty icon-white"></i> 活动推荐</div>
<?php $this->skymvc->loadmodel("activity");$this->assign("actlist",$_ENV["activityModel"]->select(array("where"=>"status=2","limit"=>10))); ?>
<?php $_from = $this->_var['actlist']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<ul class="tab-list">
<li><a href="/index.php?m=activity&a=show&id=<?php echo $this->_var['c']['id']; ?>"><?php echo $this->_var['c']['title']; ?></a></li>

<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>