Changeset 3534


Ignore:
Timestamp:
11/25/10 09:57:14 (13 years ago)
Author:
rodsouza
Message:

Ticket #1371 - Corrige problema de reconstrução recursiva de pastas

Location:
branches/2.2
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/filemanager/inc/class.uiconfig.inc.php

    r3019 r3534  
    183183                                 'string'        => $name, 
    184184                                 'relatives'     => array(RELATIVE_NONE) 
    185                          )); 
     185                         ),True); 
    186186                         $bo->vfs->flush_journal(array( 
    187187                                 'string' => $name, 
  • branches/2.2/filemanager/inc/class.uifilemanager.inc.php

    r3436 r3534  
    11991199                        ); 
    12001200 
    1201                         $ls_array = $this->bo->vfs->ls($tmp_arr); 
     1201                        $ls_array = $this->bo->vfs->ls($tmp_arr,True); 
    12021202 
    12031203                        while(list($num, $dir) = each($ls_array)) 
  • branches/2.2/filemanager/js/handler.js

    r3019 r3534  
    138138                if (parentDir == '/home') 
    139139                        parentDir = 'root'; 
    140                 next = (folders[i+1]?folders[i+1]:""); 
    141                 folder = new dNode({id:folders[i], caption:name, plusSign:(next.indexOf(folders[i]+'/') == 0), onClick:'load(\''+folders[i]+'\',this)'}); 
     140                var search_child = function(afolders,name){ 
     141                        for (j=0; j < afolders.length; j++) 
     142                                if (afolders[j].indexOf(name+'/') == 0) 
     143                                        return true; 
     144                        return false; 
     145                } 
     146                folder = new dNode({id:folders[i], caption:name, plusSign:search_child(folders,folders[i]), onClick:'load(\''+folders[i]+'\',this)'}); 
    142147                folders_tree.add(folder,parentDir); 
    143148        } 
  • branches/2.2/filemanager/templates/default/config_folders.tpl

    r3019 r3534  
    22<table border="0" cellpadding="1" cellspacing="1" style="width: 400px;"> 
    33        <tbody> 
    4                 <tr style="width: 200px;"> 
     4                <tr style="width: 500px;"> 
    55                        <td> 
    66                                <b>{lang_search}</b></td> 
     
    1414                                <b>{lang_directory}</b></td> 
    1515                        <td> 
    16                                 <select id="search1" size="5" style="width: 200px;"></select> </td> 
     16                                <select id="search1" size="5" style="width: 500px;"></select> </td> 
    1717                        <td> 
    1818                                &nbsp;</td> 
  • branches/2.2/filemanager/templates/default/config_owner.tpl

    r3019 r3534  
    22<table border="0" cellpadding="1" cellspacing="1" style="width: 400px;"> 
    33        <tbody> 
    4                 <tr style="width: 200px;"> 
     4                <tr style="width: 500px;"> 
    55                        <td> 
    66                                <b>{lang_search}</b></td> 
     
    1414                                <b>{lang_directory}</b></td> 
    1515                        <td> 
    16                                 <select id="search1" size="5" style="width: 200px;"></select> </td> 
     16                                <select id="search1" size="5" style="width: 500px;"></select> </td> 
    1717                        <td> 
    1818                                &nbsp;</td> 
     
    3636                                <b>{lang_users_and_groups}</b></td> 
    3737                        <td valign="top"> 
    38                                 <select id="search2" size="5" style="width: 200px;"></select> </td> 
     38                                <select id="search2" size="5" style="width: 500px;"></select> </td> 
    3939                        <td> 
    4040                        <table border="0"> 
  • branches/2.2/phpgwapi/inc/class.vfs_sql.inc.php

    r3104 r3534  
    26682668                 * If $data['file_id'] then the file_id is used instead of a path 
    26692669                 */ 
    2670                 function ls ($data) 
     2670                function ls ($data,$recursive) 
    26712671                { 
    26722672                        if (!is_array ($data)) 
     
    28262826 
    28272827                        $dir_clean = $this->clean_string (array ('string' => $dir)); 
    2828                         $sql .= " FROM phpgw_vfs WHERE ".$query_type." directory = '".$GLOBALS['phpgw']->db->db_addslashes($dir_clean)."'"; 
     2828                        if ($recursive) 
     2829                                $sql .= " FROM phpgw_vfs WHERE ".$query_type." directory like '".$GLOBALS['phpgw']->db->db_addslashes($dir_clean)."%'"; 
     2830                        else 
     2831                                $sql .= " FROM phpgw_vfs WHERE ".$query_type." directory = '".$GLOBALS['phpgw']->db->db_addslashes($dir_clean)."'"; 
    28292832                        $sql .= $this->extra_sql (array ('query_type' => VFS_SQL_SELECT)); 
    28302833 
     
    29052908                                { 
    29062909                                        $dir_handle = opendir ($p->real_full_path); 
     2910 
    29072911                                        while ($filename = readdir ($dir_handle)) 
    29082912                                        { 
     
    29322936                                        $rarray = array (); 
    29332937                                } 
    2934  
    29352938                                foreach($rarray as $num => $file_array) 
    29362939                                { 
Note: See TracChangeset for help on using the changeset viewer.