Changeset 8589 for temp/trunk
- Timestamp:
- 2006/11/19 18:53:50 (20 years ago)
- Location:
- temp/trunk/html
- Files:
-
- 3 edited
-
js/site.js (modified) (2 diffs)
-
test/uehara/templates/tree.tpl (modified) (previous)
-
test/uehara/tree.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/js/site.js
r6355 r8589 130 130 } 131 131 document.form1.submit(); 132 133 132 } 134 133 … … 334 333 335 334 //ʸ»ú¿ô¤ò¥«¥¦¥ó¥È¤¹¤ë¡£ 336 //°ú¿ô ?¡§¥Õ¥©¡¼¥à̾¾Î337 //°ú¿ô ?¡§Ê¸»ú¿ô¥«¥¦¥ó¥ÈÂоÝ338 //°ú¿ô ?¡§¥«¥¦¥ó¥È·ë²Ì³ÊǼÂоÝ335 //°ú¿ô1¡§¥Õ¥©¡¼¥à̾¾Î 336 //°ú¿ô2¡§Ê¸»ú¿ô¥«¥¦¥ó¥ÈÂÐ¾Ý 337 //°ú¿ô3¡§¥«¥¦¥ó¥È·ë²Ì³ÊǼÂÐ¾Ý 339 338 function fnCharCount(form,sch,cnt) { 340 339 document.forms[form][cnt].value= document.forms[form][sch].value.length; -
temp/trunk/html/test/uehara/tree.php
r8588 r8589 23 23 case 'download': 24 24 case 'delete': 25 // ½é´üɽ¼¨°Ê³°¤Ï¸½ºßÁªÂòÃæ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¼èÆÀ26 $now_dir = $_POST[' select_file'];27 25 // ¸½ºß¤Î¥Õ¥©¥ë¥À¤òɽ¼¨ 26 $now_dir = $_POST['now_file']; 27 28 28 case '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 } 29 37 break; 30 38 31 39 case '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 } 32 47 break; 33 48 … … 67 82 // ./ ¤È ../¤ò½ü¤¯¥Õ¥¡¥¤¥ë¤Î¤ß¤ò¼èÆÀ 68 83 if($file != "." && $file != "..") { 69 sfprintr($file);// ¹ÔËö¤Î/¤ò¼è¤ê½ü¤¯84 // ¹ÔËö¤Î/¤ò¼è¤ê½ü¤¯ 70 85 $dir = ereg_replace("\/$", "", $dir); 71 86 $path = $dir."/".$file; … … 94 109 if (is_dir($dir)) { 95 110 $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); 101 117 } 102 118 }
Note: See TracChangeset
for help on using the changeset viewer.
