Changeset 8589 for temp/trunk


Ignore:
Timestamp:
2006/11/19 18:53:50 (20 years ago)
Author:
uehara
Message:

blank

Location:
temp/trunk/html
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/js/site.js

    r6355 r8589  
    130130    } 
    131131    document.form1.submit(); 
    132  
    133132} 
    134133 
     
    334333 
    335334//ʸ»ú¿ô¤ò¥«¥¦¥ó¥È¤¹¤ë¡£ 
    336 //°ú¿ô?¡§¥Õ¥©¡¼¥à̾¾Î 
    337 //°ú¿ô?¡§Ê¸»ú¿ô¥«¥¦¥ó¥ÈÂоݠ
    338 //°ú¿ô?¡§¥«¥¦¥ó¥È·ë²Ì³ÊǼÂоݠ
     335//°ú¿ô1¡§¥Õ¥©¡¼¥à̾¾Î 
     336//°ú¿ô2¡§Ê¸»ú¿ô¥«¥¦¥ó¥ÈÂоݠ
     337//°ú¿ô3¡§¥«¥¦¥ó¥È·ë²Ì³ÊǼÂоݠ
    339338function fnCharCount(form,sch,cnt) { 
    340339    document.forms[form][cnt].value= document.forms[form][sch].value.length; 
  • temp/trunk/html/test/uehara/tree.php

    r8588 r8589  
    2323case 'download':     
    2424case 'delete': 
    25     // ½é´üɽ¼¨°Ê³°¤Ï¸½ºßÁªÂòÃæ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¼èÆÀ 
    26     $now_dir = $_POST['select_file']; 
    27      
     25    // ¸½ºß¤Î¥Õ¥©¥ë¥À¤òɽ¼¨ 
     26    $now_dir = $_POST['now_file']; 
     27 
    2828case 'view': 
     29    // ÁªÂò¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Ê¤é°Üư 
     30    if(is_dir($_POST['select_file'])) { 
     31        $now_dir = $_POST['select_file']; 
     32    } else { 
     33        // javascript¤ÇÊÌÁëɽ¼¨(¥Æ¥ó¥×¥ì¡¼¥È¦¤ËÅϤ¹) 
     34        $objPage->tpl_javascript = "win02('". $_POST['select_file'] ."', 'user_data', '600', '400');"; 
     35        exit; 
     36    } 
    2937    break; 
    3038 
    3139case 'download': 
     40    if(is_dir($_POST['select_file'])) { 
     41        // ¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¤Ïjavascript¥¨¥é¡¼ 
     42        $objPage->tpl_javascript = "alert('¢¨¡¡¥Ç¥£¥ì¥¯¥È¥ê¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤Ï½ÐÍè¤Þ¤»¤ó¡£');"; 
     43    } else { 
     44        // ¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤Ï¥À¥¦¥ó¥í¡¼¥É¤µ¤»¤ë 
     45        header('Content-Disposition: attachment; filename="'. basename($_POST['select_file']) .'"'); 
     46    } 
    3247    break; 
    3348     
     
    6782                // ./ ¤È ../¤ò½ü¤¯¥Õ¥¡¥¤¥ë¤Î¤ß¤ò¼èÆÀ 
    6883                if($file != "." && $file != "..") { 
    69 sfprintr($file);    // ¹ÔËö¤Î/¤ò¼è¤ê½ü¤¯ 
     84                    // ¹ÔËö¤Î/¤ò¼è¤ê½ü¤¯ 
    7085                    $dir = ereg_replace("\/$", "", $dir); 
    7186                    $path = $dir."/".$file; 
     
    94109        if (is_dir($dir)) { 
    95110            $handle = opendir($dir);  
    96             while ($file = readdir($handle)) {  
    97                 if ($file != '..' && $file != '.' && !is_dir($dir.'/'.$file)) {  
    98                     $bytes += filesize($dir.'/'.$file);  
    99                 } else if (is_dir($dir.'/'.$file) && $file != '..' && $file != '.') {  
    100                     $bytes += getDirSize($dir.'/'.$file);  
     111            while ($file = readdir($handle)) { 
     112                $path = $dir."/".$file; 
     113                if ($file != '..' && $file != '.' && !is_dir($path)) {  
     114                    $bytes += filesize($path);  
     115                } else if (is_dir($path) && $file != '..' && $file != '.') {  
     116                    $bytes += getDirSize($path);  
    101117                }  
    102118            }  
Note: See TracChangeset for help on using the changeset viewer.