mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-03 01:03:28 +09:00
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:
parent
b87aedbd2b
commit
ac9bf88af4
13 changed files with 355 additions and 183 deletions
|
|
@ -155,16 +155,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
$countOutput = $oFileAdminModel->getFilesCountByGroupValid();
|
||||
$validCount = array();
|
||||
if(is_array($countOutput))
|
||||
{
|
||||
foreach($countOutput AS $key=>$value)
|
||||
{
|
||||
$validCount[$value->isvalid] = $value->count;
|
||||
}
|
||||
}
|
||||
|
||||
Context::set('file_list', $file_list);
|
||||
Context::set('document_list', $document_list);
|
||||
Context::set('comment_list', $comment_list);
|
||||
|
|
@ -173,7 +163,6 @@
|
|||
Context::set('total_page', $output->total_page);
|
||||
Context::set('page', $output->page);
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
Context::set('valid_count', $validCount);
|
||||
// Set a template
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('file_list');
|
||||
|
|
|
|||
|
|
@ -6,13 +6,20 @@
|
|||
<h1 class="h1">{$lang->file}</h1>
|
||||
<div class="table">
|
||||
<div class="cnb">
|
||||
<a href="#">All</a>
|
||||
| <a href="{getUrl('search_target','isvalid','search_keyword','Y')}">{$lang->is_valid}({number_format((int)$valid_count['Y'])})</a>
|
||||
| <a href="{getUrl('search_target','isvalid','search_keyword','N')}">{$lang->is_stand_by}({number_format((int)$valid_count['N'])})</a>
|
||||
<a href="{getUrl('', 'module', 'admin', 'act', 'dispFileAdminList')}" <!--@if($search_keyword == '')-->class="active"<!--@end-->>All</a>
|
||||
| <a href="{getUrl('search_target','isvalid','search_keyword','Y')}" <!--@if($search_target == 'isvalid' && $search_keyword == 'Y')-->class="active"<!--@end-->>{$lang->is_valid}</a>
|
||||
| <a href="{getUrl('search_target','isvalid','search_keyword','N')}" <!--@if($search_target == 'isvalid' && $search_keyword == 'N')-->class="active"<!--@end-->>{$lang->is_stand_by}</a>
|
||||
</div>
|
||||
<table width="100%" border="1" cellspacing="0" id="fileListTable">
|
||||
<caption>
|
||||
All({number_format($total_count)})
|
||||
<!--@if($search_keyword == '')-->
|
||||
All
|
||||
<!--@elseif($search_target == 'isvalid' && $search_keyword == 'Y')-->
|
||||
{$lang->is_valid}
|
||||
<!--@elseif($search_target == 'isvalid' && $search_keyword == 'N')-->
|
||||
{$lang->is_stand_by}
|
||||
<!--@end-->
|
||||
({number_format($total_count)})
|
||||
<span class="side"><span class="btn"><a href="#listManager" class="modalAnchor" onclick="getFileList();">{$lang->file_manager}...</a></span></span>
|
||||
</caption>
|
||||
<thead>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue