Ignore:
Timestamp:
2007/07/20 15:58:59 (19 years ago)
Author:
nanasess
Message:

r15064 から svn cp
とりあえず暫定コミット.

  • UTF-8 に変更
  • slib.php, glib.php のクラス化
  • LC_Page の抽象化(一部)
Location:
branches/feature-module-update
Files:
1 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update

    • Property svn:ignore set to
      .cache

      .settings

      .projectOptions
  • branches/feature-module-update/html/admin/contents/campaign_design.php

    r12157 r15078  
    1818        $this->contents_row = 13; 
    1919        $this->footer_row = 13;      
    20         $this->tpl_subtitle = '¥­¥ã¥ó¥Ú¡¼¥ó¥Ç¥¶¥¤¥óÊÔ½¸'; 
     20        $this->tpl_subtitle = 'キャンペーンデザイン編集'; 
    2121    } 
    2222} 
     
    2626$objQuery = new SC_Query(); 
    2727 
    28 // ǧ¾Ú²ÄÈݤÎȽÄê 
     28// 認証可否の判定 
    2929$objSess = new SC_Session(); 
    3030sfIsSuccess($objSess); 
    3131 
    32 // ¥­¥ã¥ó¥Ú¡¼¥ó¥Ç¡¼¥¿¤ò°ú¤­·Ñ¤® 
     32// キャンペーンデータを引き継ぎ 
    3333if($_POST['mode'] != "") { 
    3434    $arrForm = $_POST; 
     
    3737} 
    3838 
    39 // Àµ¤·¤¯Ãͤ¬¼èÆÀ¤Ç¤­¤Ê¤¤¾ì¹ç¤Ï¥­¥ã¥ó¥Ú¡¼¥óTOP¤Ø 
     39// 正しく値が取得できない場合はキャンペーンTOPへ 
    4040if($arrForm['campaign_id'] == "" || $arrForm['status'] == "") { 
    4141    header("location: ".URL_CAMPAIGN_TOP); 
     
    4545    case 'active': 
    4646        $status = CAMPAIGN_TEMPLATE_ACTIVE; 
    47         $objPage->tpl_campaign_title = "¥­¥ã¥ó¥Ú¡¼¥óÃæ¥Ç¥¶¥¤¥óÊÔ½¸"; 
     47        $objPage->tpl_campaign_title = "キャンペーン中デザイン編集"; 
    4848        break; 
    4949    case 'end': 
    5050        $status = CAMPAIGN_TEMPLATE_END; 
    51         $objPage->tpl_campaign_title = "¥­¥ã¥ó¥Ú¡¼¥ó½ªÎ»¥Ç¥¶¥¤¥óÊÔ½¸"; 
     51        $objPage->tpl_campaign_title = "キャンペーン終了デザイン編集"; 
    5252        break; 
    5353    default: 
     
    5555} 
    5656 
    57 // ¥Ç¥£¥ì¥¯¥È¥ê̾¤ò¼èÆÀ̾        
     57// ディレクトリ名を取得名       
    5858$directory_name = $objQuery->get("dtb_campaign", "directory_name", "campaign_id = ?", array($arrForm['campaign_id'])); 
    59 // ¥­¥ã¥ó¥Ú¡¼¥ó¥Æ¥ó¥×¥ì¡¼¥È³ÊǼ¥Ç¥£¥ì¥¯¥È¥ê 
     59// キャンペーンテンプレート格納ディレクトリ 
    6060$campaign_dir = CAMPAIGN_TEMPLATE_PATH . $directory_name . "/" .$status; 
    6161 
    6262switch($_POST['mode']) { 
    6363case 'regist': 
    64     // ¥Õ¥¡¥¤¥ë¤ò¹¹¿· 
     64    // ファイルを更新 
    6565    sfWriteFile($arrForm['header'], $campaign_dir."header.tpl", "w"); 
    6666    sfWriteFile($arrForm['contents'], $campaign_dir."contents.tpl", "w"); 
    6767    sfWriteFile($arrForm['footer'], $campaign_dir."footer.tpl", "w"); 
    68     // ¥µ¥¤¥È¥Õ¥ì¡¼¥àºîÀ® 
     68    // サイトフレーム作成 
    6969    $site_frame  = $arrForm['header']."\n"; 
    7070    $site_frame .= '<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/site.js"></script>'."\n"; 
     
    7474    sfWriteFile($site_frame, $campaign_dir."site_frame.tpl", "w"); 
    7575     
    76     // ´°Î»¥á¥Ã¥»¡¼¥¸¡Ê¥×¥ì¥Ó¥å¡¼»þ¤Ïɽ¼¨¤·¤Ê¤¤¡Ë 
    77     $objPage->tpl_onload="alert('ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');"; 
     76    // 完了メッセージ(プレビュー時は表示しない) 
     77    $objPage->tpl_onload="alert('登録が完了しました。');"; 
    7878    break; 
    7979case 'preview': 
    80     // ¥×¥ì¥Ó¥å¡¼¤ò½ñ¤­½Ð¤·ÊÌÁë¤Ç³«¤¯ 
     80    // プレビューを書き出し別窓で開く 
    8181    sfWriteFile($arrForm['header'] . $arrForm['contents'] . $arrForm['footer'], $campaign_dir."preview.tpl", "w"); 
    8282    $objPage->tpl_onload = "win02('./campaign_preview.php?status=". $arrForm['status'] ."&campaign_id=". $arrForm['campaign_id'] ."', 'preview', '600', '400');"; 
     
    8686    break; 
    8787case 'return': 
    88     // ÅÐÏ¿¥Ú¡¼¥¸¤ØÌá¤ë 
     88    // 登録ページへ戻る 
    8989    header("location: ".URL_CAMPAIGN_TOP); 
    9090    break; 
     
    104104 
    105105if($_POST['mode'] != 'preview') { 
    106     // ¥Ø¥Ã¥À¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß 
     106    // ヘッダーファイルの読み込み 
    107107    $objPage->header_data = file_get_contents($campaign_dir . "header.tpl");     
    108     // ¥³¥ó¥Æ¥ó¥Ä¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß 
     108    // コンテンツファイルの読み込み 
    109109    $objPage->contents_data = file_get_contents($campaign_dir . "contents.tpl");     
    110     // ¥Õ¥Ã¥¿¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß 
     110    // フッターファイルの読み込み 
    111111    $objPage->footer_data = file_get_contents($campaign_dir . "footer.tpl"); 
    112112} 
    113113 
    114 // ¥Õ¥©¡¼¥à¤ÎÃͤò³ÊǼ 
     114// フォームの値を格納 
    115115$objPage->arrForm = $arrForm; 
    116116 
    117 // ²èÌ̤Îɽ¼¨ 
     117// 画面の表示 
    118118$objView->assignobj($objPage); 
    119119$objView->display(MAIN_FRAME); 
Note: See TracChangeset for help on using the changeset viewer.