Changeset 10533 for temp/trunk/html


Ignore:
Timestamp:
2006/12/10 18:10:53 (19 years ago)
Author:
kaki
Message:
 
File:
1 edited

Legend:

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

    r10521 r10533  
    252252     
    253253    $chk_tpl = $_POST['check_template']; 
    254      
     254    $taget_tpl_path = $tpl_path . $chk_tpl . "/templates/"; 
     255    $taget_inc_path = $tpl_path . $chk_tpl . "/include/"; 
     256    $taget_css_path = $tpl_path . $chk_tpl . "/css/"; 
     257    $save_tpl_path = $tpl_path; 
     258     
     259     
     260    /* 
    255261    // ¥Æ¥ó¥×¥ì¡¼¥È¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë 
    256262    $objQuery = new SC_Query(); 
    257263    $sql = "SELECT template_code,template_name FROM dtb_templates WHERE template_code = ?"; 
    258264    $arrTemplate = $objQuery->getall($sql, array($chk_tpl));     
    259      
     265    */ 
    260266    switch($objPage->tpl_subno_template) { 
    261267        // TOP 
     
    286292            break; 
    287293    } 
    288      
     294    /* 
    289295    $taget_tpl_path = $tpl_path . $arrTemplate[0]['template_code'] . "/templates/"; 
    290296    $taget_inc_path = $tpl_path . $arrTemplate[0]['template_code'] . "/include/"; 
    291297    $taget_css_path = $tpl_path . $arrTemplate[0]['template_code'] . "/css/"; 
     298    */ 
    292299    $save_tpl_path = $tpl_path; 
    293300 
    294301    // ²èÁü¥Ñ¥¹¤ò½ñ¤­´¹¤¨ 
    295     $path = $tpl_path . $arrTemplate[0]['template_code'] . "/"; 
     302    $path = $tpl_path . $chk_tpl . "/"; 
    296303    $img_path = '<!--{$smarty.const.URL_DIR}-->img/'; 
    297     $displace_path = '<!--{$smarty.const.URL_DIR}-->'. USER_DIR . 'templates/' . $arrTemplate[0]['template_code'] . '/img/'; 
     304    $displace_path = '<!--{$smarty.const.URL_DIR}-->'. USER_DIR . 'templates/' . $chk_tpl . '/img/'; 
    298305    $fs = new File_SearchReplace($img_path, $displace_path, "", $path, true);  
    299306    $fs->doSearch();  
Note: See TracChangeset for help on using the changeset viewer.