1 | <!--{* |
---|
2 | /* |
---|
3 | * This file is part of EC-CUBE |
---|
4 | * |
---|
5 | * Copyright(c) 2000-2007 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 | |
---|
25 | <script type="text/javascript"> |
---|
26 | <!-- |
---|
27 | // カートに商品を入れるにチェックが入っているかチェック |
---|
28 | function fnIsCartOn(){ |
---|
29 | if (document.form1.cart_flg.checked <!--{if $is_update}-->|| <!--{$arrForm.cart_flg}--><!--{/if}-->){ |
---|
30 | document.form1.deliv_free_flg.disabled = false; |
---|
31 | } else { |
---|
32 | document.form1.deliv_free_flg.disabled = true; |
---|
33 | } |
---|
34 | } |
---|
35 | //--> |
---|
36 | </script> |
---|
37 | <!--★★メインコンテンツ★★--> |
---|
38 | <table width="878" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
39 | <form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->"> |
---|
40 | <input type="hidden" name="mode" value=""> |
---|
41 | <input type="hidden" name="campaign_id" value="<!--{$campaign_id}-->" > |
---|
42 | <input type="hidden" name="is_update" value="<!--{$is_update}-->" > |
---|
43 | <!--{if $is_update}--> |
---|
44 | <input type="hidden" name="cart_flg" value="<!--{$arrForm.cart_flg}-->" > |
---|
45 | <!--{/if}--> |
---|
46 | <tr valign="top"> |
---|
47 | <td background="<!--{$TPL_DIR}-->img/contents/navi_bg.gif" height="402"> |
---|
48 | <!--▼SUB NAVI--> |
---|
49 | <!--{include file=$tpl_subnavi}--> |
---|
50 | <!--▲SUB NAVI--> |
---|
51 | </td> |
---|
52 | <td class="mainbg"> |
---|
53 | <!--▼登録テーブルここから--> |
---|
54 | <table width="737" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
55 | <!--メインエリア--> |
---|
56 | <tr> |
---|
57 | <td align="center"> |
---|
58 | <table width="706" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
59 | |
---|
60 | <tr><td height="14"></td></tr> |
---|
61 | <tr> |
---|
62 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_top.jpg" width="706" height="14" alt=""></td> |
---|
63 | </tr> |
---|
64 | <tr> |
---|
65 | <td background="<!--{$TPL_DIR}-->img/contents/main_left.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> |
---|
66 | <td bgcolor="#cccccc"> |
---|
67 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
68 | <tr> |
---|
69 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td> |
---|
70 | </tr> |
---|
71 | <tr> |
---|
72 | <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> |
---|
73 | <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->キャンペーンページ登録</span></td> |
---|
74 | <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> |
---|
75 | </tr> |
---|
76 | <tr> |
---|
77 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td> |
---|
78 | </tr> |
---|
79 | <tr> |
---|
80 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> |
---|
81 | </tr> |
---|
82 | </table> |
---|
83 | |
---|
84 | <!--▼登録テーブルここから--> |
---|
85 | <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" "> |
---|
86 | <thead> |
---|
87 | <tr> |
---|
88 | <td bgcolor="#f2f1ec" width="140" class="fs12n">キャンペーン名<span class="red"> *</span></td> |
---|
89 | <td bgcolor="#ffffff" width="538" class="fs12n"><span class="red"><!--{$arrErr.campaign_name}--></span><input type="text" name="campaign_name" size="60" class="box60" value="<!--{$arrForm.campaign_name|escape}-->" <!--{if $arrErr.campaign_name}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}--> maxlength="<!--{$smarty.const.STEXT_LEN}-->"/></span> |
---|
90 | </tr> |
---|
91 | </thead> |
---|
92 | <tfoot> |
---|
93 | <tr class="fs12n"> |
---|
94 | <td bgcolor="#f2f1ec" width="140">キャンペーン期間<span class="red"> *</span></td> |
---|
95 | <td bgcolor="#ffffff" width="538"> |
---|
96 | <span class="red"><!--{$arrErr.start_year}--><!--{$arrErr.start_month}--><!--{$arrErr.start_day}--></span> |
---|
97 | 開始日時: |
---|
98 | <select name="start_year" <!--{if $arrErr.start_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->> |
---|
99 | <option value="" selected>----</option> |
---|
100 | <!--{html_options options=$arrYear selected=$arrForm.start_year}--> |
---|
101 | </select>年 |
---|
102 | <select name="start_month" <!--{if $arrErr.start_month || $arrErr.start_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->> |
---|
103 | <option value="" selected>--</option> |
---|
104 | <!--{html_options options=$arrMonth selected=$arrForm.start_month}--> |
---|
105 | </select>月 |
---|
106 | <select name="start_day" <!--{if $arrErr.start_day || $arrErr.start_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->> |
---|
107 | <option value="" selected>--</option> |
---|
108 | <!--{html_options options=$arrDay selected=$arrForm.start_day}--> |
---|
109 | </select>日 |
---|
110 | <select name="start_hour" <!--{if $arrErr.start_hour || $arrErr.start_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->> |
---|
111 | <option value="" selected>--</option> |
---|
112 | <!--{html_options options=$arrHour selected=$arrForm.start_hour}--> |
---|
113 | </select>時 |
---|
114 | <select name="start_minute" <!--{if $arrErr.start_minute || $arrErr.start_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->> |
---|
115 | <option value="" selected>--</option> |
---|
116 | <!--{html_options options=$arrMinutes selected=$arrForm.start_minute}--> |
---|
117 | </select>分<br/><br/><br/> |
---|
118 | <span class="red"><!--{$arrErr.end_year}--><!--{$arrErr.end_month}--><!--{$arrErr.end_day}--></span> |
---|
119 | 停止日時: |
---|
120 | <select name="end_year" <!--{if $arrErr.end_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->> |
---|
121 | <option value="" selected>----</option> |
---|
122 | <!--{html_options options=$arrYear selected=$arrForm.end_year}--> |
---|
123 | </select>年 |
---|
124 | <select name="end_month" <!--{if $arrErr.end_month || $arrErr.end_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->> |
---|
125 | <option value="" selected>--</option> |
---|
126 | <!--{html_options options=$arrMonth selected=$arrForm.end_month}--> |
---|
127 | </select>月 |
---|
128 | <select name="end_day" <!--{if $arrErr.end_day || $arrErr.end_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->> |
---|
129 | <option value="" selected>--</option> |
---|
130 | <!--{html_options options=$arrDay selected=$arrForm.end_day}--> |
---|
131 | </select>日 |
---|
132 | <select name="end_hour" <!--{if $arrErr.end_hour || $arrErr.end_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->> |
---|
133 | <option value="" selected>--</option> |
---|
134 | <!--{html_options options=$arrHour selected=$arrForm.end_hour}--> |
---|
135 | </select>時 |
---|
136 | <select name="end_minute" <!--{if $arrErr.end_minute || $arrErr.end_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->> |
---|
137 | <option value="" selected>--</option> |
---|
138 | <!--{html_options options=$arrMinutes selected=$arrForm.end_minute}--> |
---|
139 | </select>分<br/><br/><br/> |
---|
140 | </td> |
---|
141 | </tr> |
---|
142 | <tr> |
---|
143 | <td bgcolor="#f2f1ec" width="140" class="fs12n">ディレクトリ名<span class="red"> *</span></td> |
---|
144 | <td bgcolor="#ffffff" width="538"> |
---|
145 | <span class="red12"><!--{$arrErr.directory_name}--></span><input type="text" name="directory_name" size="60" class="box60" value="<!--{$arrForm.directory_name|escape}-->" <!--{if $arrErr.directory_name}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}--> maxlength="<!--{$smarty.const.STEXT_LEN}-->"/></span><br/> |
---|
146 | <span class="fs10">※<!--{$smarty.const.SITE_URL|sfTrimURL}--><!--{$smarty.const.URL_DIR|sfTrimURL}--><!--{$smarty.const.CAMPAIGN_URL}-->入力したディレクリ名/ でアクセス出来るようになります。</span> |
---|
147 | </td> |
---|
148 | </tr> |
---|
149 | <tr> |
---|
150 | <td bgcolor="#f2f1ec" width="140" class="fs12n">申込数制御</td> |
---|
151 | <td bgcolor="#ffffff" width="538" class="fs12n"><span class="red"><!--{$arrErr.limit_count}--></span><input type="text" name="limit_count" size="54" class="box6" value="<!--{$arrForm.limit_count|escape}-->" <!--{if $arrErr.limit_count}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}--> maxlength="<!--{$smarty.const.STEXT_LEN}-->"/> 件で終了ページに切り替え |
---|
152 | </td> |
---|
153 | </tr> |
---|
154 | <tr class="fs12n"> |
---|
155 | <td bgcolor="#f2f1ec" width="140">重複申込制御</td> |
---|
156 | <td bgcolor="#ffffff" width="538"><input type="checkbox" name="orverlapping_flg" id="orverlapping_flg" value="1" <!--{if $arrForm.orverlapping_flg eq 1}--> checked <!--{/if}--> ><label for="orverlapping_flg">重複申込を制御する</label></td> |
---|
157 | </tr> |
---|
158 | <tr class="fs12n"> |
---|
159 | <td bgcolor="#f2f1ec" width="140">カートに商品を入れる</td> |
---|
160 | <td bgcolor="#ffffff" width="538"><input type="checkbox" onclick="fnIsCartOn()" name="cart_flg" id="cart_flg" value="1" <!--{if $arrForm.cart_flg eq 1}--> checked <!--{/if}--> <!--{if $is_update}-->disabled<!--{/if}-->><label for="cart_flg">カートに商品を入れるようにする</label></td> |
---|
161 | </tr> |
---|
162 | <tr class="fs12n"> |
---|
163 | <td bgcolor="#f2f1ec" width="140">送料無料設定</td> |
---|
164 | <td bgcolor="#ffffff" width="538"><input type="checkbox" name="deliv_free_flg" id="deliv_free_flg" value="1" <!--{if $arrForm.deliv_free_flg eq 1}--> checked <!--{/if}--> ><label for="deliv_free_flg">送料無料</label></td> |
---|
165 | </tr> |
---|
166 | </tfoot> |
---|
167 | </table> |
---|
168 | <!--▲登録テーブルここまで--> |
---|
169 | |
---|
170 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
171 | <tr> |
---|
172 | <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td> |
---|
173 | <td><img src="<!--{$TPL_DIR}-->img/contents/tbl_top.gif" width="676" height="7" alt=""></td> |
---|
174 | <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="5" alt=""></td> |
---|
175 | </tr> |
---|
176 | <tr> |
---|
177 | <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> |
---|
178 | <td bgcolor="#e9e7de" align="center"> |
---|
179 | <table border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
180 | <tr> |
---|
181 | <td><a href="javascript:fnFormModeSubmit('form1', 'regist', '', '');"><img onMouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_regist_on.jpg',this)" onMouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/contents/btn_regist.jpg',this)" src="<!--{$TPL_DIR}-->img/contents/btn_regist.jpg" width="123" height="24" alt="この内容で登録する" border="0"></a></td> |
---|
182 | </tr> |
---|
183 | </table> |
---|
184 | </td> |
---|
185 | <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> |
---|
186 | </tr> |
---|
187 | <tr> |
---|
188 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/tbl_bottom.gif" width="678" height="8" alt=""></td> |
---|
189 | </tr> |
---|
190 | </form> |
---|
191 | </table> |
---|
192 | |
---|
193 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
194 | <tr><td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td></tr> |
---|
195 | </table> |
---|
196 | |
---|
197 | <table width="678" border="0" cellspacing="0" cellpadding="0" summary=" "> |
---|
198 | <tr> |
---|
199 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_top.gif" width="678" height="7" alt=""></td> |
---|
200 | </tr> |
---|
201 | <tr> |
---|
202 | <td background="<!--{$TPL_DIR}-->img/contents/contents_title_left_bg.gif"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_left.gif" width="22" height="12" alt=""></td> |
---|
203 | <td bgcolor="#636469" width="638" class="fs14n"><span class="white"><!--コンテンツタイトル-->キャンペーン一覧</span></td> |
---|
204 | <td background="<!--{$TPL_DIR}-->img/contents/contents_title_right_bg.gif"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="18" height="1" alt=""></td> |
---|
205 | </tr> |
---|
206 | <tr> |
---|
207 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/contents_title_bottom.gif" width="678" height="7" alt=""></td> |
---|
208 | </tr> |
---|
209 | <tr> |
---|
210 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bar.jpg" width="678" height="10" alt=""></td> |
---|
211 | </tr> |
---|
212 | </table> |
---|
213 | |
---|
214 | <!--▼一覧表示エリアここから--> |
---|
215 | <table width="678" border="0" cellspacing="1" cellpadding="8" summary=" "> |
---|
216 | <tr bgcolor="#f2f1ec" align="center" class="fs12n"> |
---|
217 | <td width="205" rowspan="2">キャンペーン名</td> |
---|
218 | <td width="50" rowspan="2">申込人数</td> |
---|
219 | <td width="160" colspan="2">デザイン設定</td> |
---|
220 | <td width="50" rowspan="2">編集</td> |
---|
221 | <td width="50" rowspan="2">削除</td> |
---|
222 | <td width="50" rowspan="2">CSV</td> |
---|
223 | </tr> |
---|
224 | <tr bgcolor="#f2f1ec" align="center" class="fs12n"> |
---|
225 | <td width="80">キャンペーン中</td> |
---|
226 | <td width="80">キャンペーン終了</td> |
---|
227 | </tr> |
---|
228 | <!--{section name=cnt loop=$arrCampaign}--> |
---|
229 | <tr bgcolor="#ffffff" align="center" class="fs12n"> |
---|
230 | <td width="205"><!--{$arrCampaign[cnt].campaign_name}--></td> |
---|
231 | <td width="50"><!--{$arrCampaign[cnt].total_count}--></td> |
---|
232 | <td width="80"><a href="<!--{$smarty.const.URL_CAMPAIGN_DESIGN}-->?campaign_id=<!--{$arrCampaign[cnt].campaign_id}-->&status=active">設定</a></td> |
---|
233 | <td width="80"><a href="<!--{$smarty.const.URL_CAMPAIGN_DESIGN}-->?campaign_id=<!--{$arrCampaign[cnt].campaign_id}-->&status=end">設定</a></td> |
---|
234 | <!--{if $arrCampaign[cnt].campaign_id != $arrForm.campaign_id}--> |
---|
235 | <td width="50"><a href="javascript:fnFormModeSubmit('form1', 'update', 'campaign_id', '<!--{$arrCampaign[cnt].campaign_id}-->')">編集</a></td> |
---|
236 | <!--{else}--> |
---|
237 | <td width="50">編集</td> |
---|
238 | <!--{/if}--> |
---|
239 | <td width="50"><a href="javascript:fnFormModeSubmit('form1', 'delete', 'campaign_id', '<!--{$arrCampaign[cnt].campaign_id}-->')">削除</a></td> |
---|
240 | <td width="50"><a href="javascript:fnFormModeSubmit('form1', 'csv', 'campaign_id', '<!--{$arrCampaign[cnt].campaign_id}-->')">CSV</a></td> |
---|
241 | </tr> |
---|
242 | <!--{/section}--> |
---|
243 | </table> |
---|
244 | <!--▲一覧表示エリアここまで--> |
---|
245 | |
---|
246 | </td> |
---|
247 | <td background="<!--{$TPL_DIR}-->img/contents/main_right.jpg"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="14" height="1" alt=""></td> |
---|
248 | </tr> |
---|
249 | <tr> |
---|
250 | <td colspan="3"><img src="<!--{$TPL_DIR}-->img/contents/main_bottom.jpg" width="706" height="14" alt=""></td> |
---|
251 | </tr> |
---|
252 | <tr><td height="30"></td></tr> |
---|
253 | </table> |
---|
254 | </td> |
---|
255 | </tr> |
---|
256 | <!--メインエリア--> |
---|
257 | </table> |
---|
258 | <!--▲登録テーブルここまで--> |
---|
259 | </td> |
---|
260 | </tr> |
---|
261 | </form> |
---|
262 | </table> |
---|
263 | <!--★★メインコンテンツ★★--> |
---|