<include file="__THEME__/public_header" />
<link rel="stylesheet" href="__APP__/event.css" type="text/css" media="screen" charset="utf-8" />
<link href="__APP__/js/pagination/pagination.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__APP__/js/event.js"></script>
<div class="breadcrumb"> <a href="{:U('classroom')}">首页</a>&gt;<a href="{:U('event')}">活动</a>&gt;
    <a>{$title}</a>
</div>

<!--main-->
<div class="wenda clearfix position-rt" >


<!--中间内容-->
<div class="fl wenda-main event-member" style="width:880px;margin-left:0;padding:20px;">
       <div class="page_title">
          <h2>{$title}</h2>
          <div class="fr"><span class="join">参加（{$joinCount}）</span><span class="follow">关注（{$attentionCount}）</span></div>
       </div> 
       
        <div class="page_nav clearfix">
          <h2>活动成员（共{$joinCount}人）</h2>
          <div class="members">
              <ul>
                  <volist name="data" id="vo">
                    <li>
                      <p><space uid="vo.uid" class="avatar">{uavatar}</space></p>
                      <p class="name"><space uid="vo.uid" class="name">{uname}</space></p>
                    </li>
                  </volist>  
              </ul>
          </div>
       </div>        
      
       <div class="clearfix"></div>
        <div class="page_nav clearfix">
         <h2>活动关注（共{$attentionCount}人）</h2>      
          <div class="members">
              <ul>
                   <volist name="gz.data" id="vo">
                    <li>
                      <p><space uid="vo.uid" class="avatar">{uavatar}</space></p>
                      <p class="name"><space uid="vo.uid" class="name">{uname}</space></p>
                    </li>
                  </volist>  
              </ul>
          </div>
       </div>      
            
                <div class="clearfix"></div>
        <div class="page_nav clearfix">
         <h2>活动讨论</2>      
          <div class="feed_list" style="border:1px solid #EAEAEA;padding:20px;padding-top:10px;">
            {:W('Comment',array('tpl'=>'detail', 'table'=>'event', 'row_id'=>$id, 'canrepost'=>'0', 'cancomment'=>1, 'cancomment_old'=>0, 'showlist'=>1, 'limit'=>'20', 'order'=>'DESC'))}
          </div>  
       </div>    
            
           
            
</div>

    <!----------右边------------->
<include file="../Public/_right_member" />
</div>

<include file="__THEME__/public_footer" />























<div class="content_holder" style="display:none">
<div class="content no_bg boxShadow">
  <!-- 内容 begin  -->
<include file="../Public/_mainNav" />
  <div class="main no_l">
    <!-- 画布 begin  -->
    <div class="mainbox clearfix"> <include file="../Public/_isHotList" />
      <div class="mainbox_appC">
        <div class="page_title">
          <!-- page_title begin -->
          <h2>{$title}</h2>
        </div>
        <!-- page_title end -->
        <div class="tab-menu">
          <!-- 切换标签 begin  -->
          <ul>
            <li><a href="{:U('/Index/eventDetail',array('id'=>$id,'uid'=>$uid))}"><span>活动</span></a></li>
            <li class="current"><a href="{:U('//member',array('id'=>$id))}"><span>成员</span></a></li>
            <!-- <li><a href="__URL__/photos/id/{$id}/uid/{$uid}"><span>照片</span></a></li> -->
          </ul>
        </div>
        <!-- 切换标签 end  -->
        <div class="MenuSub"> <a href="{:U('//member',array('id'=>$id))}" 
          {eqxue{ if (!in_array($_GET['action'],array('join','att','verify'))) {echo "class='fB'";}else{echo "class='cGray'";}?}
          >全部成员</a>┊ <a href="{:U('//member',array('id'=>$id,'action'=>'join'))}" 
          {eqxue{ if (isset( $_GET['action'] ) && 'join' == $_GET['action']) {echo "class='fB'";}else{echo "class='cGray'";}?}
          >（{$joinCount}）人参加</a>┊ <a href="{:U('//member',array('id'=>$id,'action'=>'att'))}" 
          {eqxue{ if (isset( $_GET['action'] ) && 'att' == $_GET['action']) {echo "class='fB'";}else{echo "class='cGray'";}?}
          >（{$attentionCount}）人关注</a>
          <?php if( $uid == $mid ){ ?>
          ┊ <a href="{:U('//member',array('id'=>$id,'action'=>'verify'))}" 
          {eqxue{ if (isset( $_GET['action'] ) && 'verify' == $_GET['action']) {echo "class='fB'";}else{echo "class='cGray'";}?}
          >（{$verifyCount}）人待审核</a>
          <?php }?>
        </div>
        <div class="flist" style="overflow:hidden;">
          <ul>
            <volist name="data" id="vo">
              <li class="event_user_{$vo['id']} lineD_btm" style="overflow:hidden;_zoom:1" >
                <div class="left" style="width: 60px;"><span class="headpic50"><space uid="vo.uid" class="fn">{uavatar}</space></span></div>
                <div style=" margin-left:60px; height:50px;">
                  <h3>
                    <div class="right fn f12px">
                      <?php if( 'admin' != $vo['action'] && $uid == $mid  ){ ?>
                      <a href="javascript:adminDelAction( {$id},{$vo['uid']},'{$vo['action']}',{$optsId});">删除成员</a><br />
                      <?php } ?>
                      <?php if( isset( $verifyCount ) && $vo['status'] == 0 ){ ?>
                      <a href="javascript:agree( {$vo['id']},{$id},{$uid},{$vo['uid']});">同意申请</a>
                      <?php }?>
                    </div>
                    <space uid="vo.uid">{uname}</space><span class="f12px fn cRed">（{$vo['role']}）</span></h3>
                  <?php if( $uid == $mid || $vo['uid'] == $mid ){ ?>
                  <p><span class="cGray2">联系方式：</span><?php echo $vo['contact']['email']; ?></p>
                  <?php } ?>
                </div>
              </li>
            </volist>
            <div class="c"></div>
          </ul>
          <!-- fphotolist end  -->
          <div style="height:10px;"></div>
          <div id="Pagination" class="page">{$html}</div>
        </div>
      </div>
      <div class="c"></div>
    </div>
  </div>
  <!-- 右侧内容 end  -->
  <div class="c"></div>
</div>
</div>
