Ignore:
Timestamp:
2006/08/30 22:14:47 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/design/template.php

    r3281 r3307  
    262262    } 
    263263     
    264     sfprintr($arrTemplate); 
    265     sfprintr($fileArray=glob( ROOT_DIR. $tpl_path."*.tpl" )); 
     264    $taget_tpl_path = ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code']; 
     265    $save_tpl_path = ROOT_DIR . $tpl_path; 
    266266     
    267267    // TOP¤òÊѹ¹¤·¤¿¾ì¹ç¤Ë¤ÏÁ´²èÌÌÊѹ¹ 
    268268    if ($objPage->tpl_subno_template == $objPage->arrSubnavi[1]){ 
    269269        // ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼ 
    270         copy(ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code'] . "/top.tpl", ROOT_DIR . $tpl_path . "top.tpl"); 
    271         copy(ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code'] . "/list.tpl", ROOT_DIR . $tpl_path . "list.tpl"); 
    272         copy(ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code'] . "/detail.tpl", ROOT_DIR . $tpl_path . "detail.tpl"); 
    273         copy(ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code'] . "/mypage.tpl", ROOT_DIR . $tpl_path . "mypage.tpl"); 
     270        copy($taget_tpl_path . "/top.tpl", $save_tpl_path . "top.tpl"); 
     271        copy($taget_tpl_path . "/list.tpl", $save_tpl_path . "list.tpl"); 
     272        copy($taget_tpl_path . "/detail.tpl", $save_tpl_path . "detail.tpl"); 
     273         
     274        // MYPAGE¤Î¥Õ¥¡¥¤¥ë¤ò¼èÆÀ¤¹¤ë 
     275        $arrMypage = $fileArray=glob($taget_tpl_path ."*.tpl" ); 
     276         
     277        // ¥Õ¥©¥ë¥À¤¬¤Ê¤±¤ì¤ÐºîÀ®¤¹¤ë 
     278        if(!is_dir($save_tpl_path."mypage")){ 
     279            mkdir($save_tpl_path."mypage"); 
     280        } 
     281         
     282        foreach($arrMypage as $key => $val){ 
     283            $matches = array(); 
     284            mb_ereg("^(.*[\/])(.*)",$val, $matches); 
     285            $data=$matches[2]; 
     286             
     287            sfprintr($matches); 
     288//          copy($val, $save_tpl_path . "detail.tpl"); 
     289        } 
    274290 
    275291        // ¥Ö¥í¥Ã¥¯¥Ç¡¼¥¿¤Î¥³¥Ô¡¼ 
    276292    }else{ 
    277293        // ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼ 
    278         copy(ROOT_DIR . $tpl_path . $arrTemplate[0]['template_code'] . "/" . $tpl_name, ROOT_DIR . $tpl_path . $tpl_name); 
    279     } 
    280 } 
     294        copy($tpl_path . "/" . $tpl_name, $save_tpl_path . $tpl_name); 
     295    } 
     296} 
Note: See TracChangeset for help on using the changeset viewer.