source: branches/comu-ver2/data/Smarty/templates/default/admin/mail/index.tpl @ 17351

Revision 17351, 16.8 KB checked in by pineray, 16 years ago (diff)
  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2008 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<div id="mail" class="contents-main">
25<form name="form_search" id="form_search" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
26<input type="hidden" name="mode" value="search" />
27  <h2>配信先検索条件設定</h2>
28
29  <!--{* 検索条件設定テーブルここから *}-->
30  <table>
31    <tr>
32      <th>顧客名</th>
33      <td>
34        <!--{if $arrErr.name}--><span class="attention"><!--{$arrErr.name}--></span><br /><!--{/if}-->
35        <input type="text" name="name" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$list_data.name|escape}-->" size="30" class="box30"  style="<!--{$arrErr.name|sfGetErrorColor}-->" />
36      </td>
37    </tr>
38    <tr>
39      <th>顧客名(カナ)</th>
40      <td>
41        <!--{if $arrErr.kana}--><span class="attention"><!--{$arrErr.kana}--></span><br /><!--{/if}-->
42        <input type="text" name="kana" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$list_data.kana|escape}-->" size="30" class="box30"  style="<!--{$arrErr.kana|sfGetErrorColor}-->" />
43      </td>
44    </tr>
45    <tr>
46      <th>都道府県</th>
47      <td>
48        <!--{if $arrErr.pref}--><span class="attention"><!--{$arrErr.pref}--></span><br /><!--{/if}-->
49        <select name="pref">
50          <option value="" selected="selected"  style="<!--{$arrErr.pref|sfGetErrorColor}-->">都道府県を選択</option>
51          <!--{html_options options=$arrPref selected=$list_data.pref}-->
52        </select>
53      </td>
54    </tr>
55    <tr>
56      <th>TEL</th>
57      <td>
58        <!--{if $arrErr.tel}--><span class="attention"><!--{$arrErr.tel}--></span><br /><!--{/if}-->
59        <input type="text" name="tel" maxlength="<!--{$smarty.const.TEL_LEN}-->" value="<!--{$list_data.tel|escape}-->" size="30" class="box30" style="<!--{$arrErr.tel|sfGetErrorColor}-->" />
60      </td>
61    </tr>
62    <tr>
63      <th>性別</th>
64      <td>
65        <!--{html_checkboxes_ex name="sex" options=$arrSex separator="&nbsp;" selected=$list_data.sex}-->
66      </td>
67    </tr>
68    <tr>
69      <th>誕生月</th>
70      <td>
71        <!--{if $arrErr.birth_month}--><span class="attention"><!--{$arrErr.birth_month}--></span><br /><!--{/if}-->
72        <select name="birth_month" style="<!--{$arrErr.birth_month|sfGetErrorColor}-->" >
73          <option value="" selected="selected">--</option>
74          <!--{html_options options=$objDate->getMonth() selected=$list_data.birth_month|escape}-->
75        </select>月
76      </td>
77    </tr>
78    <tr>
79      <th>配信形式</th>
80      <td>
81        <!--{if $arrErr.htmlmail}--><span class="attention"><!--{$arrErr.htmlmail}--></span><br /><!--{/if}-->
82        <!--{html_radios name="htmlmail" options=$arrHtmlmail separator="&nbsp;" selected=$list_data.htmlmail}-->
83      </td>
84    </tr>
85    <tr>
86      <th>購入商品コード</th>
87      <td>
88        <!--{if $arrErr.buy_product_code}--><span class="attention"><!--{$arrErr.buy_product_code}--></span><!--{/if}-->
89        <input type="text" name="buy_product_code" value="<!--{$list_data.buy_product_code}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" style="<!--{$arrErr.buy_product_code|sfGetErrorColor}-->" />
90      </td>
91    </tr>
92    <tr>
93      <th>購入回数</th>
94      <td>
95        <!--{if $arrErr.buy_times_from || $arrErr.buy_times_to}--><span class="attention"><!--{$arrErr.buy_times_from}--><!--{$arrErr.buy_times_to}--></span><br /><!--{/if}-->
96        <input type="text" name="buy_times_from" maxlength="<!--{$smarty.const.INT_LEN}-->" value="<!--{$list_data.buy_times_from|escape}-->" size="6" class="box6" style="<!--{$arrErr.buy_times_from|sfGetErrorColor}-->" /> 回 ~
97        <input type="text" name="buy_times_to" maxlength="<!--{$smarty.const.INT_LEN}-->" value="<!--{$list_data.buy_times_to|escape}-->" size="6" class="box6" style="<!--{$arrErr.buy_times_to|sfGetErrorColor}-->" /> 回
98      </td>
99    </tr>
100    <tr>
101      <th>購入金額</th>
102      <td>
103        <!--{if $arrErr.buy_total_from || $arrErr.buy_total_to}-->
104          <span class="attention"><!--{$arrErr.buy_total_from}--><!--{$arrErr.buy_total_to}--></span><br />
105        <!--{/if}-->
106        <input type="text" name="buy_total_from" maxlength="<!--{$smarty.const.INT_LEN}-->" value="<!--{$list_data.buy_total_from|escape}-->" size="6" class="box6" <!--{if $arrErr.buy_total_from || $arrErr.buy_total_to}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 円 ~
107        <input type="text" name="buy_total_to" maxlength="<!--{$smarty.const.INT_LEN}-->" value="<!--{$list_data.buy_total_to|escape}-->" size="6" class="box6" <!--{if $arrErr.buy_total_from || $arrErr.buy_total_to}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 円
108      </td>
109    </tr>
110    <!--{*非会員はメルマガ非対応
111    <tr>
112      <th>種別</th>
113      <td>
114      <!--{html_checkboxes name="customer" options=$arrCustomerType separator="&nbsp;" selected=$list_data.customer}-->
115      </td>
116    </tr>
117    *}-->
118    <tr>
119      <th>メールアドレス</th>
120      <td>
121        <!--{if $arrErr.email}--><span class="attention"><!--{$arrErr.email}--></span><!--{/if}-->
122        <span style="<!--{$arrErr.email|sfGetErrorColor}-->">
123        <input type="text" name="email" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$list_data.email|escape}-->" size="60" class="box60"  style="<!--{$arrErr.email|sfGetErrorColor}-->"/>
124        </span>
125      </td>
126    </tr>
127   
128    <tr>
129      <th>携帯メールアドレス</th>
130      <td>
131        <!--{if $arrErr.email_mobile}--><span class="attention"><!--{$arrErr.email_mobile}--></span><!--{/if}-->
132        <span style="<!--{$arrErr.email_mobile|sfGetErrorColor}-->">
133        <input type="text" name="email_mobile" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$list_data.email_mobile|escape}-->" size="60" class="box60"  style="<!--{$arrErr.email_mobile|sfGetErrorColor}-->"/>
134        </span>
135      </td>
136    </tr>
137   
138    <tr>
139      <th>配信メールアドレス種別</th>
140      <td>
141        <!--{html_radios name="mail_type" options=$arrMailType separator="&nbsp;" selected=$list_data.mail_type}-->
142      </td>
143    </tr>
144                                 
145    <tr>
146      <th>職業</th>
147      <td>
148        <!--{if $arrErr.job}--><span class="attention"><!--{$arrErr.job}--></span><!--{/if}-->
149        <!--{html_checkboxes_ex name="job" options=$arrJob separator="&nbsp;" selected=$list_data.job}-->
150      </td>
151    </tr>
152           
153    <tr>
154      <th>生年月日</th>
155      <td>
156        <!--{if $arrErr.b_start_year || $arrErr.b_end_year}--><span class="attention"><!--{$arrErr.b_start_year}--><!--{$arrErr.b_end_year}--></span><br /><!--{/if}-->
157        <select name="b_start_year" style="<!--{$arrErr.b_start_year|sfGetErrorColor}-->">
158          <option value="" selected="selected">----</option>
159          <!--{html_options options=$objDate->getYear($smarty.const.BIRTH_YEAR) selected=$list_data.b_start_year}-->
160        </select>年
161        <select name="b_start_month" style="<!--{$arrErr.b_start_year|sfGetErrorColor}-->">
162          <option value="" selected="selected">--</option>
163          <!--{html_options options=$objDate->getMonth() selected=$list_data.b_start_month}-->
164        </select>月
165        <select name="b_start_day" style="<!--{$arrErr.b_start_year|sfGetErrorColor}-->">
166          <option value="" selected="selected">--</option>
167          <!--{html_options options=$objDate->getDay() selected=$list_data.b_start_day}-->
168        </select>日&nbsp;~&nbsp;
169        <select name="b_end_year" style="<!--{$arrErr.b_end_year|sfGetErrorColor}-->">
170          <option value="" selected="selected">----</option>
171          <!--{html_options options=$objDate->getYear($smarty.const.BIRTH_YEAR) selected=$list_data.b_end_year}-->
172        </select>年
173        <select name="b_end_month" style="<!--{$arrErr.b_end_year|sfGetErrorColor}-->">
174          <option value="" selected="selected">--</option>
175          <!--{html_options options=$objDate->getMonth() selected=$list_data.b_end_month}-->
176        </select>月
177        <select name="b_end_day" style="<!--{$arrErr.b_end_year|sfGetErrorColor}-->">
178          <option value="" selected="selected">--</option>
179          <!--{html_options options=$objDate->getDay() selected=$list_data.b_end_day}-->
180        </select>日
181      </td>
182    </tr> 
183    <tr>
184      <th>登録日</th>
185      <td>
186        <!--{if $arrErr.start_year || $arrErr.end_year}--><span class="attention"><!--{$arrErr.start_year}--><!--{$arrErr.end_year}--></span><br /><!--{/if}-->
187        <select name="start_year"  style="<!--{$arrErr.start_year|sfGetErrorColor}-->">
188          <option value="" selected="selected">----</option>
189          <!--{html_options options=$objDate->getYear($smarty.const.RELEASE_YEAR) selected=$list_data.start_year}-->
190        </select>年
191        <select name="start_month" style="<!--{$arrErr.start_year|sfGetErrorColor}-->">
192          <option value="" selected="selected">--</option>
193          <!--{html_options options=$objDate->getMonth() selected=$list_data.start_month}-->
194        </select>月
195        <select name="start_day" style="<!--{$arrErr.start_year|sfGetErrorColor}-->">
196          <option value="" selected="selected">--</option>
197          <!--{html_options options=$objDate->getDay() selected=$list_data.start_day}-->
198        </select>日&nbsp;~&nbsp;
199        <select name="end_year"  style="<!--{$arrErr.end_year|sfGetErrorColor}-->">
200          <option value="" selected="selected">----</option>
201          <!--{html_options options=$objDate->getYear($smarty.const.RELEASE_YEAR) selected=$list_data.end_year}-->
202        </select>年
203        <select name="end_month" style="<!--{$arrErr.end_year|sfGetErrorColor}-->">
204          <option value="" selected="selected">--</option>
205          <!--{html_options options=$objDate->getMonth() selected=$list_data.end_month}-->
206        </select>月
207        <select name="end_day" style="<!--{$arrErr.end_year|sfGetErrorColor}-->">
208          <option value="" selected="selected">--</option>
209          <!--{html_options options=$objDate->getDay() selected=$list_data.end_day}-->
210        </select>日
211      </td>
212    </tr>     
213    <tr>
214      <th>最終購入日</th>
215      <td>
216        <!--{if $arrErr.buy_start_year || $arrErr.buy_end_year}--><span class="attention"><!--{$arrErr.buy_start_year}--><!--{$arrErr.buy_end_year}--></span><br /><!--{/if}-->
217        <select name="buy_start_year" style="<!--{$arrErr.buy_start_year|sfGetErrorColor}-->">
218          <option value="" selected="selected">----</option>
219          <!--{html_options options=$objDate->getYear($smarty.const.RELEASE_YEAR)  selected=$list_data.buy_start_year}-->
220        </select>年
221        <select name="buy_start_month" style="<!--{$arrErr.buy_start_year|sfGetErrorColor}-->">
222          <option value="" selected="selected">--</option>
223          <!--{html_options options=$objDate->getMonth() selected=$list_data.buy_start_month}-->
224        </select>月
225        <select name="buy_start_day" style="<!--{$arrErr.buy_start_year|sfGetErrorColor}-->">
226          <option value="" selected="selected">--</option>
227          <!--{html_options options=$objDate->getDay() selected=$list_data.buy_start_day}-->
228        </select>日&nbsp;~&nbsp;
229        <select name="buy_end_year" style="<!--{$arrErr.buy_end_year|sfGetErrorColor}-->">
230          <option value="" selected="selected">----</option>
231          <!--{html_options options=$objDate->getYear($smarty.const.RELEASE_YEAR)  selected=$list_data.buy_end_year}-->
232        </select>年
233        <select name="buy_end_month" style="<!--{$arrErr.buy_end_year|sfGetErrorColor}-->">
234          <option value="" selected="selected">--</option>
235          <!--{html_options options=$objDate->getMonth()  selected=$list_data.buy_end_month}-->
236        </select>月
237        <select name="buy_end_day" style="<!--{$arrErr.buy_end_year|sfGetErrorColor}-->">
238          <option value="" selected="selected">--</option>
239          <!--{html_options options=$objDate->getDay() selected=$list_data.buy_end_day}-->
240        </select>日
241      </td>
242    </tr>
243           
244    <tr>
245      <th>購入商品名</th>
246      <td>
247        <!--{if $arrErr.buy_product_name}--><span class="attention"><!--{$arrErr.buy_product_name}--></span><!--{/if}-->
248        <span style="<!--{$arrErr.buy_product_name|sfGetErrorColor}-->">
249        <input type="text" name="buy_product_name" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$list_data.buy_product_name|escape}-->" size="30" class="box30"  style="<!--{$arrErr.buy_product_name|sfGetErrorColor}-->" />
250        </span>
251      </td>
252    </tr>
253    <tr>
254      <th>カテゴリ</th>
255      <td>
256        <select name="category_id" style="<!--{if $arrErr.category_id != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->">
257          <option value="">選択してください</option>
258          <!--{html_options options=$arrCatList selected=$list_data.category_id}-->
259        </select>
260      </td>
261    </tr>
262    <tr>
263      <th>キャンペーン</th>
264      <td>
265        <select name="campaign_id" style="<!--{if $arrErr.campaign_id != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}--><!--{/if}-->">
266          <option value="">選択してください</option>
267          <!--{html_options options=$arrCampaignList selected=$list_data.campaign_id}-->
268        </select>
269      </td>
270    </tr>
271  </table>
272  <!--{* 検索条件設定テーブルここまで *}-->
273
274  <div class="btn">
275    <button type="submit"><span>この条件で検索する</span></button>
276  </div>
277</form>
278
279
280<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'back') }-->
281
282<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
283<input type="hidden" name="mode" value="" />
284<input type="hidden" name="search_pageno" value="<!--{$tpl_pageno}-->" />
285<input type="hidden" name="result_email" value="" />
286<!--{foreach key=key item=val from=$arrHidden}--> 
287<input type="hidden" name="<!--{$key}-->" value="<!--{$val|escape}-->" />
288<!--{/foreach}-->
289
290  <h2>検索結果一覧</h2>
291 <p>
292    <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。
293    <!--{if $smarty.const.ADMIN_MODE == '1'}-->
294    <button type="button" onclick="fnModeSubmit('delete_all','','');"><span>検索結果をすべて削除</span></button>
295    <!--{/if}-->
296    <button type="submit" onclick="document.form1['mode'].value='input';"><span>配信内容を設定する</span></button>
297  </p>
298  <!--{include file=$tpl_pager}-->
299
300  <!--{if count($arrResults) > 0}-->
301
302  <!--検索結果表示テーブル-->
303  <table class="list">
304    <tr>
305      <th>#</th>
306      <th>会員番号</th>
307      <th>受注番号</th>
308      <th>名前</th>
309      <th>メールアドレス</th>
310      <th>希望配信</th>
311      <th>登録日</th>
312      <th>削除</th>
313    </tr>
314    <!--{section name=i loop=$arrResults}-->
315    <tr>
316      <td class="center"><!--{$smarty.section.i.iteration}--></td>
317      <td class="center"><!--{$arrResults[i].customer_id|default:"非会員"}--></td>
318     
319      <!--{assign var=key value="`$arrResults[i].customer_id`"}-->
320      <td class="center">
321        <!--{foreach key=key item=val from=$arrCustomerOrderId[$key]}-->
322        <a href="#" onclick="fnOpenWindow('../order/edit.php?order_id=<!--{$val}-->','order_disp','800','900'); return false;" ><!--{$val}--></a><br />
323        <!--{foreachelse}-->
324        -
325        <!--{/foreach}-->
326      </td>
327
328      <td><!--{$arrResults[i].name01|escape}--> <!--{$arrResults[i].name02|escape}--></td>
329      <td><!--{$arrResults[i].email|escape}--></td>
330      <!--{assign var="key" value="`$arrResults[i].mailmaga_flg`"}-->
331      <td class="center"><!--{$arrMAILMAGATYPE[$key]}--></td>
332      <td><!--{$arrResults[i].create_date|sfDispDBDate}--></td>
333      <!--{if $arrResults[i].customer_id != ""}-->
334      <td class="center">-</td>
335      <!--{else}-->
336      <td class="center"><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnFormModeSubmit('form1','delete','result_email','<!--{$arrResults[i].email|escape}-->'); return false;">削除</a></td>
337      <!--{/if}-->
338    </tr>
339    <!--{/section}-->
340  </table>
341  <!--検索結果表示テーブル-->
342  <!--{/if}-->
343
344</form>
345
346<!--{/if}-->
347</div>
Note: See TracBrowser for help on using the repository browser.