mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 70 file management UI/UX modify
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8715 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0cf931d098
commit
35d02e8d3e
9 changed files with 146 additions and 65 deletions
|
|
@ -255,6 +255,44 @@
|
|||
if($upload_target_srl && $file_srl) $output = $this->deleteFile($file_srl);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief get file list
|
||||
**/
|
||||
function procFileGetList()
|
||||
{
|
||||
if(!Context::get('is_logged')) return new Object(-1,'msg_not_permitted');
|
||||
// Taken from a list of selected sessions
|
||||
$flagList = $_SESSION['file_management'];
|
||||
if(count($flagList)) {
|
||||
foreach($flagList as $key => $val) {
|
||||
if(!is_bool($val)) continue;
|
||||
$fileSrlList[] = $key;
|
||||
}
|
||||
}
|
||||
|
||||
global $lang;
|
||||
if(count($fileSrlList) > 0) {
|
||||
$oFileModel = &getModel('file');
|
||||
$fileList = $oFileModel->getFile($fileSrlList);
|
||||
|
||||
if(is_array($fileList))
|
||||
{
|
||||
foreach($fileList AS $key=>$value)
|
||||
{
|
||||
$value->human_file_size = FileHandler::filesize($value->file_size);
|
||||
if($value->isvalid=='Y') $value->validName = $lang->is_valid;
|
||||
else $value->validName = $lang->is_stand_by;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$fileList = array();
|
||||
$this->setMessage($lang->no_files);
|
||||
}
|
||||
|
||||
$this->add('file_list', $fileList);
|
||||
}
|
||||
/**
|
||||
* @brief A trigger to return numbers of attachments in the upload_target_srl (document_srl)
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue