mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
issue 70 file module UX changed
document module develope for document management git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8679 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
99d36039e9
commit
aadeda4f55
23 changed files with 444 additions and 261 deletions
|
|
@ -26,10 +26,10 @@
|
|||
$args->isvalid = Context::get('isvalid');
|
||||
$args->module_srl = Context::get('module_srl');
|
||||
// Get a list
|
||||
$oFileModel = &getAdminModel('file');
|
||||
$oFileAdminModel = &getAdminModel('file');
|
||||
$columnList = array('file_srl', 'upload_target_srl', 'upload_target_type', 'module_srl'
|
||||
, 'source_filename', 'isvalid', 'file_size', 'download_count', 'files.regdate', 'ipaddress');
|
||||
$output = $oFileModel->getFileList($args, $columnList);
|
||||
$output = $oFileAdminModel->getFileList($args, $columnList);
|
||||
// Get the document for looping a list
|
||||
if($output->data) {
|
||||
$oCommentModel = &getModel('comment');
|
||||
|
|
@ -154,6 +154,17 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
$countOutput = $oFileAdminModel->getFilesCountByGroupValid($args);
|
||||
$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);
|
||||
|
|
@ -162,6 +173,7 @@
|
|||
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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue