Index: /temp/branches/ec-cube-beta/html/admin/contents/campaign_design.php
===================================================================
--- /temp/branches/ec-cube-beta/html/admin/contents/campaign_design.php	(revision 10855)
+++ /temp/branches/ec-cube-beta/html/admin/contents/campaign_design.php	(revision 10856)
@@ -10,5 +10,5 @@
 
 	function LC_Page() {
-		$this->tpl_mainpage = 'contents/campaign.tpl';
+		$this->tpl_mainpage = 'contents/campaign_design.tpl';
 		$this->tpl_subnavi = 'contents/subnavi.tpl';
 		$this->tpl_subno = "campaign";
@@ -25,9 +25,14 @@
 sfIsSuccess($objSess);
 
-$division = $_POST['division'];
-$pre_DIR = USER_INC_PATH . 'preview/';
+// ¥­¥ã¥ó¥Ú¡¼¥ó¥Ç¡¼¥¿¤ò°ú¤­·Ñ¤®
+if($_GET['campaign_id'] !="" && $_GET['type'] != "") {
+	$arrForm = $_GET;
+} else {
+	$arrForm = $_POST;
+}
 
 // ¥Ç¡¼¥¿¹¹¿·½èÍý
 if ($division != ''){
+	/*
 	// ¥×¥ì¥Ó¥å¡¼ÍÑ¥Æ¥ó¥×¥ì¡¼¥È¤Ë½ñ¤­¹þ¤ß	
 	$fp = fopen($pre_DIR.$division.'.tpl',"w");
@@ -54,5 +59,7 @@
 	// ¥Õ¥Ã¥¿¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß(¥×¥ì¥Ó¥å¡¼¥Ç¡¼¥¿)
 	$footer_data = file_get_contents($pre_DIR . "footer.tpl");
-}else{
+	*/
+} else {
+	/*
 	// post¤Ç¥Ç¡¼¥¿¤¬ÅÏ¤µ¤ì¤Ê¤±¤ì¤Ð¿·µ¬ÆÉ¤ß¹þ¤ß¤ÈÈ½ÃÇ¤ò¤·¡¢¥×¥ì¥Ó¥å¡¼ÍÑ¥Ç¡¼¥¿¤òÀµµ¬¤Î¥Ç¡¼¥¿¤Ç¾å½ñ¤­¤¹¤ë
 	if (!is_dir($pre_DIR)) {
@@ -66,5 +73,5 @@
 	// ¥Õ¥Ã¥¿¡¼¥Õ¥¡¥¤¥ë¤ÎÆÉ¤ß¹þ¤ß
 	$footer_data = file_get_contents(USER_INC_PATH . "footer.tpl");
-
+	*/
 }
 
Index: /temp/branches/ec-cube-beta/data/lib/slib.php
===================================================================
--- /temp/branches/ec-cube-beta/data/lib/slib.php	(revision 10850)
+++ /temp/branches/ec-cube-beta/data/lib/slib.php	(revision 10856)
@@ -2682,4 +2682,5 @@
  * °ú¿ô3 ¡§½ñ¤­¹þ¤ß¥¿¥¤¥×
  * °ú¿ô4 ¡§¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó
+ * Ìá¤êÃÍ¡§·ë²Ì¥Õ¥é¥° À®¸ù¤Ê¤é true ¼ºÇÔ¤Ê¤é false
  * ÀâÌÀ¡¡¡§¥Õ¥¡¥¤¥ë½ñ¤­½Ð¤·
  */
@@ -2687,5 +2688,5 @@
 	//¥Õ¥¡¥¤¥ë¤ò³«¤¯
 	if (!($file = fopen ($path, $type))) {
-		$mess = "¥Õ¥¡¥¤¥ë¤¬³«¤±¤Þ¤»¤ó";
+		return false;
 	}
 
@@ -2703,5 +2704,5 @@
 	}
 	
-	return $mess;
+	return true;
 }
 	
