issue 70 list count modified in content admin

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8854 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-08-24 05:35:15 +00:00
parent b87aedbd2b
commit ac9bf88af4
13 changed files with 355 additions and 183 deletions

View file

@ -32,15 +32,6 @@
$columnList = array('comment_srl', 'document_srl', 'is_secret', 'content', 'comments.member_srl', 'comments.nick_name', 'comments.regdate', 'ipaddress');
$output = $oCommentModel->getTotalCommentList($args, $columnList);
// get total comment count group by is_secret status
$tmp->search_target = Context::get('search_target');
$tmp->search_keyword = Context::get('search_keyword');
Context::set('search_target', '');
Context::set('search_keyword', '');
$countOutput = $oCommentModel->getTotalCommentCount($args);
Context::set('search_target', $tmp->search_target);
Context::set('search_keyword', $tmp->search_keyword);
// set values in the return object of comment_model:: getTotalCommentList() in order to use a template.
Context::set('total_count', $output->total_count);
Context::set('total_page', $output->total_page);
@ -48,7 +39,6 @@
Context::set('comment_list', $output->data);
Context::set('page_navigation', $output->page_navigation);
Context::set('secret_name_list', $secretNameList);
Context::set('countOutput', $countOutput);
// set the template
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('comment_list');

View file

@ -6,14 +6,20 @@
<h1 class="h1">{$lang->comment}</h1>
<div class="table even">
<div class="cnb">
All({number_format($total_count)})
<!--@foreach($countOutput AS $key=>$value)-->
| <a href="{getUrl('search_target','is_secret','search_keyword', $value->is_secret)}">{$secret_name_list[$value->is_secret]}({$value->count})</a>
<!--@end-->
<a href="{getUrl('','act','dispCommentAdminList', 'Y')}" <!--@if($search_keyword == '')-->class="active"<!--@end-->>All</a>
| <a href="{getUrl('search_target','is_secret','search_keyword', 'N')}" <!--@if($search_target == 'is_secret' && $search_keyword == 'N')-->class="active"<!--@end-->>{$secret_name_list['N']}</a>
| <a href="{getUrl('search_target','is_secret','search_keyword', 'Y')}" <!--@if($search_target == 'is_secret' && $search_keyword == 'Y')-->class="active"<!--@end-->>{$secret_name_list['Y']}</a>
</div>
<table width="100%" border="1" cellspacing="0" id="commentListTable">
<caption>
All({number_format($total_count)})
<!--@if($search_keyword == '')-->
All
<!--@elseif($search_target == 'is_secret' && $search_keyword == 'N')-->
{$secret_name_list['N']}
<!--@elseif($search_target == 'is_secret' && $search_keyword == 'Y')-->
{$secret_name_list['Y']}
<!--@end-->
({number_format($total_count)})
<div class="side">
<span class="btn"><a href="#listManager" class="modalAnchor" onclick="getCommentList();">{$lang->comment_manager}...</a></span>
</div>