<ul class="hd-list fl clearfix">
{eqxue{ if(!empty($data)): ?}
<volist name="data" id="vo">
    <li><a href="{:U('event/Index/eventDetail', array('id'=>$vo['id'], 'uid'=>$vo['uid']))}" class="img"><img src="{$vo['cover']}"></a>
    <div class="fr hd-list-r">
        <h2><a href="{:U('event/Index/eventDetail', array('id'=>$vo['id'], 'uid'=>$vo['uid']))}">{$vo['title']}</a></h2>
        <p>活动时间：{$vo['time']}</a></p>
        <p>活动时间：{$vo['address']} {$vo['area']}</a></p>
        <p class="fqr">发起人：{$vo['user_info']['space_link']}</p>
        <p style="margin-top:10px;"><span class=" mr10"><?php if($vo['opts']['allow'] && $vo['uid'] == $mid) echo "待审人数（".$vo['verifyCount']."）";?><a href="{:U('event/Index/member',array('id'=>$vo['id'],'action'=>'join'))}">参加人数（{$vo['joinCount']}）</a> 关注人数（{$vo['attentionCount']}）</span> <span style="float:right">
        {eqxue{ if( $vo['eTime']>time()){ ?}     
          {eqxue{ if( $vo['follow'] ){ ?}
          
                    
                         {eqxue{ if( $vo['canJoin'] ){ ?}
                                 <span class="detail_joinIn_{$vo[id]}">                               

                                <!-- 判断名额 -->
              
                                      {eqxue{ if( $vo['limitCount'] >0 ){ ?}
                                      <a href="javascript:EventAction( {$vo['id']},{$vo['opts']['allow']},'joinIn',1)" class="joinStatus canjoin" rel="我要报名" norel="我要报名">我要报名</a>
                                      {eqxue{ }else{ ?}
                                              <a href="javascript:;" class="joinStatus nojoin" rel="名额已满" norel="名额已满">名额已满</a>
                                      {eqxue{ } ?}  
                                      
                                 </span>     
                                <!-- 判断名额结束 -->
                        {eqxue{ }else if( false == $vo['admin'] ){ ?}
                               <!-- 判断是否需要审核 -->
                                 <span class="detail_joinIn_{$vo[id]}">

                                          <?php if( $vo['opts']['allow'] == 1 && $vo['hasMember'] != 1){ ?>
                                             <a href="javascript:EventDelAction( {$vo['id']},{$vo['opts']['allow']},'joinIn' ,1)" rel="取消申请" norel="等待审核" class="joinStatus nojoin">等待审核</a>
                                          <?php }else if($GLOBALS['ts']['mid']){ ?>
                                             <a  class="joinStatus nojoin" href="javascript:EventDelAction( {$vo['id']},null,'joinIn' ,1)"  rel="取消报名" norel="已报名">已报名</a>
                                          <?php }else{ ?>

                                     <a href="javascript:EventAction( {$vo['id']},{$vo['opts']['allow']},'joinIn',1)" class="joinStatus canjoin" rel="我要报名" norel="我要报名">我要报名</a>
                                     <?php }?>
                                  </span>        
                               <!-- 判断是否需要审核结束 -->
                        {eqxue{ } ?}        
            
          {eqxue{ } ?}
    
         
           {eqxue{ }else{ ?}
                    <span  class="joinStatus nojoin" style="cursor:default"  rel="活动结束" norel="活动结束">活动结束</span>
         {eqxue{ } ?}
                              

         </span>
        </p></div>
        <?php if($vo['eTime']>time()){?>
            <?php if( $vo['admin'] ){ ?>
              <div class="admincp">
                <a href="javascript:endEvent( '{$vo['id']}' )">提前结束</a>
                <a href="javascript:location.href='{:U('/Index/edit',array('id'=>$vo['id']))}';">编辑活动</a>
                <a href="javascript:delEvent( '{$vo['id']}' )">删除活动</a>
              </div>  
           <?php } ?> 
         <?php } ?> 
</li>
</volist>
{eqxue{ else: ?}
<span class="activity_reminder" style="font-size:14px;">暂无此类活动</span>
{eqxue{ endif; ?}
</ul>





<script>
$('.joinStatus').mouseenter(function(){
					$(this).html($(this).attr('rel'));
			 }).mouseleave(function(){
					$(this).html($(this).attr('norel'));
             });


</script>



<div class="clearfix"></div>

<div id="Pagination" class="page">{$html}</div>