From 2d16febcff63fe73f65b62fe5afa161cdcae8cf0 Mon Sep 17 00:00:00 2001 From: devjin Date: Thu, 30 Aug 2012 12:19:30 +0000 Subject: [PATCH] issue 2083 add voted_count and blamed_count in comment list. git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11128 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/comment/comment.admin.view.php | 2 +- modules/comment/tpl/comment_list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/comment/comment.admin.view.php b/modules/comment/comment.admin.view.php index 16c266f62..bbf7ce37d 100644 --- a/modules/comment/comment.admin.view.php +++ b/modules/comment/comment.admin.view.php @@ -44,7 +44,7 @@ // get a list by using comment->getCommentList. $oCommentModel = &getModel('comment'); $secretNameList = $oCommentModel->getSecretNameList(); - $columnList = array('comment_srl', 'document_srl', 'is_secret', 'status', 'content', 'comments.member_srl', 'comments.nick_name', 'comments.regdate', 'ipaddress'); + $columnList = array('comment_srl', 'document_srl', 'is_secret', 'status', 'content', 'comments.member_srl', 'comments.nick_name', 'comments.regdate', 'ipaddress', 'voted_count', 'blamed_count'); $output = $oCommentModel->getTotalCommentList($args, $columnList); $oCommentModel = &getModel("comment"); diff --git a/modules/comment/tpl/comment_list.html b/modules/comment/tpl/comment_list.html index 2280dd601..dde204367 100644 --- a/modules/comment/tpl/comment_list.html +++ b/modules/comment/tpl/comment_list.html @@ -75,7 +75,7 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}'; {$comment}{$lang->no_text_comment} {$val->nick_name} - 0/0 + {number_format($val->get('voted_count'))}/{number_format($val->get('blamed_count'))} {(zdate($val->regdate,"Y-m-d\nH:i:s"))} {$val->ipaddress} {$secret_name_list['Y']}{$secret_name_list['N']}