Changeset 3232 for temp/trunk/html


Ignore:
Timestamp:
2006/08/30 21:25:51 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

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

    r3227 r3232  
    5858     
    5959    // ¥Æ¥ó¥×¥ì¡¼¥È¤Î¾å½ñ¤­ 
    60     //lfChangeTemplate(); 
     60    lfChangeTemplate(); 
    6161     
    6262    sfprintr($_POST); 
     
    144144        $arrTemplateImage['check'] = 1; 
    145145    } 
    146     sfprintr($arrTemplateImage); 
    147146     
    148147    return $arrTemplateImage; 
     
    160159    $arrRet = array();              // ¥Ç¡¼¥¿¼èÆÀÍÑ 
    161160     
    162     $sql = "SELECT top_tpl AS top, product_tpl AS product, detail_tpl AS detail FROM dtb_baseinfo"; 
     161    $sql = "SELECT top_tpl AS top, product_tpl AS product, detail_tpl AS detail mypage_tpl AS mypage FROM dtb_baseinfo"; 
    163162    $arrRet = $objDBConn->getAll($sql); 
    164163     
     
    179178 
    180179    // ¥Ç¡¼¥¿¼èÆÀ    
    181     $sql = "SELECT top_tpl AS top, product_tpl AS product, detail_tpl AS detail FROM dtb_baseinfo"; 
     180    $sql = "SELECT top_tpl AS top, product_tpl AS product, detail_tpl AS detail mypage_tpl AS mypage FROM dtb_baseinfo"; 
    182181    $arrRet = $objDBConn->getAll($sql); 
    183182 
     
    223222    global $arrTemplate; 
    224223    global $objPage; 
     224    $tpl_path = ""; 
    225225     
    226226    $tpl_name = ""; 
     
    253253            $tpl_name = "mypage.tpl"; 
    254254            break; 
     255             
     256        default: 
     257            break; 
    255258    } 
    256259     
     
    258261    if ($objPage->tpl_subno_template == $objPage->arrSubnavi[1]){ 
    259262        // ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼ 
    260         copy($arrTemplate[$chk_tpl]["TopTemplate"], ROOT_DIR . INCLUDE_DIR . "top.tpl"); 
    261         copy($arrTemplate[$chk_tpl]["ProdTemplate"], ROOT_DIR . INCLUDE_DIR . "product.tpl"); 
    262         copy($arrTemplate[$chk_tpl]["DetailTemplate"], ROOT_DIR . INCLUDE_DIR . "detail.tpl"); 
    263         copy($arrTemplate[$chk_tpl]["MypageTemplate"], ROOT_DIR . INCLUDE_DIR . "mypage.tpl"); 
     263        copy($arrTemplate[$chk_tpl]["TopTemplate"], ROOT_DIR . $tpl_path . "top.tpl"); 
     264        copy($arrTemplate[$chk_tpl]["ProdTemplate"], ROOT_DIR . $tpl_path . "product.tpl"); 
     265        copy($arrTemplate[$chk_tpl]["DetailTemplate"], ROOT_DIR . $tpl_path . "detail.tpl"); 
     266        copy($arrTemplate[$chk_tpl]["MypageTemplate"], ROOT_DIR . $tpl_path . "mypage.tpl"); 
    264267    }else{ 
    265268        // ¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¤ò¥³¥Ô¡¼ 
Note: See TracChangeset for help on using the changeset viewer.