source: branches/version-2_5-dev/data/Smarty/templates/admin/contents/campaign.tpl @ 18873

Revision 18873, 9.5 KB checked in by nanasess, 13 years ago (diff)

管理画面のテンプレートをフロントから分離する(#845)

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
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<script type="text/javascript">
25<!--
26// カートに商品を入れるにチェックが入っているかチェック
27function fnIsCartOn(){
28    if (document.form1.cart_flg.checked <!--{if $is_update}-->|| <!--{$arrForm.cart_flg}--><!--{/if}-->){
29    document.form1.deliv_free_flg.disabled = false;
30    } else {
31    document.form1.deliv_free_flg.disabled = true;   
32    }
33}
34//-->
35</script>
36
37<div id="admin-contents" class="contents-main">
38<form name="form1" id="form1" method="post" action="?">
39<input type="hidden" name="mode" value="" />
40<input type="hidden" name="campaign_id" value="<!--{$campaign_id}-->" />
41<input type="hidden" name="is_update" value="<!--{$is_update}-->" />
42<!--{if $is_update}-->
43<input type="hidden" name="cart_flg" value="<!--{$arrForm.cart_flg}-->" />
44<!--{/if}-->
45  <h2>キャンペーンページ登録</h2>
46  <!--{if $arrErr.campaign_template_path || $arrErr.campaign_path}-->
47  <div class="message">
48    <span class="attention"><!--{$arrErr.campaign_template_path}--><!--{$arrErr.campaign_path}--></span>
49  </div>
50  <!--{/if}-->
51
52  <table class="form">
53    <tr>
54      <th>キャンペーン名<span class="attention"> *</span></td>
55      <td>
56        <!--{if $arrErr.campaign_name}--><span class="attention"><!--{$arrErr.campaign_name}--></span><!--{/if}-->
57        <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}-->" />
58      </td>
59    </tr>
60    <tr>
61      <th>キャンペーン期間<span class="attention"> *</span></td>
62      <td>
63        <!--{if $arrErr.start_year || $arrErr.start_month || $arrErr.start_day}--><span class="attention"><!--{$arrErr.start_year}--><!--{$arrErr.start_month}--><!--{$arrErr.start_day}--></span><!--{/if}-->
64        開始日時:
65        <select name="start_year" <!--{if $arrErr.start_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
66          <option value="" selected>----</option>
67          <!--{html_options options=$arrYear selected=$arrForm.start_year}-->
68        </select>年
69        <select name="start_month" <!--{if $arrErr.start_month || $arrErr.start_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
70          <option value="" selected>--</option>
71          <!--{html_options options=$arrMonth selected=$arrForm.start_month}-->
72        </select>月
73        <select name="start_day" <!--{if $arrErr.start_day || $arrErr.start_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
74          <option value="" selected>--</option>
75          <!--{html_options options=$arrDay selected=$arrForm.start_day}-->
76        </select>日
77        <select name="start_hour" <!--{if $arrErr.start_hour || $arrErr.start_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
78          <option value="" selected>--</option>
79          <!--{html_options options=$arrHour selected=$arrForm.start_hour}-->
80        </select>時
81        <select name="start_minute" <!--{if $arrErr.start_minute || $arrErr.start_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
82          <option value="" selected>--</option>
83          <!--{html_options options=$arrMinutes selected=$arrForm.start_minute}-->
84        </select>分<br />
85        <span class="attention"><!--{$arrErr.end_year}--><!--{$arrErr.end_month}--><!--{$arrErr.end_day}--></span> 
86        停止日時:
87        <select name="end_year" <!--{if $arrErr.end_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
88          <option value="" selected>----</option>
89          <!--{html_options options=$arrYear selected=$arrForm.end_year}-->
90        </select>年
91        <select name="end_month" <!--{if $arrErr.end_month || $arrErr.end_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
92          <option value="" selected>--</option>
93          <!--{html_options options=$arrMonth selected=$arrForm.end_month}-->
94        </select>月
95        <select name="end_day" <!--{if $arrErr.end_day || $arrErr.end_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
96          <option value="" selected>--</option>
97          <!--{html_options options=$arrDay selected=$arrForm.end_day}-->
98        </select>日
99        <select name="end_hour" <!--{if $arrErr.end_hour || $arrErr.end_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
100          <option value="" selected>--</option>
101          <!--{html_options options=$arrHour selected=$arrForm.end_hour}-->
102        </select>時
103        <select name="end_minute" <!--{if $arrErr.end_minute || $arrErr.end_year}-->style="background-color:<!--{$smarty.const.ERR_COLOR|escape}-->"<!--{/if}-->>
104          <option value="" selected>--</option>
105          <!--{html_options options=$arrMinutes selected=$arrForm.end_minute}-->
106        </select>分
107      </td>
108    </tr>
109    <tr>
110      <th>ディレクトリ名<span class="attention"> *</span></td>
111      <td>
112        <!--{if $arrErr.directory_name}--><span class="attention"><!--{$arrErr.directory_name}--></span><!--{/if}-->
113        <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/>
114        <span>※<!--{$smarty.const.SITE_URL}--><!--{$smarty.const.CAMPAIGN_DIR}-->入力したディレクリ名/ でアクセス出来るようになります。</span>
115      </td>
116    </tr>
117    <tr>
118      <th>申込数制御</td>
119      <td>
120        <!--{if $arrErr.limit_count}--><span class="attention"><!--{$arrErr.limit_count}--></span><!--{/if}-->
121        <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}-->"/>&nbsp;件で終了ページに切り替え
122      </td>
123    </tr>
124    <tr>
125      <th>重複申込制御</td>
126      <td><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>
127    </tr>
128    <tr>
129      <th>カートに商品を入れる</td>
130      <td><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>
131    </tr>
132    <tr>
133      <th>送料無料設定</td>
134      <td><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>
135    </tr>
136  </table>
137  <!--▲登録テーブルここまで-->
138
139  <div class="btn"><button type="button" onclick="fnFormModeSubmit('form1', 'regist', '', '');"><span>この内容で登録する</span></button></div>
140
141
142  <h2>キャンペーン一覧</h2>
143
144  <table class="list">
145    <tr>
146      <th rowspan="2">キャンペーン名</th>
147      <th rowspan="2">申込人数</th>
148      <th colspan="2">デザイン設定</th>
149      <th rowspan="2">編集</th>
150      <th rowspan="2">削除</th>
151      <th rowspan="2">CSV</th>
152    </tr>
153    <tr>
154      <th>キャンペーン中</th>
155      <th>キャンペーン終了</th>
156    </tr>
157    <!--{section name=cnt loop=$arrCampaign}-->
158    <tr class="center">
159      <td><!--{$arrCampaign[cnt].campaign_name}--></td>
160      <td><!--{$arrCampaign[cnt].total_count}--></td>
161      <td><a href="<!--{$smarty.const.URL_CAMPAIGN_DESIGN}-->?campaign_id=<!--{$arrCampaign[cnt].campaign_id}-->&status=active">設定</a></td>
162      <td><a href="<!--{$smarty.const.URL_CAMPAIGN_DESIGN}-->?campaign_id=<!--{$arrCampaign[cnt].campaign_id}-->&status=end">設定</a></td>
163      <!--{if $arrCampaign[cnt].campaign_id != $arrForm.campaign_id}-->
164      <td><a href="javascript:fnFormModeSubmit('form1', 'update', 'campaign_id', '<!--{$arrCampaign[cnt].campaign_id}-->')">編集</a></td>
165      <!--{else}-->
166      <td>編集</td>
167      <!--{/if}-->
168      <td><a href="javascript:fnFormModeSubmit('form1', 'delete', 'campaign_id', '<!--{$arrCampaign[cnt].campaign_id}-->')">削除</a></td>
169      <td><a href="javascript:fnFormModeSubmit('form1', 'csv', 'campaign_id', '<!--{$arrCampaign[cnt].campaign_id}-->')">CSV</a></td>
170    </tr>
171    <!--{/section}-->
172  </table>
173
174</div>
175</form>
Note: See TracBrowser for help on using the repository browser.