Changeset 1896


Ignore:
Timestamp:
12/28/09 07:59:33 (14 years ago)
Author:
amuller
Message:

Ticket #597 - Melhoria do FM. melhorias na interface, Cartao do usuario

Location:
sandbox/filemanager
Files:
2 edited

Legend:

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

    r1893 r1896  
    221221                function summary() 
    222222                { 
    223                         header('Content-Type: text/html'); 
     223                        header('Content-Type: image/gif'); 
    224224                        $expires = 60*60*24*15; 
    225225                        header("Cache-Control: maxage=".$expires); 
    226226                        header("Pragma: public"); 
    227227                        header("Expires: ".gmdate('D, d M Y H:i:s', time()+$expires)); 
    228                         echo '<img src="data:image/gif;base64,'; 
    229228                        if($this->file) 
    230229                        {        
     
    239238                                        fclose($handle); 
    240239                                } 
    241                                 echo base64_encode($content); 
    242                         } 
    243                         echo '">'; 
     240                                echo $content; 
     241                        } 
    244242                        $GLOBALS['phpgw']->common->phpgw_exit(); 
    245243                } 
  • sandbox/filemanager/js/draw_api.js

    r1894 r1896  
    599599                case 'preview': 
    600600                        var url = './index.php?menuaction=filemanager.vfs_functions.summary&file='+base64_encode(name)+"&path="+base64_encode(currentPath); 
     601                        var htmlData = '<img src=\"'+url+'\">'; 
     602                        menuTimeout = setTimeout("draw_window_card(\'"+htmlData+"\')",500); 
    601603                        break; 
    602604                case 'user': 
    603605                        var url = './index.php?menuaction=filemanager.user.card&lid='+base64_encode(name); 
     606                        menuTimeout = setTimeout("cExecute('"+url+"',draw_window_card)",500); 
    604607                        break; 
    605608                default: 
    606609                        break; 
    607610        } 
    608         menuTimeout = setTimeout("cExecute('"+url+"',draw_window_card)",500); 
     611 
    609612} 
    610613function editFolders(operation){ 
Note: See TracChangeset for help on using the changeset viewer.