{extend name="admin/layout" /} {block name="content"}
评论审核 ({$total})
{empty name="comments"} {/empty} {volist name="comments" id="c"} {php} $displayName = getUserDisplayName($c['couser'] ?? '', $c['coname'] ?? ''); $safeText = sanitizeHtml((string)($c['cotext'] ?? '')); foreach (($c['keyword_hits'] ?? []) as $hit) { $safeHit = sanitizeHtml($hit); if ($safeHit !== '') { $safeText = str_replace($safeHit, '' . $safeHit . '', $safeText); } } $history = $c['edit_history'] ?? []; {/php} {/volist}
ID 评论者资料 内容 文章 状态 时间 操作
暂无评论
{$c.id}
{$displayName}
IP: {$c.ip|default=''}
{notempty name="c.coemail"}
Email: {$c.coemail}
{/notempty} {notempty name="c.courl"}
URL: {$c.courl}
{/notempty}
{$safeText|raw}
{notempty name="c.keyword_hits"}
{volist name="c.keyword_hits" id="hit"} 命中:{$hit} {/volist}
{/notempty} {notempty name="history"}
编辑历史 {:count($history)} 条 {volist name="history" id="h"}
{$h.created_at} / {$h.admin_user}
原文:{:strCut($h.old_text, 80)}
{/volist}
{/notempty}
查看文章 {if condition="isFlag($c['comaud'] ?? 0) === 0"} 待审核 {elseif condition="isFlag($c['comaud'] ?? 0) === 1"} 已通过 {else} 已拒绝 {/if} {$c.cotime}
{if condition="isFlag($c['comaud'] ?? 0) !== 1"} {/if} {if condition="isFlag($c['comaud'] ?? 0) !== -1"} {/if}
{php}$totalPages = ceil($total / $pageSize);{/php} {if condition="$totalPages > 1"} {/if}
{/block} {block name="extraJs"} {/block}