Ignore:
Timestamp:
02/10/10 15:22:36 (14 years ago)
Author:
fpcorrea
Message:

Ticket #597 - Implementada paginação e correção de bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/filemanager/inc/class.uifilemanager.inc.php

    r1929 r1997  
    8080                var $sortby; 
    8181                var $messages; 
     82                var $limit; //for paging (paginacao) 
     83                var $offset; //for paging (paginacao) 
    8284 
    8385                var $now; 
     
    176178                        if($test[mime_type]!='Directory') 
    177179                        { 
    178  
    179180                                $this->bo->vfs->override_acl = 1; 
    180181 
     
    464465                        else 
    465466                        { 
    466                                 $this->readFilesInfo(); 
     467                                //$this->readFilesInfo(); 
    467468                                $this->fileListing(); 
    468469                        } 
     
    505506                                        'string'        => $this->path, 
    506507                                        'relatives'     => array(RELATIVE_NONE) 
     508                        )); 
     509                        $return['files_count'] = $this->bo->vfs->count_files(array( 
     510                                        'string'        => $this->path, 
    507511                        )); 
    508512                        $quota = $this->bo->vfs->get_quota(array( 
     
    537541                                        $tuple['icon'] = $this->mime_icon($files['mime_type']); 
    538542                                $tuple['type'] = $files['type']; 
    539                                 $tuple['creatd'] = $this->vfs_functions->dateString2timeStamp($files['created']); 
    540                                 $tuple['modifd'] = $this->vfs_functions->dateString2timeStamp($files['modified']); 
     543                                $tuple['created'] = $this->vfs_functions->dateString2timeStamp($files['created']); 
     544                                $tuple['modified'] = $this->vfs_functions->dateString2timeStamp($files['modified']); 
    541545                                $tuple['size'] = $files['size']; 
    542                                 $tuple['mime'] = $files['mime_type']; 
     546                                $tuple['mime_type'] = $files['mime_type']; 
    543547                                $tuple['pub'] = $files['type']; 
    544                                 $tuple['creatdby'] = $GLOBALS['phpgw']->accounts->id2name($files['createdby_id']); 
    545                                 $tuple['modifdby'] = $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']):''; 
    546550                                $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']; 
    549553                                $output[] = $tuple; 
    550554 
    551555                        } 
    552556                        // TODO Order files directly into SQL 
    553                         foreach ($output as $key => $row) { 
     557                        /*foreach ($output as $key => $row) { 
    554558                                $temp[$key]  = strtoupper($row[$this->criteria]); 
    555559                        } 
     
    557561                                array_multisort($temp, SORT_ASC, $output); 
    558562                        else 
    559                                 array_multisort($temp, SORT_DESC, $output); 
     563                                array_multisort($temp, SORT_DESC, $output);*/ 
    560564                        $return['files'] = $output; 
    561565                        $return['quota']['quotaSize'] = ($quota*1024*1024); 
     
    581585                                $this->groups_applications[$value['account_name']] = $applications->read_account_specific(); 
    582586                        } 
     587 
    583588 
    584589                        // selectbox for change/move/and copy to 
     
    706711                        else 
    707712                        { 
     713                                /*$this->limit = $this->limit ? $this->limit : 0; 
     714                                $this->offset = $this->offset ? $this->offset : 100;*/ 
    708715                                $ls_array = $this->bo->vfs->ls(array( 
    709716                                        'string' => $this->path, 
     
    711718                                        'checksubdirs' => False, 
    712719                                        'nofiles'       => False, 
    713                                         'orderby'       => $this->sortby 
     720                                        'orderby'       => $this->criteria, 
     721                                        'otype'         => $this->otype, 
     722                                        'limit'         => $this->limit, 
     723                                        'offset'        => $this->offset 
    714724                                )); 
    715725 
Note: See TracChangeset for help on using the changeset viewer.