Changeset 1997 for sandbox/filemanager/inc/class.uifilemanager.inc.php
- Timestamp:
- 02/10/10 15:22:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/filemanager/inc/class.uifilemanager.inc.php
r1929 r1997 80 80 var $sortby; 81 81 var $messages; 82 var $limit; //for paging (paginacao) 83 var $offset; //for paging (paginacao) 82 84 83 85 var $now; … … 176 178 if($test[mime_type]!='Directory') 177 179 { 178 179 180 $this->bo->vfs->override_acl = 1; 180 181 … … 464 465 else 465 466 { 466 $this->readFilesInfo();467 //$this->readFilesInfo(); 467 468 $this->fileListing(); 468 469 } … … 505 506 'string' => $this->path, 506 507 'relatives' => array(RELATIVE_NONE) 508 )); 509 $return['files_count'] = $this->bo->vfs->count_files(array( 510 'string' => $this->path, 507 511 )); 508 512 $quota = $this->bo->vfs->get_quota(array( … … 537 541 $tuple['icon'] = $this->mime_icon($files['mime_type']); 538 542 $tuple['type'] = $files['type']; 539 $tuple['creat d'] = $this->vfs_functions->dateString2timeStamp($files['created']);540 $tuple['modif d'] = $this->vfs_functions->dateString2timeStamp($files['modified']);543 $tuple['created'] = $this->vfs_functions->dateString2timeStamp($files['created']); 544 $tuple['modified'] = $this->vfs_functions->dateString2timeStamp($files['modified']); 541 545 $tuple['size'] = $files['size']; 542 $tuple['mime '] = $files['mime_type'];546 $tuple['mime_type'] = $files['mime_type']; 543 547 $tuple['pub'] = $files['type']; 544 $tuple['creat dby'] = $GLOBALS['phpgw']->accounts->id2name($files['createdby_id']);545 $tuple['modif dby'] = $files['modifiedby_id']?$GLOBALS['phpgw']->accounts->id2name($files['modifiedby_id']):'';548 $tuple['createdby_id'] = $GLOBALS['phpgw']->accounts->id2name($files['createdby_id']); 549 $tuple['modifiedby_id'] = $files['modifiedby_id']?$GLOBALS['phpgw']->accounts->id2name($files['modifiedby_id']):''; 546 550 $tuple['owner'] = $GLOBALS['phpgw']->accounts->id2name($files['owner_id']); 547 $tuple['comm '] = $files['comment'];548 $tuple['vers '] = $files['version'];551 $tuple['comment'] = $files['comment']; 552 $tuple['version'] = $files['version']; 549 553 $output[] = $tuple; 550 554 551 555 } 552 556 // TODO Order files directly into SQL 553 foreach ($output as $key => $row) {557 /*foreach ($output as $key => $row) { 554 558 $temp[$key] = strtoupper($row[$this->criteria]); 555 559 } … … 557 561 array_multisort($temp, SORT_ASC, $output); 558 562 else 559 array_multisort($temp, SORT_DESC, $output); 563 array_multisort($temp, SORT_DESC, $output);*/ 560 564 $return['files'] = $output; 561 565 $return['quota']['quotaSize'] = ($quota*1024*1024); … … 581 585 $this->groups_applications[$value['account_name']] = $applications->read_account_specific(); 582 586 } 587 583 588 584 589 // selectbox for change/move/and copy to … … 706 711 else 707 712 { 713 /*$this->limit = $this->limit ? $this->limit : 0; 714 $this->offset = $this->offset ? $this->offset : 100;*/ 708 715 $ls_array = $this->bo->vfs->ls(array( 709 716 'string' => $this->path, … … 711 718 'checksubdirs' => False, 712 719 'nofiles' => False, 713 'orderby' => $this->sortby 720 'orderby' => $this->criteria, 721 'otype' => $this->otype, 722 'limit' => $this->limit, 723 'offset' => $this->offset 714 724 )); 715 725
Note: See TracChangeset
for help on using the changeset viewer.