Index: /temp/branches/ec-cube-beta/data/Smarty/templates/admin/contents/campaign_design.tpl
===================================================================
--- /temp/branches/ec-cube-beta/data/Smarty/templates/admin/contents/campaign_design.tpl	(revision 10856)
+++ /temp/branches/ec-cube-beta/data/Smarty/templates/admin/contents/campaign_design.tpl	(revision 10856)
@@ -0,0 +1,214 @@
+<!--{*
+/*
+ * Copyright(c) 2000-2006 LOCKON CO.,LTD. All Rights Reserved.
+ *
+ * http://www.lockon.co.jp/
+ */
+*}-->
+<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
+<table width="878" border="0" cellspacing="0" cellpadding="0" summary=" ">
+	<tr valign="top">
+		<td background="<!--{$smarty.const.URL_DIR}-->img/contents/navi_bg.gif" height="402">
+			<!--¢§SUB NAVI-->
+			<!--{include file=$tpl_subnavi}-->
+			<!--¢¥SUB NAVI-->
+		</td>
+		<td class="mainbg">
+			<!--¢§ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤«¤é-->
+			<table width="737" border="0" cellspacing="0" cellpadding="0" summary=" ">
+				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
+				<tr>
+					<td align="center">
+						<table width="706" border="0" cellspacing="0" cellpadding="0" summary=" ">
+							<tr><td height="14"></td></tr>
+							<tr>
+								<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td>
+							</tr>
+							<tr>
+								<td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+								<td bgcolor="#cccccc">
+								<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+									<tr>
+										<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td>
+									</tr>
+									<tr>
+										<td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td>
+										<td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--¥³¥ó¥Æ¥ó¥Ä¥¿¥¤¥È¥ë-->¥Ø¥Ã¥À¡¼¥¥Õ¥Ã¥¿¡¼ÊÔ½¸</span></td>
+										<td background="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td>
+									</tr>
+									<tr>
+										<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td>
+									</tr>
+									<tr>
+										<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td>
+									</tr>
+								</table>
+
+								<!--¢§¥Ø¥Ã¥À¡¼ÊÔ½¸¡¡¤³¤³¤«¤é-->
+								<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+									<tr class="fs12n">
+										<td bgcolor="#f2f1ec" align="center"><strong>¥Ø¥Ã¥À¡¼ÊÔ½¸</strong></td>
+									</tr>
+									<!-- ¥×¥ì¥Ó¥å¡¼¤³¤³¤«¤é -->
+									<!--{ if $header_prev == "on"}-->
+									<tr class="fs12n">
+										<td bgcolor="#ffffff" align="center">
+											<!--{if $browser_type == 1 }-->
+											    <div style="zoom:0.8"><!--{include file="`$smarty.const.HTML_PATH`user_data/include/preview/header.tpl"}--></div>
+											<!--{ else }-->
+												<span class="red12"><b>¥×¥ì¥Ó¥å¡¼¤ÏIE¤Ç¤Î¤ßÉ½¼¨¤µ¤ì¤Þ¤¹¡£</b></span>
+											<!--{ /if }-->
+										</td>
+									</tr>
+									<!--{ /if }-->
+									<!-- ¥×¥ì¥Ó¥å¡¼¤³¤³¤Þ¤Ç -->
+									
+									<form name="form_header" id="form_header" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" >
+									<input type="hidden" name="mode" value="">
+									<input type="hidden" name="division" value="header">
+									<input type="hidden" name="header_row" value=<!--{$header_row}-->>
+									<input type="hidden" name="browser_type" value="">
+										<tr class="fs12n">
+											<td bgcolor="#f2f1ec" align="center">
+												<br/>
+													<textarea name="header" cols=90 rows=<!--{$header_row}--> align="left" wrap=off style="width: 650px;"><!--{$header_data}--></textarea>
+												<div align="right">
+												<input type="button" value=<!--{if $header_row > 13}-->"¾®¤µ¤¯¤¹¤ë"<!--{else}-->"Âç¤­¤¯¤¹¤ë"<!--{/if}--> onClick="ChangeSize(this, header, 50, 13, header_row)">
+												</div>
+												<br/>
+											</td>
+										</tr>
+								</table>
+								<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+									<tr>
+										<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+										<td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
+										<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+									</tr>
+									<tr>
+										<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+										<td bgcolor="#e9e7de" align="center">
+										<table border="0" cellspacing="0" cellpadding="0" summary=" ">
+											<tr>
+												<td>
+												<input type='button' value='ÅÐÏ¿' name='subm' onclick="fnFormModeSubmit('form_header','confirm','','');"  />
+												<input type='button' value='¥×¥ì¥Ó¥å¡¼' name='preview' onclick="lfnSetBrowser('form_header', 'browser_type'); fnFormModeSubmit('form_header','preview','','');"  />
+												</td>
+											</tr>
+										</table>
+										</td>
+										<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+									</tr>
+									<tr>
+										<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
+									</tr>
+								</form>
+								</table>
+
+								<!--¢¥¥Ø¥Ã¥À¡¼ÊÔ½¸¡¡¤³¤³¤Þ¤Ç-->
+
+								<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+									<tr><td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr>
+								</table>
+
+								<!--¢§¥Õ¥Ã¥¿¡¼ÊÔ½¸¡¡¤³¤³¤«¤é-->
+								<table width="678" border="0" cellspacing="1" cellpadding="8" summary=" ">
+									<tr class="fs12n">
+										<td bgcolor="#f2f1ec" align="center" colspan="3"><strong>¥Õ¥Ã¥¿¡¼ÊÔ½¸</strong></td>
+									</tr>
+									<!--{ if $footer_prev == "on"}-->
+									<tr class="fs12n">
+										<td bgcolor="#ffffff" align="center">
+											<!--{if $browser_type == 1 }-->
+												<div style="zoom:0.8"><!--{include file="`$smarty.const.HTML_PATH`/user_data/include/preview/footer.tpl"}--></div>
+											<!--{ else }-->
+												<span class="red12"><b>¥×¥ì¥Ó¥å¡¼¤ÏIE¤Ç¤Î¤ßÉ½¼¨¤µ¤ì¤Þ¤¹¡£</b></span>
+											<!--{ /if }-->
+										</td>
+									</tr>
+									<!--{ /if }-->
+
+									<form name="form_footer" id="form_footer" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->" >
+									<input type="hidden" name="mode" value="">
+									<input type="hidden" name="division" value="footer">
+									<input type="hidden" name="footer_row" value=<!--{$footer_row}-->>
+									<input type="hidden" name="browser_type" value="">
+										<tr class="fs12n">
+											<td bgcolor="#f2f1ec" align="center">
+												<br/>
+												<textarea name="footer" cols=90 rows=<!--{$footer_row}--> align="left" wrap=off style="width: 650px;"><!--{$footer_data}--></textarea>
+												<div align="right">
+												<input type="button" value=<!--{if $footer_row > 13}-->"¾®¤µ¤¯¤¹¤ë"<!--{else}-->"Âç¤­¤¯¤¹¤ë"<!--{/if}--> onClick="ChangeSize(this, footer, 50, 13, footer_row)">
+												</div>
+												<br/>
+											</td>
+										</tr>
+								</table>
+								<table width="678" border="0" cellspacing="0" cellpadding="0" summary=" ">
+									<tr>
+										<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+										<td><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td>
+										<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td>
+									</tr>
+									<tr>
+										<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+										<td bgcolor="#e9e7de" align="center">
+										<table border="0" cellspacing="0" cellpadding="0" summary=" ">
+											<tr>
+												<td>
+												<input type='button' value='ÅÐÏ¿' name='subm' onclick="fnFormModeSubmit('form_footer','confirm','','');"  />
+												<input type='button' value='¥×¥ì¥Ó¥å¡¼' name='preview' onclick="lfnSetBrowser('form_footer', 'browser_type'); fnFormModeSubmit('form_footer','preview','','');"  />
+												</td>
+											</tr>
+										</table>
+										</td>
+										<td bgcolor="#cccccc"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td>
+									</tr>
+									<tr>
+										<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td>
+									</tr>
+								</form>
+								</table>								
+								<!--¢¥¥Õ¥Ã¥¿¡¼ÊÔ½¸¡¡¤³¤³¤Þ¤Ç-->
+								</td>
+								<td background="<!--{$smarty.const.URL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$smarty.const.URL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td>
+							</tr>
+							<tr>
+								<td colspan="3"><img src="<!--{$smarty.const.URL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td>
+							</tr>
+							<tr><td height="30"></td></tr>
+						</table>
+					</td>
+				</tr>
+				<!--¥á¥¤¥ó¥¨¥ê¥¢-->
+			</table>
+			<!--¢¥ÅÐÏ¿¥Æ¡¼¥Ö¥ë¤³¤³¤Þ¤Ç-->
+		</td>
+	</tr>
+</table>
+<!--¡ú¡ú¥á¥¤¥ó¥³¥ó¥Æ¥ó¥Ä¡ú¡ú-->
+
+<script type="text/javascript">
+	/* ¥Æ¥­¥¹¥È¥¨¥ê¥¢¤ÎÂç¤­¤µ¤òÊÑ¹¹¤¹¤ë */
+	function ChangeSize(button, TextArea, Max, Min, row_tmp){
+		if(TextArea.rows <= Min){
+			TextArea.rows=Max; button.value="¾®¤µ¤¯¤¹¤ë"; row_tmp.value=Max;
+		}else{
+			TextArea.rows =Min; button.value="Âç¤­¤¯¤¹¤ë"; row_tmp.value=Min;
+		}
+	}
+	
+	/* ¥Ö¥é¥¦¥¶¤Î¼ïÎà¤ò¥»¥Ã¥È¤¹¤ë */
+	function lfnSetBrowser(form, item){
+		browser_type = 0;
+		if(navigator.userAgent.indexOf("MSIE") >= 0){
+		    browser_type = 1;
+		}
+		else if(navigator.userAgent.indexOf("Gecko/") >= 0){
+		    browser_type = 2;
+		}
+		
+		document[form][item].value=browser_type;
+	}
+
+</script>
