issue 70 bug fix in content menu

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8790 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-08-17 08:19:22 +00:00
parent c244091f26
commit b3eb4ac938
6 changed files with 10 additions and 9 deletions

View file

@ -33,7 +33,13 @@
$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);

View file

@ -11,8 +11,6 @@
<!--@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="#">{$lang->accusation}(#)</a>
| <a href="#">{$lang->trash}(#)</a>
<div class="side">
<span class="btn"><a href="#listManager" class="modalAnchor" onclick="getCommentList();">{$lang->comment_manager}...</a></span>
</div>