 <include file="__THEME__/public_header" />

<link href="__APP__/group.css" rel="stylesheet" type="text/css" />
<div id="page-wrap">
     <div id="main-wrap">
         <div class="boxShadow"> 
           <include file="../Public/_mainNav" />

             <div class="mb10 clearfix content-bg">
              
                <include file="../Public/_groupInfo" />
                 
                 <div id="col5" class="st-index-main">
                    <div class="extend-foot">
                        <!--  简单头部 -->
                          <include file="../Public/top" />
                        <!--  简单头部结束  -->
<div class="mod-feed-tab">
                <ul class="inner-feed-nav">
                  <li <eq name='hashtab' value='atme'>class="current"</eq>>
                    <a href="{:U('group/Notice/atme',array('gid'=>$gid))}">@提到我的</a>
                  </li>
                                   <li <eq name='hashtab' value='receive'>class="current"</eq>>
                    <a href="{:U('group/Notice/comment',array('type'=>'receive','gid'=>$gid))}">收到的评论</a>
                  </li>
                  <li <eq name='hashtab' value='send'>class="current"</eq>>
                    <a href="{:U('group/Notice/comment',array('type'=>'send','gid'=>$gid))}">我发出的评论</a>
                  </li>
                </ul>
              </div>
 <!-- 收到的评论 -->
            {eqxue{if($_GET['type'] == 'receive'):?}
            <div class="feed_lists" id="comment-lists">
              <neq name='list.data' value=''>
              <volist name='list.data' id='vo'>
              <dl class="feed_list clearfix" id="comment_list" model-node='comment_list'>
                <dt class="face"><a href="{$vo.user_info.space_url}"><img src="{$vo.user_info.avatar_small}" width="50" height="50"></a></dt>
                <dd class="content">
                  <?php $source_user_at = '@{uid='.$vo['sourceInfo']['source_user_info']['uid'].'|uname='.$vo['sourceInfo']['source_user_info']['uname'].'}：';?>
                  {eqxue{if($vo['sourceInfo']['feedtype'] == 'post' || $vo['sourceInfo']['feedtype'] == 'weiba_post'):?}
                  <p class="hd"><space uid="vo.user_info.uid">{uname}</space>：{$vo.content}
                  </p>
                  <dl class="comment">
                    <dt class="arrow bgcolor_arrow"><em class="arrline">◆</em><span class="downline">◆</span></dt>
                    <dd class="name"><space uid="vo.sourceInfo.source_user_info.uid">@{uname}</space></dd>
                    <dd>{$vo.sourceInfo.source_body|format=true}</dd>
                  </dl>
                  {eqxue{elseif($vo['sourceInfo']['feedtype'] == 'repost'):?}
                  <p class="hd"><space uid="vo.user_info.uid">{uname}</space>：{$vo.content}//{$source_user_at|parse_html}{$vo.sourceInfo.source_body|format=true}
                  </p>
                  {eqxue{else:?}
                  <p class="hd"><space uid="vo.user_info.uid">{uname}</space>：
                    {eqxue{if($vo['is_audit']){?}
                      {$vo.content}
                    {eqxue{}else{?}
                      内容正在审核
                    {eqxue{}?}
                  </p>
                  <dl class="comment">
                    <dt class="arrow bgcolor_arrow"><em class="arrline">◆</em><span class="downline">◆</span></dt>
                    <dd class="name"><space uid="vo.sourceInfo.source_user_info.uid">@{uname}</space></dd>
                    <dd>{$vo.sourceInfo.source_body|format=true}</dd>
                  </dl>
                  {eqxue{endif;?}
                  <p class="info">
                    {eqxue{if($vo['is_audit']){?}
                      <span class="right">
                      {eqxue{if(CheckPermission('core_normal','comment_del')){?}
                        <em class="hover">
                          <a event-args="comment_id={$vo.comment_id}" event-node="group_comment_del" href="javascript:void(0);">{:L('PUBLIC_STREAM_DELETE')}</a>
                          <i class="vline">|</i>
                        </em>
                        {eqxue{}?}
                        <a href="{$vo.sourceInfo.source_url}">{:L('PUBLIC_VIEW')}</a>
                        {eqxue{if(in_array('comment',$weibo_premission)):?}
                        <neq name='_GET.type' value='send'>
                        <i class="vline">|</i><a href="javascript:void(0);" onclick="ui.groupreply({eqxue{echo $vo['comment_id'];?},{$gid});">{:L('PUBLIC_STREAM_REPLY')}</a>
                        </neq>
                        {eqxue{endif;?}
                      </span>
                      <span class="date">{$vo.ctime|friendlyDate}</span>&nbsp;
                      <span>来自网站</span>
                      {eqxue{if($i<=$unread_comment_count){?}
                        <img src="__THEME__/image/icon_new.gif" />
                      {eqxue{}?}
                    {eqxue{}?}
                  </p>
                </dd>
              </dl>
              </volist>
              <else />
              <div class="note">{:L('PUBLIC_COMMENTS_ISNOT')}</div>
              </neq>
              <div id='page' class='page'>{$list.html}</div>
            </div>
            {eqxue{else:?}
            <!-- 发出的评论 -->
            <div class="feed_lists" id="feed-lists">
              <neq name='list.data' value=''>
              <volist name='list.data' id='vo'>
              <dl class="feed_list" id="comment_list" model-node='comment_list'>
                <dt class="face"><a href="{$vo.user_info.space_url}"><img src="{$vo.user_info.avatar_small}"></a></dt>
                <dd class="content">
                  <?php $source_user_at = '@{uid='.$vo['sourceInfo']['source_user_info']['uid'].'|uname='.$vo['sourceInfo']['source_user_info']['uname'].'}：';?>
                  {eqxue{if($vo['sourceInfo']['feedtype'] == 'post' || $vo['sourceInfo']['feedtype'] == 'weiba_post'):?}
                  <p class="hd"><space uid="vo.user_info.uid">{uname}</space>：{$vo.content}{$vo.replyInfo|parse_html}</p>
                  <dl class="comment">
                    <dt class="arrow bgcolor_arrow"><em class="arrline">◆</em><span class="downline">◆</span></dt>
                    <dd class="name">{$vo.sourceInfo.source_user_info.space_link}</dd>
                    <dd>{$vo.sourceInfo.source_body|format=true}</dd>
                  </dl>
                  {eqxue{elseif($vo['sourceInfo']['feedtype'] == 'repost'):?}
                  <p class="hd"><space uid="vo.user_info.uid">{uname}</space>：{$vo.content}//{$source_user_at|parse_html}{$vo.sourceInfo.source_body|format=true}</p>
                  {eqxue{else:?}
                  <p class="hd"><space uid="vo.user_info.uid">{uname}</space>：{$vo.content}</p>
                  <dl class="comment">
                    <dt class="arrow bgcolor_arrow"><em class="arrline">◆</em><span class="downline">◆</span></dt>
                    <dd class="name"><space uid="vo.sourceInfo.source_user_info.uid">@{uname}</space></dd>
                    <dd>{$vo.sourceInfo.source_body|format=true}</dd>
                  </dl>
                  {eqxue{endif;?}
                  <p class="info">
                    <span class="right">
                    {eqxue{if(CheckPermission('core_normal','comment_del')){?}
                      <em class="hover">
                        <a event-args="comment_id={$vo.comment_id}" event-node="group_comment_del" href="javascript:void(0);">{:L('PUBLIC_STREAM_DELETE')}</a>
                        <i class="vline">|</i>
                      </em>
                      {eqxue{}?}
                      <a href="{$vo.sourceInfo.source_url}">{:L('PUBLIC_VIEW')}</a>
                      <neq name='_GET.type' value='send'>
                      <i class="vline">|</i><a href="javascript:void(0);" onclick="ui.groupreply({eqxue{echo $vo['comment_id'];?},{$gid})">{:L('PUBLIC_STREAM_REPLY')}</a>
                      </neq>
                    </span>
                    <span class="date">{$vo.ctime|friendlyDate}</span>&nbsp;
                    <span>来自网站</span>
                  </p>
                </dd>
              </dl>
              </volist>
              <else />
              <div class="note">{:L('PUBLIC_COMMENTS_ISNOT')}</div>
              </neq>
              <div id='page' class='page'>{$list.html}</div>
            </div>
            {eqxue{endif;?}
            
             </div>
                 </div>
             </div>
         </div>    
     </div>
</div>
<script type="text/javascript" src="__APP__/group.js"></script> 
<include file="__THEME__/public_footer" />
<script type="text/javascript" src="__THEME__/js/module.weibo.js"></script>