- Timestamp:
- 2007/07/20 15:58:59 (19 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
-
. (copied) (copied from branches/rel) (1 prop)
-
html (copied) (copied from branches/rel/html)
-
html/admin/contents/campaign_design.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/html/admin/contents/campaign_design.php
r12157 r15078 18 18 $this->contents_row = 13; 19 19 $this->footer_row = 13; 20 $this->tpl_subtitle = ' ¥¥ã¥ó¥Ú¡¼¥ó¥Ç¥¶¥¤¥óÊÔ½¸';20 $this->tpl_subtitle = 'キャンペーンデザイン編集'; 21 21 } 22 22 } … … 26 26 $objQuery = new SC_Query(); 27 27 28 // ǧ¾Ú²ÄÈݤÎȽÄê28 // 認証可否の判定 29 29 $objSess = new SC_Session(); 30 30 sfIsSuccess($objSess); 31 31 32 // ¥¥ã¥ó¥Ú¡¼¥ó¥Ç¡¼¥¿¤ò°ú¤·Ñ¤®32 // キャンペーンデータを引き継ぎ 33 33 if($_POST['mode'] != "") { 34 34 $arrForm = $_POST; … … 37 37 } 38 38 39 // Àµ¤·¤¯Ãͤ¬¼èÆÀ¤Ç¤¤Ê¤¤¾ì¹ç¤Ï¥¥ã¥ó¥Ú¡¼¥óTOP¤Ø39 // 正しく値が取得できない場合はキャンペーンTOPへ 40 40 if($arrForm['campaign_id'] == "" || $arrForm['status'] == "") { 41 41 header("location: ".URL_CAMPAIGN_TOP); … … 45 45 case 'active': 46 46 $status = CAMPAIGN_TEMPLATE_ACTIVE; 47 $objPage->tpl_campaign_title = " ¥¥ã¥ó¥Ú¡¼¥óÃæ¥Ç¥¶¥¤¥óÊÔ½¸";47 $objPage->tpl_campaign_title = "キャンペーン中デザイン編集"; 48 48 break; 49 49 case 'end': 50 50 $status = CAMPAIGN_TEMPLATE_END; 51 $objPage->tpl_campaign_title = " ¥¥ã¥ó¥Ú¡¼¥ó½ªÎ»¥Ç¥¶¥¤¥óÊÔ½¸";51 $objPage->tpl_campaign_title = "キャンペーン終了デザイン編集"; 52 52 break; 53 53 default: … … 55 55 } 56 56 57 // ¥Ç¥£¥ì¥¯¥È¥ê̾¤ò¼èÆÀ̾57 // ディレクトリ名を取得名 58 58 $directory_name = $objQuery->get("dtb_campaign", "directory_name", "campaign_id = ?", array($arrForm['campaign_id'])); 59 // ¥¥ã¥ó¥Ú¡¼¥ó¥Æ¥ó¥×¥ì¡¼¥È³ÊǼ¥Ç¥£¥ì¥¯¥È¥ê59 // キャンペーンテンプレート格納ディレクトリ 60 60 $campaign_dir = CAMPAIGN_TEMPLATE_PATH . $directory_name . "/" .$status; 61 61 62 62 switch($_POST['mode']) { 63 63 case 'regist': 64 // ¥Õ¥¡¥¤¥ë¤ò¹¹¿·64 // ファイルを更新 65 65 sfWriteFile($arrForm['header'], $campaign_dir."header.tpl", "w"); 66 66 sfWriteFile($arrForm['contents'], $campaign_dir."contents.tpl", "w"); 67 67 sfWriteFile($arrForm['footer'], $campaign_dir."footer.tpl", "w"); 68 // ¥µ¥¤¥È¥Õ¥ì¡¼¥àºîÀ®68 // サイトフレーム作成 69 69 $site_frame = $arrForm['header']."\n"; 70 70 $site_frame .= '<script type="text/javascript" src="<!--{$smarty.const.URL_DIR}-->js/site.js"></script>'."\n"; … … 74 74 sfWriteFile($site_frame, $campaign_dir."site_frame.tpl", "w"); 75 75 76 // ´°Î»¥á¥Ã¥»¡¼¥¸¡Ê¥×¥ì¥Ó¥å¡¼»þ¤Ïɽ¼¨¤·¤Ê¤¤¡Ë77 $objPage->tpl_onload="alert(' ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');";76 // 完了メッセージ(プレビュー時は表示しない) 77 $objPage->tpl_onload="alert('登録が完了しました。');"; 78 78 break; 79 79 case 'preview': 80 // ¥×¥ì¥Ó¥å¡¼¤ò½ñ¤½Ð¤·ÊÌÁë¤Ç³«¤¯80 // プレビューを書き出し別窓で開く 81 81 sfWriteFile($arrForm['header'] . $arrForm['contents'] . $arrForm['footer'], $campaign_dir."preview.tpl", "w"); 82 82 $objPage->tpl_onload = "win02('./campaign_preview.php?status=". $arrForm['status'] ."&campaign_id=". $arrForm['campaign_id'] ."', 'preview', '600', '400');"; … … 86 86 break; 87 87 case 'return': 88 // ÅÐÏ¿¥Ú¡¼¥¸¤ØÌá¤ë88 // 登録ページへ戻る 89 89 header("location: ".URL_CAMPAIGN_TOP); 90 90 break; … … 104 104 105 105 if($_POST['mode'] != 'preview') { 106 // ¥Ø¥Ã¥À¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß106 // ヘッダーファイルの読み込み 107 107 $objPage->header_data = file_get_contents($campaign_dir . "header.tpl"); 108 // ¥³¥ó¥Æ¥ó¥Ä¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß108 // コンテンツファイルの読み込み 109 109 $objPage->contents_data = file_get_contents($campaign_dir . "contents.tpl"); 110 // ¥Õ¥Ã¥¿¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß110 // フッターファイルの読み込み 111 111 $objPage->footer_data = file_get_contents($campaign_dir . "footer.tpl"); 112 112 } 113 113 114 // ¥Õ¥©¡¼¥à¤ÎÃͤò³ÊǼ114 // フォームの値を格納 115 115 $objPage->arrForm = $arrForm; 116 116 117 // ²èÌ̤Îɽ¼¨117 // 画面の表示 118 118 $objView->assignobj($objPage); 119 119 $objView->display(MAIN_FRAME);
Note: See TracChangeset
for help on using the changeset viewer.
