[#escape x as (x)!?html]
[#include 'inc_js.html'/]
[#assign commentIndex = 1/] [#macro printComment parent]
[#if parent.parent??] [@printComment parent=parent.parent/] [/#if]
[#if parent.creator.id==0]匿名网友[#else]${parent.creator.username}[/#if]
${commentIndex}[#assign commentIndex = commentIndex+1/]
[#noescape]${bbcode(parent.text)}[/#noescape]
[/#macro]
[#include 'inc_header.html'/] [@CommentPage fid=Param.fid pageSize=20;pagedList]
您的位置: 首页 > 评论

# [#noescape]${bbcode(anchor.title)}[/#noescape]

[#assign info=getInfo(Param.fid)/] [#assign status=info.getCommentStatus(user,groups)/] [#assign conf = site.getConf('com.jspxcms.core.domain.SiteComment')/] [#if status != 0]
[#if pagedList.totalElements > 0]
全部评论 （${info.bufferComments}人评论）

[#list pagedList.content as comment]
- [#if comment.creator.id!=0][/#if][#if comment.creator.id!=0][/#if]
  [#if comment.creator.id==0]匿名网友[#else]${comment.creator.username}[/#if]
  ${comment.creationDate?string("yyyy-MM-dd HH:mm:ss")}
  [#if comment.parent??]
  [#assign commentIndex = 1/] [@printComment parent=comment.parent/]
  [/#if]
  [#noescape]${bbcode(comment.text)}[/#noescape]
  点赞(${comment.score})回复
  [#if status == 1]
  您没有评论的权限
  [#elseif status == 2]
  请登录后再发表评论
  [#elseif status == 3]
  [/#if]
[/#list]

[#include 'page.html'/]
[/#if]
网友评论
[#if status == 1]
您没有评论的权限
[#elseif status == 2]
请登录后再发表评论
[#elseif status == 3]
[/#if]
[/#if]
[#include 'inc_news_right.html'/]
[/@CommentPage] [#include 'inc_friendlink.html'/] [#include 'inc_footer.html'/]
[/#escape]