Changeset 16496


Ignore:
Timestamp:
2007/10/18 20:05:39 (15 years ago)
Author:
nanasess
Message:

キャンペーン修正

Location:
branches/feature-module-update
Files:
30 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/Smarty/templates/default/campaign/application.tpl

    r16044 r16496  
    22<!--{include file=`$tpl_dir_name`/header.tpl}--> 
    33 
    4 <script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/site.js"></script> 
    5 <script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/navi.js"></script> 
     4<script type="text/javascript" src="<!--{$TPL_DIR}-->js/site.js"></script> 
     5<script type="text/javascript" src="<!--{$TPL_DIR}-->js/navi.js"></script> 
    66<script type="text/javascript"> 
    77<!-- 
  • branches/feature-module-update/data/Smarty/templates/default/campaign/index.tpl

    r16044 r16496  
    22<!--{include file=`$tpl_dir_name`/header.tpl}--> 
    33 
    4 <script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/site.js"></script> 
    5 <script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/navi.js"></script> 
     4<script type="text/javascript" src="<!--{$TPL_DIR}-->js/site.js"></script> 
     5<script type="text/javascript" src="<!--{$TPL_DIR}-->js/navi.js"></script> 
    66<script type="text/javascript"> 
    77<!-- 
     
    7171</script> 
    7272<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> 
    73 <input type="hidden" name="mode" value="cart"> 
    74 <input type="hidden" name="product_id" value=""> 
    75 <input type="hidden" name="cp" value="true"> 
     73<input type="hidden" name="mode" value="cart" /> 
     74<input type="hidden" name="product_id" value="" /> 
     75<input type="hidden" name="cp" value="true" /> 
    7676 
    7777<!--{*コンテンツ読込*}--> 
  • branches/feature-module-update/data/class/pages/admin/contents/LC_Page_Admin_Contents_Campaign.php

    r16488 r16496  
    102102 
    103103            // CSV出力タイトル行の作成 
    104             $arrCsvOutput = SC_Utils_Ex::sfSwapArray(sfgetCsvOutput(4, " WHERE csv_id = 4 AND status = 1")); 
     104            $arrCsvOutput = SC_Utils_Ex::sfSwapArray($objCSV->sfgetCsvOutput(4, " WHERE csv_id = 4 AND status = 1")); 
    105105 
    106106            if (count($arrCsvOutput) <= 0) break; 
     
    310310     */ 
    311311    function lfDeleteCampaign($campaign_id, &$objQuery) { 
    312  
     312        $objFileManager = new SC_Helper_FileManager_Ex(); 
    313313 
    314314        // ディレクトリ名を取得名 
    315315        $directory_name = $objQuery->get("dtb_campaign", "directory_name", "campaign_id = ?", array($campaign_id)); 
    316316        // ファイルを削除 
    317         SC_Utils_Ex::sfDeleteDir(CAMPAIGN_TEMPLATE_PATH . $directory_name); 
    318         SC_Utils_Ex::sfDeleteDir(CAMPAIGN_PATH . $directory_name); 
     317        $objFileManager->sfDeleteDir(CAMPAIGN_TEMPLATE_PATH . $directory_name); 
     318        $objFileManager->sfDeleteDir(CAMPAIGN_PATH . $directory_name); 
    319319 
    320320        $sqlval['del_flg'] = 1; 
     
    342342        $create_end_dir = $create_dir . "/" . CAMPAIGN_TEMPLATE_END; 
    343343        // デフォルトファイルディレクトリ 
    344         $default_dir = $dir . "default"; 
     344        $default_dir = TEMPLATE_DIR . CAMPAIGN_TEMPLATE_DIR; 
    345345        $default_active_dir = $default_dir . "/" . CAMPAIGN_TEMPLATE_ACTIVE; 
    346346        $default_end_dir = $default_dir . "/" . CAMPAIGN_TEMPLATE_END; 
     
    352352        // キャンペーン実行PHPをコピー 
    353353        $ret = $objFileManager->sfCreateFile(CAMPAIGN_PATH . $file); 
    354         copy($default_dir . "/src/index.php", CAMPAIGN_PATH . $file . "/index.php"); 
    355         copy($default_dir . "/src/application.php", CAMPAIGN_PATH . $file . "/application.php"); 
    356         copy($default_dir . "/src/complete.php", CAMPAIGN_PATH . $file . "/complete.php"); 
    357         copy($default_dir . "/src/entry.php", CAMPAIGN_PATH . $file . "/entry.php"); 
     354        copy(HTML_PATH . CAMPAIGN_TEMPLATE_DIR . "index.php", CAMPAIGN_PATH . $file . "/index.php"); 
     355        copy(HTML_PATH . CAMPAIGN_TEMPLATE_DIR . "application.php", CAMPAIGN_PATH . $file . "/application.php"); 
     356        copy(HTML_PATH . CAMPAIGN_TEMPLATE_DIR . "complete.php", CAMPAIGN_PATH . $file . "/complete.php"); 
     357        copy(HTML_PATH . CAMPAIGN_TEMPLATE_DIR . "entry.php", CAMPAIGN_PATH . $file . "/entry.php"); 
    358358 
    359359        // デフォルトテンプレート作成(キャンペーン中) 
     
    373373        // サイトフレーム作成 
    374374        $site_frame  = $header."\n"; 
    375         $site_frame .= '<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/navi.js"></script>'."\n"; 
    376         $site_frame .= '<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/site.js"></script>'."\n"; 
     375        $site_frame .= '<script type="text/javascript" src="<!--{$TPL_DIR}-->js/navi.js"></script>'."\n"; 
     376        $site_frame .= '<script type="text/javascript" src="<!--{$TPL_DIR}-->js/site.js"></script>'."\n"; 
    377377        $site_frame .= '<!--{include file=$tpl_mainpage}-->'."\n"; 
    378378        $site_frame .= $footer."\n"; 
Note: See TracChangeset for help on using the changeset viewer.