Changeset 10876 for temp/branches/ec-cube-beta/html/admin/contents
- Timestamp:
- 2006/12/18 15:47:56 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/ec-cube-beta/html/admin/contents/campaign_design.php
r10875 r10876 6 6 */ 7 7 require_once("../../require.php"); 8 require_once(DATA_PATH . "include/file_manager.inc"); 8 9 9 10 class LC_Page { … … 36 37 } 37 38 39 // Àµ¤·¤¯Ãͤ¬¼èÆÀ¤Ç¤¤Ê¤¤¾ì¹ç¤Ï¥¥ã¥ó¥Ú¡¼¥óTOP¤Ø 40 if($arrForm['campaign_id'] != "" || $arrForm['status'] != "") { 41 header("location: ".URL_CAMPAIGN_TOP); 42 } 43 38 44 // ¥Ç¥£¥ì¥¯¥È¥ê̾¤ò¼èÆÀ̾ 39 45 $directory_name = $objQuery->get("dtb_campaign", "directory_name", "campaign_id = ?", array($arrForm['campaign_id'])); … … 54 60 switch($_POST['mode']) { 55 61 case 'regist': 56 // ÅÐÏ¿»þ¤Ï¥×¥ì¥Ó¥å¡¼Íѥƥó¥×¥ì¡¼¥È¤ò¥³¥Ô¡¼¤¹¤ë 57 if ($_POST['mode'] == 'confirm'){ 58 copy($pre_DIR.$division.".tpl", USER_INC_PATH . $division . ".tpl"); 59 // ´°Î»¥á¥Ã¥»¡¼¥¸¡Ê¥×¥ì¥Ó¥å¡¼»þ¤Ïɽ¼¨¤·¤Ê¤¤¡Ë 60 $objPage->tpl_onload="alert('ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');"; 61 62 // ¥Æ¥¥¹¥È¥¨¥ê¥¢¤ÎÉý¤ò¸µ¤ËÌ᤹(½èÍý¤ÎÅý°ì¤Î¤¿¤á) 63 $_POST['header_row'] = ""; 64 $_POST['footer_row'] = ""; 65 }else if ($_POST['mode'] == 'preview'){ 66 if ($division == "header") $objPage->header_prev = "on"; 67 if ($division == "footer") $objPage->footer_prev = "on"; 68 } 69 62 // ¥Õ¥¡¥¤¥ë¤ò¹¹¿· 63 sfWriteFile($arrForm['header'], $campaign_dir."header.tpl", "w"); 64 sfWriteFile($arrForm['contents'], $campaign_dir."contents.tpl", "w"); 65 sfWriteFile($arrForm['footer'], $campaign_dir."footer.tpl", "w"); 66 // ´°Î»¥á¥Ã¥»¡¼¥¸¡Ê¥×¥ì¥Ó¥å¡¼»þ¤Ïɽ¼¨¤·¤Ê¤¤¡Ë 67 $objPage->tpl_onload="alert('ÅÐÏ¿¤¬´°Î»¤·¤Þ¤·¤¿¡£');"; 70 68 break; 71 69 default: 72 70 break; 73 71 } 74 75 // ¥Ø¥Ã¥À¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß76 $objPage->header_data = file_get_contents($campaign_dir . "header.tpl");77 // ¥³¥ó¥Æ¥ó¥Ä¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß78 $objPage->contents_data = file_get_contents($campaign_dir . "contents.tpl");79 // ¥Õ¥Ã¥¿¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß80 $objPage->footer_data = file_get_contents($campaign_dir . "footer.tpl");81 72 82 73 if ($arrForm['header_row'] != ''){ … … 90 81 } 91 82 83 // ¥Ø¥Ã¥À¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß 84 $objPage->header_data = file_get_contents($campaign_dir . "header.tpl"); 85 // ¥³¥ó¥Æ¥ó¥Ä¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß 86 $objPage->contents_data = file_get_contents($campaign_dir . "contents.tpl"); 87 // ¥Õ¥Ã¥¿¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß 88 $objPage->footer_data = file_get_contents($campaign_dir . "footer.tpl"); 89 92 90 // ¥Õ¥©¡¼¥à¤ÎÃͤò³ÊǼ 93 91 $objPage->arrForm = $arrForm;
Note: See TracChangeset
for help on using the changeset viewer.
