Changeset 8605 for temp/trunk


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

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/test/uehara/tree.php

    r8604 r8605  
    2626    // ¸½ºß¤Î³¬Áؤò¼èÆÀ 
    2727    $now_dir = $_POST['now_file']; 
    28     // ¥¨¥é¡¼¥Á¥§¥Ã¥¯ 
    2928    break; 
    3029 
    3130case '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        } 
    3942    } 
    4043    break; 
     
    4245case 'download': 
    4346 
    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        } 
    5156    } 
    5257    break; 
Note: See TracChangeset for help on using the changeset viewer.