1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2010 LOCKON CO.,LTD. All Rights Reserved. |
---|
6 | * |
---|
7 | * http://www.lockon.co.jp/ |
---|
8 | * |
---|
9 | * This program is free software; you can redistribute it and/or |
---|
10 | * modify it under the terms of the GNU General Public License |
---|
11 | * as published by the Free Software Foundation; either version 2 |
---|
12 | * of the License, or (at your option) any later version. |
---|
13 | * |
---|
14 | * This program is distributed in the hope that it will be useful, |
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17 | * GNU General Public License for more details. |
---|
18 | * |
---|
19 | * You should have received a copy of the GNU General Public License |
---|
20 | * along with this program; if not, write to the Free Software |
---|
21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
22 | */ |
---|
23 | *}--> |
---|
24 | <form name="form1" id="form1" method="post" action="?" > |
---|
25 | <input type="hidden" name="mode" value="" /> |
---|
26 | <input type="hidden" name="campaign_id" value="<!--{$arrForm.campaign_id}-->" /> |
---|
27 | <input type="hidden" name="status" value="<!--{$arrForm.status}-->" /> |
---|
28 | <input type="hidden" name="header_row" value="" /> |
---|
29 | <input type="hidden" name="contents_row" value="" /> |
---|
30 | <input type="hidden" name="footer_row" value="" /> |
---|
31 | <div id="admin-contents" class="contents-main"> |
---|
32 | <h2><!--{$tpl_campaign_title}--></h2> |
---|
33 | |
---|
34 | <!--{* ▼ヘッダー編集ここから *}--> |
---|
35 | <h3>ヘッダー編集</h3> |
---|
36 | <div id="campaign-design-header"> |
---|
37 | <textarea name="header" cols="90" rows="<!--{$header_row}-->"><!--{$header_data|smarty:nodefaults}--></textarea> |
---|
38 | <div class="btn"> |
---|
39 | <button type="button" onClick="ChangeSize(this, header, 50, 13, header_row)"><span><!--{if $header_row > 13}-->小さくする<!--{else}-->大きくする<!--{/if}--></span></button> |
---|
40 | </div> |
---|
41 | </div> |
---|
42 | <!--{* ▲ヘッダー編集ここまで *}--> |
---|
43 | |
---|
44 | <!--{* ▼コンテンツ編集ここから *}--> |
---|
45 | <h3>コンテンツ編集</h3> |
---|
46 | <div id="campaign-design-contents"> |
---|
47 | <textarea name="contents" cols="90" rows="<!--{$contents_row}-->"><!--{$contents_data|smarty:nodefaults}--></textarea> |
---|
48 | <div class="btn"> |
---|
49 | <button type="button" onclick="win03('./campaign_create_tag.php?campaign_id=<!--{$arrForm.campaign_id}-->', 'search', '550', '500');"><span>商品設定</span></button> |
---|
50 | <button type="button" onClick="ChangeSize(this, contents, 50, 13, contents_row)"><span><!--{if $contents_row > 13}-->小さくする<!--{else}-->大きくする<!--{/if}--></span></button> |
---|
51 | </div> |
---|
52 | </div> |
---|
53 | <!--{* ▲コンテンツ編集ここまで *}--> |
---|
54 | |
---|
55 | <!--{* ▼フッター編集ここから *}--> |
---|
56 | <h3>フッター編集</h3> |
---|
57 | <div id="campaign-design-footer"> |
---|
58 | <textarea name="footer" cols="90" rows="<!--{$footer_row}-->"><!--{$footer_data|smarty:nodefaults}--></textarea> |
---|
59 | <div class="btn"> |
---|
60 | <button type="button" onClick="ChangeSize(this, footer, 50, 13, footer_row)"><span><!--{if $footer_row > 13}-->小さくする<!--{else}-->大きくする<!--{/if}--></span></button> |
---|
61 | </div> |
---|
62 | </div> |
---|
63 | <!--{* ▲フッター編集ここまで *}--> |
---|
64 | |
---|
65 | <div class="btn"> |
---|
66 | <button type="button" onclick="fnFormModeSubmit('form1', 'return', '', ''); return false;"><span>一覧ページへ戻る</span></button> |
---|
67 | <button type="button" onclick="fnFormModeSubmit('form1', 'regist', '', ''); return false;"><span>登録する</span></button> |
---|
68 | <button type="button" onclick="fnFormModeSubmit('form1', 'preview', '', ''); return false;"><span>プレビュー</span></button> |
---|
69 | </div> |
---|
70 | |
---|
71 | </div> |
---|
72 | </form> |
---|
73 | |
---|
74 | <script type="text/javascript"> |
---|
75 | /* テキストエリアの大きさを変更する */ |
---|
76 | function ChangeSize(button, TextArea, Max, Min, row_tmp){ |
---|
77 | if(TextArea.rows <= Min){ |
---|
78 | TextArea.rows=Max; button.value="小さくする"; row_tmp.value=Max; |
---|
79 | }else{ |
---|
80 | TextArea.rows =Min; button.value="大きくする"; row_tmp.value=Min; |
---|
81 | } |
---|
82 | } |
---|
83 | |
---|
84 | /* ブラウザの種類をセットする */ |
---|
85 | function lfnSetBrowser(form, item){ |
---|
86 | browser_type = 0; |
---|
87 | if(navigator.userAgent.indexOf("MSIE") >= 0){ |
---|
88 | browser_type = 1; |
---|
89 | } |
---|
90 | else if(navigator.userAgent.indexOf("Gecko/") >= 0){ |
---|
91 | browser_type = 2; |
---|
92 | } |
---|
93 | |
---|
94 | document[form][item].value=browser_type; |
---|
95 | } |
---|
96 | |
---|
97 | </script> |
---|