mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +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
|
|
@ -43,19 +43,6 @@
|
|||
$oDocumentModel = &getModel('document');
|
||||
$output = $oDocumentModel->getDocumentList($args);
|
||||
|
||||
// count eache status, not in trash...
|
||||
$countOutput = $oDocumentModel->getDocumentCountByGroupStatus($args);;
|
||||
if(is_array($countOutput))
|
||||
{
|
||||
$statusCount = array();
|
||||
foreach($countOutput AS $key=>$value)
|
||||
$statusCount[$value->status] = $value->count;
|
||||
|
||||
if(!array_key_exists('PUBLIC', $statusCount)) $statusCount['PUBLIC'] = 0;
|
||||
if(!array_key_exists('SECRET', $statusCount)) $statusCount['SECRET'] = 0;
|
||||
if(!array_key_exists('TEMP', $statusCount)) $statusCount['TEMP'] = 0;
|
||||
}
|
||||
|
||||
// get Status name list
|
||||
$statusNameList = $oDocumentModel->getStatusNameList();
|
||||
|
||||
|
|
@ -66,7 +53,6 @@
|
|||
Context::set('document_list', $output->data);
|
||||
Context::set('status_name_list', $statusNameList);
|
||||
Context::set('page_navigation', $output->page_navigation);
|
||||
Context::set('statusCount', $statusCount);
|
||||
|
||||
// set a search option used in the template
|
||||
$count_search_option = count($this->search_option);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue