Changeset 8605 for temp/trunk
- Timestamp:
- 2006/11/19 19:53:54 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/test/uehara/tree.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/test/uehara/tree.php
r8604 r8605 26 26 // ¸½ºß¤Î³¬Áؤò¼èÆÀ 27 27 $now_dir = $_POST['now_file']; 28 // ¥¨¥é¡¼¥Á¥§¥Ã¥¯29 28 break; 30 29 31 30 case 'view': 32 // ÁªÂò¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Ê¤é°Üư 33 if(is_dir($_POST['select_file'])) { 34 $now_dir = $_POST['select_file']; 35 } else { 36 // javascript¤ÇÊÌÁëɽ¼¨(¥Æ¥ó¥×¥ì¡¼¥È¦¤ËÅϤ¹) 37 $file_url = ereg_replace(USER_PATH, USER_URL, $_POST['select_file']); 38 $objPage->tpl_javascript = "win02('". $file_url ."', 'user_data', '600', '400');"; 31 // ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 32 if(!is_array(lfErrorCheck())) { 33 34 // ÁªÂò¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Ê¤é°Üư 35 if(is_dir($_POST['select_file'])) { 36 $now_dir = $_POST['select_file']; 37 } else { 38 // javascript¤ÇÊÌÁëɽ¼¨(¥Æ¥ó¥×¥ì¡¼¥È¦¤ËÅϤ¹) 39 $file_url = ereg_replace(USER_PATH, USER_URL, $_POST['select_file']); 40 $objPage->tpl_javascript = "win02('". $file_url ."', 'user_data', '600', '400');"; 41 } 39 42 } 40 43 break; … … 42 45 case 'download': 43 46 44 sfprintr("test"); 45 if(is_dir($_POST['select_file'])) { 46 // ¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¤Ïjavascript¥¨¥é¡¼ 47 $objPage->tpl_javascript = "alert('¢¨¡¡¥Ç¥£¥ì¥¯¥È¥ê¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤Ï½ÐÍè¤Þ¤»¤ó¡£');"; 48 } else { 49 // ¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤Ï¥À¥¦¥ó¥í¡¼¥É¤µ¤»¤ë 50 header('Content-Disposition: attachment; filename="'. basename($_POST['select_file']) .'"'); 47 // ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 48 if(!is_array(lfErrorCheck())) { 49 if(is_dir($_POST['select_file'])) { 50 // ¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¤Ïjavascript¥¨¥é¡¼ 51 $objPage->tpl_javascript = "alert('¢¨¡¡¥Ç¥£¥ì¥¯¥È¥ê¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤Ï½ÐÍè¤Þ¤»¤ó¡£');"; 52 } else { 53 // ¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤Ï¥À¥¦¥ó¥í¡¼¥É¤µ¤»¤ë 54 header('Content-Disposition: attachment; filename="'. basename($_POST['select_file']) .'"'); 55 } 51 56 } 52 57 break;
Note: See TracChangeset
for help on using the changeset viewer.
