Ignore:
Timestamp:
03/25/11 12:36:46 (13 years ago)
Author:
alexandrecorreia
Message:

Ticket #1659 - Exportar arquivo html, modificado para enviar como um POST.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/filemanager/js/draw_api.js

    r3895 r3913  
    3232 
    3333                                var     _created = _xml.createElement('created');  
    34                                         _created.appendChild( _xml.createTextNode(response[i]['created']) ); 
    35                                         _info.appendChild( _created ); 
     34                                _created.appendChild( _xml.createTextNode(response[i]['created']) ); 
     35                                _info.appendChild( _created ); 
    3636 
    3737                                var     _version = _xml.createElement('version'); 
    38                                         _version.appendChild( _xml.createTextNode(response[i]['version']) ); 
    39                                         _info.appendChild(_version); 
     38                                _version.appendChild( _xml.createTextNode(response[i]['version']) ); 
     39                                _info.appendChild(_version); 
    4040 
    4141                                var     _who = _xml.createElement('who'); 
    42                                         _who.appendChild( _xml.createTextNode(response[i]['who']) ); 
    43                                         _info.appendChild( _who ); 
     42                                _who.appendChild( _xml.createTextNode(response[i]['who']) ); 
     43                                _info.appendChild( _who ); 
    4444 
    4545                                var _operation  = _xml.createElement('operation'); 
    46                                         _operation.appendChild( _xml.createTextNode( response[i]['operation']) ); 
    47                                         _info.appendChild( _operation ); 
     46                                _operation.appendChild( _xml.createTextNode( response[i]['operation']) ); 
     47                                _info.appendChild( _operation ); 
    4848                        } 
    4949 
     
    6969         
    7070        cExecute_('./index.php?menuaction=filemanager.uifilemanager.history&file=' 
    71                                 + base64_encode(filename)+"&path="+base64_encode(currentPath), handlerLoadHistory ); 
     71                + base64_encode(filename)+"&path="+base64_encode(currentPath), handlerLoadHistory ); 
    7272} 
    7373 
     
    151151 
    152152        var _optionsItens                               = document.createElement("div"); 
    153                 _optionsItens.id                        = "fastMenuFileManager"; 
    154                 _optionsItens.className         = "x-menu"; 
    155                 _optionsItens.style.zIndex      = zIndex++; 
    156                 _optionsItens.innerHTML         = _itens; 
    157                 _optionsItens.onclick           = function(){ showHidden.hiddenObject(false); }; 
    158                 _optionsItens.onmouseout        = function(){ showHidden.hiddenObject(false); }; 
    159                 _optionsItens.onmouseover       = function(){ showHidden.hiddenObject(true); };  
     153        _optionsItens.id                        = "fastMenuFileManager"; 
     154        _optionsItens.className         = "x-menu"; 
     155        _optionsItens.style.zIndex      = zIndex++; 
     156        _optionsItens.innerHTML         = _itens; 
     157        _optionsItens.onclick           = function(){ 
     158                showHidden.hiddenObject(false); 
     159        }; 
     160        _optionsItens.onmouseout        = function(){ 
     161                showHidden.hiddenObject(false); 
     162        }; 
     163        _optionsItens.onmouseover       = function(){ 
     164                showHidden.hiddenObject(true); 
     165        };       
    160166                                                           
    161                 showHidden.action('onmouseover', 'onmouseout', _optionsItens); 
    162  
    163                 _parent.parentNode.appendChild( _optionsItens ); 
     167        showHidden.action('onmouseover', 'onmouseout', _optionsItens); 
     168 
     169        _parent.parentNode.appendChild( _optionsItens ); 
    164170} 
    165171 
     
    179185        } 
    180186        headerMsgLock = true; 
    181         headerDiv = document.getElementById("main_title"); 
    182         labelBefore = headerDiv.innerHTML; 
    183         headerDiv.innerHTML = '<table width=100% cellspacing="0" cellpadding="0" border="0"><tbody><tr><th width="40%"></th><th noWrap class="action_info_th">'+message+'</th><th width="40%"></th></tr></tbody></table>'; 
    184         setTimeout('headerMsgLock = false; document.getElementById("main_title").innerHTML = labelBefore;', 3000); 
     187        headerDiv = document.getElementById("main_title"); 
     188        labelBefore = headerDiv.innerHTML; 
     189        headerDiv.innerHTML = '<table width=100% cellspacing="0" cellpadding="0" border="0"><tbody><tr><th width="40%"></th><th noWrap class="action_info_th">'+message+'</th><th width="40%"></th></tr></tbody></table>'; 
     190        setTimeout('headerMsgLock = false; document.getElementById("main_title").innerHTML = labelBefore;', 3000); 
    185191} 
    186192 
     
    276282        newpage += fl.td+sp_hd+' id="name">'+get_lang('file name')+sp_tl; 
    277283        newpage += fl.td+sp_hd+' id="folder">'+get_lang('folder')+sp_tl; 
    278         if (preferences.mime_type =='1') 
     284        if (preferences.mime_type =='1') 
    279285                newpage += fl.td+sp_hd+' id="mime_type">'+get_lang('mime type')+sp_tl; 
    280286        if (preferences.size =='1') 
     
    314320} 
    315321folderList.prototype.createLine = function(file){ 
    316                 var fl = folderList; 
    317                 retBuff = '<tr id="line_'+file.name+'" onmouseout="clearTimeout(menuTimeout)" onmousedown="_dragArea.dragEl=this;_dragArea.operation=\'drag\'">'; 
     322        var fl = folderList; 
     323        retBuff = '<tr id="line_'+file.name+'" onmouseout="clearTimeout(menuTimeout)" onmousedown="_dragArea.dragEl=this;_dragArea.operation=\'drag\'">'; 
     324        retBuff += fl.td; 
     325        retBuff += '<input name="fileman" value="'+file.name+'" type="checkbox"></td>'; 
     326        if (permissions['private']) { 
     327                retBuff += '<td><div id="restrict_'+file.name+'" onclick="setRestricted(\''+file.name+'\')" '; 
     328                retBuff += 'style="background-image:url('+templatePath+'images/button_'+(file.pub == '1'?'lock':'unlock')+'.png);background-repeat: repeat-none;width:15px;height:12px;"></div></td>'; 
     329        } 
     330        else 
     331                retBuff += '<td></td>'; 
     332 
     333        switch (file.mime_type) 
     334        { 
     335                case 'text/html': 
     336                        retBuff += '<td><a href="./index.php?menuaction=filemanager.uifilemanager.export&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'"><div class="exportButton" alt="'+get_lang('export')+'" title="'+get_lang('export')+'"></div></a></td>'; 
     337                        break; 
     338                case 'application/zip': 
     339                        retBuff += '<td><div class="exportButton" onclick="unarchive(\''+file.name+'\')" alt="'+get_lang('unarchive')+'" title="'+get_lang('unarchive')+'"></a></td>' 
     340                        break; 
     341                default: 
     342                        retBuff += '<td></td>'; 
     343        } 
     344        retBuff += fl.td+'<div style="background-image:url('+(file.icon)+'); background-repeat: no-repeat; height:16px; padding-left: 18px; overflow: hidden;">'; 
     345        if((file.mime_type).toUpperCase().indexOf('IMAGE') == 0) 
     346                var mousefunc = 'draw_card(\'preview\',\''+file.name+'\')' 
     347        else 
     348                var mousefunc = 'hide_card()'; 
     349        retBuff += '<span class="fileLink" onmouseover="'+mousefunc+'" id="name_'+file.name+'" onclick="window.open(\'./index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'\');">'+file.name+'</span></div></td>'; 
     350        if (preferences.mime_type =='1') retBuff += fl.td+file.mime_type+'</td>'; 
     351        if (preferences.size =='1') retBuff += fl.td+borkb(file.size)+'</td>'; 
     352        var now = new Date(); 
     353        var midnight = Date.parse(now.toDateString()); 
     354        var dtString = ""; 
     355        if (preferences.created =='1') { 
     356                var created = new Date(); 
     357                created.setTime(file.created*1000); 
     358                if (created.getTime() > midnight) 
     359                        if (created.getMinutes() < 10 ) 
     360                                dtString = created.getHours()+":0"+created.getMinutes(); 
     361                        else 
     362                                dtString = created.getHours()+":"+created.getMinutes(); 
     363                else { 
     364                        dtString = (created.getDate() < 10) ? "0"+created.getDate()+"/" : created.getDate()+"/"; 
     365                        dtString += (created.getMonth() < 9) ? "0" : ""; 
     366                        dtString += (created.getMonth()+1)+"/"+created.getFullYear(); 
     367                } 
     368                retBuff += fl.td+dtString+'</td>'; 
     369        } 
     370        if (preferences.modified =='1'){ 
     371                var modified = new Date(); 
     372                modified.setTime(file.modified*1000); 
     373                if (file.modified != "") 
     374                        if (modified.getTime() > midnight) 
     375                                if (modified.getMinutes() < 10) 
     376                                        dtString = modified.getHours()+":0"+modified.getMinutes(); 
     377                                else 
     378                                        dtString = modified.getHours()+":"+modified.getMinutes(); 
     379                        else { 
     380                                dtString = (modified.getDate() < 10) ? "0"+modified.getDate()+"/" : modified.getDate()+"/"; 
     381                                dtString += (modified.getMonth() < 9) ? "0" : ""; 
     382                                dtString += (modified.getMonth()+1)+"/"+modified.getFullYear(); 
     383                        } 
     384                else 
     385                        dtString = ""; 
     386                retBuff += fl.td+dtString+'</td>'; 
     387        } 
     388        if (preferences.owner =='1'){ 
    318389                retBuff += fl.td; 
    319                 retBuff += '<input name="fileman" value="'+file.name+'" type="checkbox"></td>'; 
    320                 if (permissions['private']) { 
    321                         retBuff += '<td><div id="restrict_'+file.name+'" onclick="setRestricted(\''+file.name+'\')" '; 
    322                         retBuff += 'style="background-image:url('+templatePath+'images/button_'+(file.pub == '1'?'lock':'unlock')+'.png);background-repeat: repeat-none;width:15px;height:12px;"></div></td>'; 
    323                 } 
    324                 else 
    325                         retBuff += '<td></td>'; 
    326  
    327                 switch (file.mime_type) 
    328                 { 
    329                         case 'text/html': 
    330                                 retBuff += '<td><a href="./index.php?menuaction=filemanager.uifilemanager.export&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'"><div class="exportButton" alt="'+get_lang('export')+'" title="'+get_lang('export')+'"></div></a></td>'; 
    331                                 break; 
    332                         case 'application/zip': 
    333                                 retBuff += '<td><div class="exportButton" onclick="unarchive(\''+file.name+'\')" alt="'+get_lang('unarchive')+'" title="'+get_lang('unarchive')+'"></a></td>' 
    334                                 break; 
    335                         default: 
    336                                 retBuff += '<td></td>'; 
    337                 } 
    338                 retBuff += fl.td+'<div style="background-image:url('+(file.icon)+'); background-repeat: no-repeat; height:16px; padding-left: 18px; overflow: hidden;">'; 
    339                 if((file.mime_type).toUpperCase().indexOf('IMAGE') == 0) 
    340                         var mousefunc = 'draw_card(\'preview\',\''+file.name+'\')' 
    341                 else 
    342                         var mousefunc = 'hide_card()'; 
    343                 retBuff += '<span class="fileLink" onmouseover="'+mousefunc+'" id="name_'+file.name+'" onclick="window.open(\'./index.php?menuaction=filemanager.uifilemanager.view&file='+base64_encode(file.name)+'&path='+base64_encode(currentPath)+'\');">'+file.name+'</span></div></td>'; 
    344                 if (preferences.mime_type =='1') retBuff += fl.td+file.mime_type+'</td>'; 
    345                 if (preferences.size =='1') retBuff += fl.td+borkb(file.size)+'</td>'; 
    346                 var now = new Date(); 
    347                 var midnight = Date.parse(now.toDateString()); 
    348                 var dtString = ""; 
    349                 if (preferences.created =='1') { 
    350                         var created = new Date(); 
    351                         created.setTime(file.created*1000); 
    352                         if (created.getTime() > midnight) 
    353                                 if (created.getMinutes() < 10 ) 
    354                                         dtString = created.getHours()+":0"+created.getMinutes(); 
    355                                 else 
    356                                         dtString = created.getHours()+":"+created.getMinutes(); 
    357                         else { 
    358                                 dtString = (created.getDate() < 10) ? "0"+created.getDate()+"/" : created.getDate()+"/"; 
    359                                 dtString += (created.getMonth() < 9) ? "0" : ""; 
    360                                 dtString += (created.getMonth()+1)+"/"+created.getFullYear(); 
    361                         } 
    362                         retBuff += fl.td+dtString+'</td>'; 
    363                 } 
    364                 if (preferences.modified =='1'){ 
    365                         var modified = new Date(); 
    366                         modified.setTime(file.modified*1000); 
    367                         if (file.modified != "") 
    368                                 if (modified.getTime() > midnight) 
    369                                         if (modified.getMinutes() < 10) 
    370                                                 dtString = modified.getHours()+":0"+modified.getMinutes(); 
    371                                         else 
    372                                                 dtString = modified.getHours()+":"+modified.getMinutes(); 
    373                                 else { 
    374                                         dtString = (modified.getDate() < 10) ? "0"+modified.getDate()+"/" : modified.getDate()+"/"; 
    375                                         dtString += (modified.getMonth() < 9) ? "0" : ""; 
    376                                         dtString += (modified.getMonth()+1)+"/"+modified.getFullYear(); 
    377                                 } 
    378                         else 
    379                                 dtString = ""; 
    380                         retBuff += fl.td+dtString+'</td>'; 
    381                 } 
    382                 if (preferences.owner =='1'){ 
    383                         retBuff += fl.td; 
    384                         retBuff += '<div onmouseover="draw_card(\'user\',\''+file.owner+'\')">'+file.owner+'</div></td>'; 
    385                 } 
    386                 if (preferences.createdby_id =='1'){ 
    387                         retBuff += fl.td; 
    388                         retBuff += '<div onmouseover="draw_card(\'user\',\''+file.createdby_id+'\')">'+file.createdby_id+'</div></td>'; 
    389                 } 
    390                 if (preferences.modifiedby_id =='1'){ 
    391                         retBuff += fl.td; 
    392                         retBuff += '<div onmouseover="draw_card(\'user\',\''+file.modifiedby_id+'\')">'+file.modifiedby_id+'</div></td>'; 
    393                 } 
    394                 if (preferences.comment =='1') retBuff += fl.td+'<input id="'+file.name+'" class="inputComment" onkeydown="enterComments(event,this)" onclick="presetComments(this)" onblur="setComments(this)" value="'+(file.comment==null?'':file.comment)+'" alt="'+get_lang('Click to change comments')+'" title="'+get_lang('Click to change comments')+'"></input></td>'; 
    395                 if (preferences.version =='1') retBuff += fl.td+'<span onclick="loadHistory(\''+file.name+'\')">'+file.version+'</span></td>'; 
    396                 retBuff += "</tr>"; 
    397                 return retBuff; 
     390                retBuff += '<div onmouseover="draw_card(\'user\',\''+file.owner+'\')">'+file.owner+'</div></td>'; 
     391        } 
     392        if (preferences.createdby_id =='1'){ 
     393                retBuff += fl.td; 
     394                retBuff += '<div onmouseover="draw_card(\'user\',\''+file.createdby_id+'\')">'+file.createdby_id+'</div></td>'; 
     395        } 
     396        if (preferences.modifiedby_id =='1'){ 
     397                retBuff += fl.td; 
     398                retBuff += '<div onmouseover="draw_card(\'user\',\''+file.modifiedby_id+'\')">'+file.modifiedby_id+'</div></td>'; 
     399        } 
     400        if (preferences.comment =='1') retBuff += fl.td+'<input id="'+file.name+'" class="inputComment" onkeydown="enterComments(event,this)" onclick="presetComments(this)" onblur="setComments(this)" value="'+(file.comment==null?'':file.comment)+'" alt="'+get_lang('Click to change comments')+'" title="'+get_lang('Click to change comments')+'"></input></td>'; 
     401        if (preferences.version =='1') retBuff += fl.td+'<span onclick="loadHistory(\''+file.name+'\')">'+file.version+'</span></td>'; 
     402        retBuff += "</tr>"; 
     403        return retBuff; 
    398404} 
    399405folderList.prototype.updateQuota = function(quotaSize,usedSpace){ 
     
    500506        } 
    501507        var pageContent = '<table><tbody><tr>'; 
    502         var createButton = function(name) { return '<td name="'+name+'" class="toolButton" onclick="toolbar.control(\''+name+'\');" title="'+name+'"><img src="'+templatePath+'images/button_'+name+'.png" alt="'+name+'"><small>'+get_lang(name.replace('_',' '))+'</small></td>'; } 
     508        var createButton = function(name) { 
     509                return '<td name="'+name+'" class="toolButton" onclick="toolbar.control(\''+name+'\');" title="'+name+'"><img src="'+templatePath+'images/button_'+name+'.png" alt="'+name+'"><small>'+get_lang(name.replace('_',' '))+'</small></td>'; 
     510        } 
    503511 
    504512        if (permissions['edit'] != 0){ 
     
    536544toolbar.prototype.control = function () 
    537545{ 
     546        if( arguments.length == 0 ) 
     547                return; 
     548 
    538549        var _arg        = arguments[0]; 
    539550        var _parent     = ( arguments[1] ) ? arguments[1] : null ;  
    540551 
     552        if( _arg == 'new' ) 
     553        { 
     554                var _address =  ( document.location.toString() ).split("?"); 
     555 
     556                var itens = [ 
     557                        [ get_lang('empty file'),'javascript:newEmptyFile()',templatePath+'images/group_close.gif', '' ], 
     558                        [ get_lang('File from model'), _address[0]+"?menuaction=filemanager.uifilemanager.fileModels", templatePath+'images/group_close.gif', '' ], 
     559                        [ get_lang('Upload'), 'javascript:newUpload()', templatePath+'images/group_close.gif', '' ], 
     560                        [ get_lang('Advanced Upload'), 'javascript:newAdvancedUpload()', templatePath+'images/group_close.gif', '' ] 
     561                ]; 
     562 
     563                draw_menu( itens, _parent ); 
     564        } 
     565 
     566        if( _arg == 'rename' ) 
     567        { 
     568                var files                       = document.getElementsByName('fileman'); 
     569                var flagCheked  = false; 
     570                 
     571                for( var i = 0; i < files.length; i++ ) 
     572                { 
     573                        if( files[i].checked ) 
     574                        { 
     575                                files[i].checked        = false; 
     576                                var _span                       = document.getElementById( 'name_' + files[i].value ); 
     577                                var     _parentNode     = _span.parentNode; 
     578                                        _parentNode.style.height = (parseInt(_parentNode.style.height) + 4 ); 
     579                                 
     580                                var     _input                          = document.createElement("input");  
     581                                        _input.id                       = 'input_'+files[i].value; 
     582                                        _input.size                     = "35"; 
     583                                        _input.zIndex           = "99999"; 
     584                                        _input.value            = _span.innerHTML; 
     585                                        _input.type                     = 'text'; 
     586 
     587                                // OnkeyUp 
     588                                configEvents( _input, "onkeyup", function(e) 
     589                                { 
     590                                        if( e.keyCode == 13 )  
     591                                        { 
     592                                                _parentNode.style.height = (parseInt(_parentNode.style.height) - 4 ); 
     593                                                 
     594                                                handler.rename( _input, _span ); 
     595                                        } 
     596                                }); 
     597 
     598                                // Onblur        
     599                                //configEvents( _input, "onblur", function() 
     600                                //{  
     601                                        //handler.rename( _input, _span ); 
     602                                //});            
     603 
     604                                if( _parentNode != null ) 
     605                                {        
     606                                        // Remove Span 
     607                                        if( _span != null ) 
     608                                                _parentNode.removeChild( _span ); 
     609                                                 
     610                                        // Add Input 
     611                                        if( _input != null )  
     612                                                _parentNode.appendChild( _input ); 
     613                                } 
     614                                 
     615                                _input.focus(); 
     616                        } 
     617                } 
     618        }        
     619 
    541620        switch ( _arg ) 
    542621        { 
    543                 case 'new': 
    544                          
    545                         address = document.location.toString(); 
    546                         address = address.split("?"); 
    547                          
    548                         var itens = [ 
    549                                         [ get_lang('empty file'),'javascript:newEmptyFile()',templatePath+'images/group_close.gif', '' ], 
    550                                         [ get_lang('File from model'), address[0]+"?menuaction=filemanager.uifilemanager.fileModels", templatePath+'images/group_close.gif', '' ], 
    551                                         [ get_lang('Upload'), 'javascript:newUpload()', templatePath+'images/group_close.gif', '' ], 
    552                                                 [ get_lang('Advanced Upload'), 'javascript:newAdvancedUpload()', templatePath+'images/group_close.gif', '' ] 
    553                                     ]; 
    554                          
    555                         draw_menu( itens, _parent ); 
    556  
    557                         break; 
    558                          
    559                 case 'rename': 
    560                         var one_checked = false; 
    561                         files=document.getElementsByName('fileman'); 
    562                         for (i = 0; i <  files.length; i++) 
    563                                 if (files[i].checked){ 
    564                                         one_checked = true; 
    565                                         files[i].checked = false; 
    566                                         var nameLink = document.getElementById('name_'+files[i].value); 
    567                                         var inputName = document.createElement('INPUT'); 
    568                                         inputName.id = 'input_'+files[i].value; 
    569                                         var filename = nameLink.innerHTML; 
    570                                         inputName.value = filename; 
    571                                         inputName.onclick = function () { oldValue = inputName.value; } 
    572                                         inputName.onblur = function () { if (inputName.value == oldValue) handler.rename(); else cExecute_('./index.php?menuaction=filemanager.vfs_functions.rename&file='+base64_encode(this.id.substr(6))+'&to='+base64_encode(this.value)+"&path="+base64_encode(currentPath),handler.rename) }; 
    573                                         inputName.onkeydown=function (event) {if (event.keyCode == KEY_ENTER) this.blur(); }; 
    574                                         nameLink.parentNode.appendChild(inputName); 
    575                                         nameLink.parentNode.removeChild(nameLink); 
    576                                 } 
    577                         if (!one_checked) 
    578                                 write_msg(get_lang('Please select a file')); 
    579                         break; 
     622 
    580623                case 'edit': 
    581624                        var one_checked = false; 
     
    600643                        var filesUrl = this.getCheckedFiles(); 
    601644                        cExecute_('./index.php?menuaction=filemanager.vfs_functions.delete&path='+ 
    602                                         base64_encode(currentPath)+filesUrl,handler.del); 
     645                                base64_encode(currentPath)+filesUrl,handler.del); 
    603646                        break; 
    604647                case 'archive': 
     
    618661                        var pswd = crypt.encode(password); 
    619662                        cExecute_('./index.php?menuaction=filemanager.vfs_functions.archive&pswd=' 
    620                                         + base64_encode(pswd.toString())+'&path='+base64_encode(currentPath)+filesUrl,handler.archive); 
     663                                + base64_encode(pswd.toString())+'&path='+base64_encode(currentPath)+filesUrl,handler.archive); 
    621664                        break; 
    622665                case 'move_to': 
     
    640683                                {        
    641684                                        var _lk = _xml.createElement('lk'); 
    642                                                 _lk.setAttribute('function', "javascript:"+escape(_arg)+"('"+folders[i]+"','"+filesUrl+"'); close_window();" ); 
    643                                                 _lk.appendChild( _xml.createTextNode( folders[i].replace( my_home_filemanager , get_lang("My folder") ) ) ); 
    644                                                 _links.appendChild( _lk ); 
     685                                        _lk.setAttribute('function', "javascript:"+escape(_arg)+"('"+folders[i]+"','"+filesUrl+"'); close_window();" ); 
     686                                        _lk.appendChild( _xml.createTextNode( folders[i].replace( my_home_filemanager , get_lang("My folder") ) ) ); 
     687                                        _links.appendChild( _lk ); 
    645688                                } 
    646689                                 
     
    677720                         
    678721                        var itens = [ 
    679                                         [ get_lang('Preferences'), 'preferences/preferences.php?appname=filemanager', templatePath+'images/preferences.png', 'width="16px" height="16px"' ], 
    680                                         [ get_lang('Edit Folders'), 'javascript:editFolders()', templatePath+'images/button_createdir.png', 'width="16px" height="16px"'], 
    681                                         [ get_lang('Share Folders'), './index.php?menuaction=preferences.uiaclprefs.index&acl_app=filemanager', templatePath+'images/mime16_directory.png', 'width="16px" height="16px"'], 
    682                                         [ get_lang('View'), 'javascript:EditColumns()', templatePath+'images/editpaste.png', 'width="16px" height="16px"' ], 
    683                                         [ get_lang('Archive'), 'javascript:toolbar.control("archive")', templatePath+'images/button_zip.png', 'width="16px" height="16px"' ] 
    684                                     ]; 
     722                        [ get_lang('Preferences'), 'preferences/preferences.php?appname=filemanager', templatePath+'images/preferences.png', 'width="16px" height="16px"' ], 
     723                        [ get_lang('Edit Folders'), 'javascript:editFolders()', templatePath+'images/button_createdir.png', 'width="16px" height="16px"'], 
     724                        [ get_lang('Share Folders'), './index.php?menuaction=preferences.uiaclprefs.index&acl_app=filemanager', templatePath+'images/mime16_directory.png', 'width="16px" height="16px"'], 
     725                        [ get_lang('View'), 'javascript:EditColumns()', templatePath+'images/editpaste.png', 'width="16px" height="16px"' ], 
     726                        [ get_lang('Archive'), 'javascript:toolbar.control("archive")', templatePath+'images/button_zip.png', 'width="16px" height="16px"' ] 
     727                        ]; 
    685728                                                 
    686729                        draw_menu( itens, _parent ); 
     
    701744        { 
    702745                cExecute_('./index.php?menuaction=filemanager.vfs_functions.unarchive&pswd=' 
    703                                 + base64_encode(password)+'&path='+base64_encode(currentPath)+'&file='+base64_encode(filename), handler.archive); 
     746                        + base64_encode(password)+'&path='+base64_encode(currentPath)+'&file='+base64_encode(filename), handler.archive); 
    704747        } 
    705748        else 
     
    710753{ 
    711754        cExecute_( './index.php?menuaction=filemanager.vfs_functions.moveto&from=' 
    712                         + base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl, handler.moveto ); 
     755                + base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl, handler.moveto ); 
    713756} 
    714757 
     
    716759{ 
    717760        cExecute_('./index.php?menuaction=filemanager.vfs_functions.copyto&from=' 
    718                                 + base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl, handler.copyto ); 
     761                + base64_encode(currentPath)+'&to='+base64_encode(to)+filesUrl, handler.copyto ); 
    719762} 
    720763 
     
    767810                        var parentDir_en = base64_encode( parentDir ); 
    768811                        cExecute_('./index.php?menuaction=filemanager.uifilemanager.createdir&path=' 
    769                                         + parentDir_en+'&filename='+base64_encode(name), handler.refreshDir); 
     812                                + parentDir_en+'&filename='+base64_encode(name), handler.refreshDir); 
    770813                                 
    771814                        currentPath = parentDir + '/' + name; 
     
    780823                        {        
    781824                                if ( confirm(get_lang('Do you really want to remove folder: %1?', 
    782                                                 Dfolder.replace(my_home_filemanager, get_lang("My folder"))), '') ) 
    783                                 { 
     825                                        Dfolder.replace(my_home_filemanager, get_lang("My folder"))), '') ) 
     826                                        { 
    784827                                        var Dfolder_en = base64_encode( Dfolder ); 
    785828                                         
     
    806849                                { 
    807850                                        var fd = _xml.createElement('name'); 
    808                                                 fd.setAttribute('value', folders[i] ); 
    809                                                 fd.appendChild( _xml.createTextNode(folders[i].replace(my_home_filemanager, get_lang("My folder"))) ); 
    810                                                 _folders.appendChild(fd); 
     851                                        fd.setAttribute('value', folders[i] ); 
     852                                        fd.appendChild( _xml.createTextNode(folders[i].replace(my_home_filemanager, get_lang("My folder"))) ); 
     853                                        _folders.appendChild(fd); 
    811854                                } 
    812855                        } 
     
    841884                menu.style.top = (DocY+20)+"px"; 
    842885                menu.width = "100%"; 
    843                 menu.onmouseout = function () { menuTimeout = setTimeout("hide_card()",50);} 
    844                 menu.onmouseover = function () { clearTimeout(menuTimeout); }; 
     886                menu.onmouseout = function () { 
     887                        menuTimeout = setTimeout("hide_card()",50); 
     888                } 
     889                menu.onmouseover = function () { 
     890                        clearTimeout(menuTimeout); 
     891                }; 
    845892                menu.style.zIndex='1'; 
    846893                document.getElementById('divAppbox').appendChild(menu); 
Note: See TracChangeset for help on using the changeset viewer.