<?php echo $this->fetch('header.html'); ?>
<div class="row">

<div class="span9">
<?php echo $this->fetch('activity/nav.html'); ?>
<div class="btn-group">
 <a  class="btn <?php if (get ( 'type_id' , 'i' ) == 0): ?>btn-success<?php endif; ?>"  href="<?php echo $this->_var['baseurl']; ?>&d=<?php echo get('d','i');?>">全部</a> 
 <a  class="btn <?php if (get ( 'type_id' , 'i' ) == 1): ?>btn-success<?php endif; ?>" href="<?php echo $this->_var['baseurl']; ?>&type_id=1&d=<?php echo get('d','i');?>">线上</a> 
 <a  class="btn <?php if (get ( 'type_id' , 'i' ) == 2): ?>btn-success<?php endif; ?>" href="<?php echo $this->_var['baseurl']; ?>&type_id=2&d=<?php echo get('d','i');?>">线下</a> 
</div>
<p>
<br />
</p>
<table class="table table-bordered">
<tr>
<td style="width:400px">主题</td>
<td>发起人</td>
<td>开始时间</td>
</tr>
<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<tr>
<td><a href="index.php?m=activity&a=show&id=<?php echo $this->_var['c']['id']; ?>"  ><?php echo $this->_var['c']['title']; ?></a></td>
<td><?php if ($this->_var['c']['nickname']): ?> <?php echo $this->_var['c']['nickname']; ?><?php else: ?>活动天使<?php endif; ?></td>
<td><?php echo date("Y-m-d H:i:s",$this->_var['c']['dateline']); ?></td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
 
<?php if ($this->_var['pagelist']): ?>
<p><?php echo $this->_var['pagelist']; ?></p>
<?php endif; ?>
</div>
<div class="span3">
<?php echo $this->fetch('activity/right.html'); ?>

</div>
</div>

<?php echo $this->fetch('footer.html'); ?>