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

Revision 18117, 18.4 KB checked in by Seasoft, 13 years ago (diff)

CSS「;」漏れを修正。

  • 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<script type="text/javascript">
25<!--
26
27  function fnCustomerPage(pageno) {
28    document.form1.search_pageno.value = pageno;
29    document.form1.submit();
30  }
31
32  function fnCSVDownload(pageno) {
33    document.form1['csv_mode'].value = 'csv';
34    document.form1.submit();
35    document.form1['csv_mode'].value = '';
36    return false;
37  }
38
39  function fnDelete(customer_id) {
40    if (confirm('この顧客情報を削除しても宜しいですか?')) {
41      document.form1.mode.value = "delete"
42      document.form1['edit_customer_id'].value = customer_id;
43      document.form1.submit();
44      return false;
45    }
46  }
47
48  function fnEdit(customer_id) {
49    document.form1.action = './edit.php';
50    document.form1.mode.value = "edit_search"
51    document.form1['edit_customer_id'].value = customer_id;
52    document.form1.search_pageno.value = 1;
53    document.form1.submit();
54    return false;
55  }
56
57  function fnReSendMail(customer_id) {
58    if (confirm('仮登録メールを再送しても宜しいですか?')) {
59      document.form1.mode.value = "resend_mail"
60      document.form1['edit_customer_id'].value = customer_id;
61      document.form1.submit();
62      return false;
63    }
64  }
65
66  function fnSubmit() {
67    document.form1.submit();
68    return false;
69  }
70//-->
71</script>
72
73
74<div id="customer" class="contents-main">
75<form name="form_search" id="form_search" method="post" action="?">
76<input type="hidden" name="mode" value="search" />
77  <h2>検索条件設定</h2>
78
79  <!--検索条件設定テーブルここから-->
80  <table class="form">
81    <tr>
82      <th>顧客ID</th>
83      <td><!--{if $arrErr.customer_id}--><span class="attention"><!--{$arrErr.customer_id}--></span><br /><!--{/if}--><input type="text" name="customer_id" maxlength="<!--{$smarty.const.INT_LEN}-->" value="<!--{$arrForm.customer_id|escape}-->" size="30" class="box30" <!--{if $arrErr.customer_id}--><!--{sfSetErrorStyle}--><!--{/if}--> /></td>
84    </tr>
85    <tr>
86      <th>顧客名</th>
87      <td><!--{if $arrErr.name}--><span class="attention"><!--{$arrErr.name}--></span><br /><!--{/if}--><input type="text" name="name" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$arrForm.name|escape}-->" size="30" class="box30" <!--{if $arrErr.name}--><!--{sfSetErrorStyle}--><!--{/if}--> /></td>
88    </tr>
89    <tr>
90      <th>顧客名(カナ)</th>
91      <td><!--{if $arrErr.kana}--><span class="attention"><!--{$arrErr.kana}--></span><br /><!--{/if}--><input type="text" name="kana" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$arrForm.kana|escape}-->" size="30" class="box30" <!--{if $arrErr.kana}--><!--{sfSetErrorStyle}--><!--{/if}--> /></td>
92    </tr>
93    <tr>
94      <th>会員状態</th>
95      <td><!--{html_checkboxes name="status" options=$arrStatus separator="&nbsp;" selected=$arrForm.status}--></td>
96    </tr>
97    <tr>
98      <th>都道府県</th>
99      <td>
100        <!--{if $arrErr.pref}--><span class="attention"><!--{$arrErr.pref}--></span><br /><!--{/if}-->
101        <select name="pref">
102          <option value="" selected="selected" <!--{if $arrErr.name}--><!--{sfSetErrorStyle}--><!--{/if}-->>都道府県を選択</option>
103          <!--{html_options options=$arrPref selected=$arrForm.pref}-->
104        </select>
105      </td>
106    </tr>
107    <tr>
108      <th>性別</th>
109      <td><!--{html_checkboxes name="sex" options=$arrSex separator="&nbsp;" selected=$arrForm.sex}--></td>
110    </tr>
111    <tr>
112      <th>誕生月</th>
113      <td><!--{if $arrErr.birth_month}--><span class="attention"><!--{$arrErr.birth_month}--></span><br /><!--{/if}-->
114        <select name="birth_month" style="<!--{$arrErr.birth_month|sfGetErrorColor}-->" >
115          <option value="" selected="selected">--</option>
116          <!--{html_options options=$objDate->getMonth() selected=$arrForm.birth_month}-->
117        </select>月
118      </td>
119    </tr>
120    <tr>
121      <th>誕生日</th>
122      <td>
123        <!--{if $arrErr.b_start_year || $arrErr.b_end_year}--><span class="attention"><!--{$arrErr.b_start_year}--><!--{$arrErr.b_end_year}--></span><br /><!--{/if}-->
124        <select name="b_start_year" <!--{if $arrErr.b_start_year || $arrErr.b_end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
125          <option value="" selected="selected">----</option>
126          <!--{html_options options=$arrYear selected=$arrForm.b_start_year}-->
127        </select>年
128        <select name="b_start_month" <!--{if $arrErr.b_start_year || $arrErr.b_end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
129          <option value="" selected="selected">--</option>
130          <!--{html_options options=$arrMonth selected=$arrForm.b_start_month}-->
131        </select>月
132        <select name="b_start_day" <!--{if $arrErr.b_start_year || $arrErr.b_end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
133          <option value="" selected="selected">--</option>
134          <!--{html_options options=$arrDay selected=$arrForm.b_start_day}-->
135        </select>日~
136        <select name="b_end_year" <!--{if $arrErr.b_start_year || $arrErr.b_end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
137          <option value="" selected="selected">----</option>
138          <!--{html_options options=$arrYear selected=$arrForm.b_end_year}-->
139        </select>年
140        <select name="b_end_month" <!--{if $arrErr.b_start_year || $arrErr.b_end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
141          <option value="" selected="selected">--</option>
142          <!--{html_options options=$arrMonth selected=$arrForm.b_end_month}-->
143        </select>月
144        <select name="b_end_day" <!--{if $arrErr.b_start_year || $arrErr.b_end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
145          <option value="" selected="selected">--</option>
146          <!--{html_options options=$arrDay selected=$arrForm.b_end_day}-->
147        </select>日
148      </td>
149    </tr>
150    <tr>
151      <th>メールアドレス</th>
152      <td><!--{if $arrErr.email}--><span class="attention"><!--{$arrErr.email}--></span><!--{/if}--><input type="text" name="email" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$arrForm.email|escape}-->" size="60" class="box60" <!--{if $arrErr.email}--><!--{sfSetErrorStyle}--><!--{/if}-->/></td>
153    </tr>
154    <tr>
155      <th>携帯メールアドレス</th>
156      <td><!--{if $arrErr.email_mobile}--><span class="attention"><!--{$arrErr.email_mobile}--></span><!--{/if}--><input type="text" name="email_mobile" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$arrForm.email_mobile|escape}-->" size="60" class="box60" <!--{if $arrErr.email_mobile}--><!--{sfSetErrorStyle}--><!--{/if}-->/></td>
157    </tr>
158    <tr>
159      <th>電話番号</th>
160      <td><!--{if $arrErr.tel}--><span class="attention"><!--{$arrErr.tel}--></span><br /><!--{/if}--><input type="text" name="tel" maxlength="<!--{$smarty.const.TEL_LEN}-->" value="<!--{$arrForm.tel|escape}-->" size="60" class="box60" /></td>
161    </tr>
162    <tr>
163      <th>職業</th>
164      <td><!--{html_checkboxes name="job" options=$arrJob separator="&nbsp;" selected=$arrForm.job}--></td>
165    </tr>
166    <tr>
167      <th>購入金額</th>
168      <td><!--{if $arrErr.buy_total_from || $arrErr.buy_total_to}--><span class="attention"><!--{$arrErr.buy_total_from}--><!--{$arrErr.buy_total_to}--></span><br /><!--{/if}--><input type="text" name="buy_total_from" maxlength="<!--{$smarty.const.INT_LEN}-->" value="<!--{$arrForm.buy_total_from|escape}-->" size="6" class="box6" <!--{if $arrErr.buy_total_from || $arrErr.buy_total_to}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 円 ~ <input type="text" name="buy_total_to" maxlength="<!--{$smarty.const.INT_LEN}-->" value="<!--{$arrForm.buy_total_to|escape}-->" size="6" class="box6" <!--{if $arrErr.buy_total_from || $arrErr.buy_total_to}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 円</td>
169    </tr>
170    <tr>
171      <th>購入回数</th>
172      <td><!--{if $arrErr.buy_times_from || $arrErr.buy_times_to}--><span class="attention"><!--{$arrErr.buy_times_from}--><!--{$arrErr.buy_times_to}--></span><br /><!--{/if}--><input type="text" name="buy_times_from" maxlength="<!--{$smarty.const.INT_LEN}-->" value="<!--{$arrForm.buy_times_from|escape}-->" size="6" class="box6" <!--{if $arrErr.buy_times_from || $arrErr.buy_times_to}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 回 ~ <input type="text" name="buy_times_to" maxlength="<!--{$smarty.const.INT_LEN}-->" value="<!--{$arrForm.buy_times_to|escape}-->" size="6" class="box6" <!--{if $arrErr.buy_times_from || $arrErr.buy_times_to}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 回</td>
173    </tr>
174    <tr>
175      <th>登録・更新日</th>
176      <td>
177        <!--{if $arrErr.start_year || $arrErr.end_year}--><span class="attention"><!--{$arrErr.start_year}--><!--{$arrErr.end_year}--></span><br /><!--{/if}-->
178        <select name="start_year" <!--{if $arrErr.start_year || $arrErr.end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
179          <option value="" selected="selected">----</option>
180          <!--{html_options options=$arrYear selected=$arrForm.start_year}-->
181        </select>年
182        <select name="start_month" <!--{if $arrErr.start_year || $arrErr.end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
183          <option value="" selected="selected">--</option>
184          <!--{html_options options=$arrMonth selected=$arrForm.start_month}-->
185        </select>月
186        <select name="start_day" <!--{if $arrErr.start_year || $arrErr.end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
187          <option value="" selected="selected">--</option>
188          <!--{html_options options=$arrDay selected=$arrForm.start_day}-->
189        </select>日~
190        <select name="end_year" <!--{if $arrErr.start_year || $arrErr.end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
191          <option value="" selected="selected">----</option>
192          <!--{html_options options=$arrYear selected=$arrForm.end_year}-->
193        </select>年
194        <select name="end_month" <!--{if $arrErr.start_year || $arrErr.end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
195          <option value="" selected="selected">--</option>
196          <!--{html_options options=$arrMonth selected=$arrForm.end_month}-->
197        </select>月
198        <select name="end_day" <!--{if $arrErr.start_year || $arrErr.end_year}--><!--{sfSetErrorStyle}--><!--{/if}-->>
199          <option value="" selected="selected">--</option>
200          <!--{html_options options=$arrDay selected=$arrForm.end_day}-->
201        </select>日
202      </td>
203    </tr>
204    <tr>
205      <th>最終購入日</th>
206      <td>
207        <!--{if $arrErr.buy_start_year || $arrErr.buy_end_year}--><span class="attention"><!--{$arrErr.buy_start_year}--><!--{$arrErr.buy_end_year}--></span><br /><!--{/if}-->
208        <select name="buy_start_year" style="<!--{$arrErr.buy_start_year|sfGetErrorColor}-->">
209          <option value="" selected="selected">----</option>
210          <!--{html_options options=$objDate->getYear($smarty.const.RELEASE_YEAR)  selected=$arrForm.buy_start_year}-->
211        </select>年
212        <select name="buy_start_month" style="<!--{$arrErr.buy_start_year|sfGetErrorColor}-->">
213          <option value="" selected="selected">--</option>
214          <!--{html_options options=$arrMonth selected=$arrForm.buy_start_month}-->
215        </select>月
216        <select name="buy_start_day" style="<!--{$arrErr.buy_start_year|sfGetErrorColor}-->">
217          <option value="" selected="selected">--</option>
218          <!--{html_options options=$arrDay selected=$arrForm.buy_start_day}-->
219        </select>日~
220        <select name="buy_end_year" style="<!--{$arrErr.buy_end_year|sfGetErrorColor}-->">
221          <option value="" selected="selected">----</option>
222          <!--{html_options options=$objDate->getYear($smarty.const.RELEASE_YEAR)  selected=$arrForm.buy_end_year}-->
223        </select>年
224        <select name="buy_end_month" style="<!--{$arrErr.buy_end_year|sfGetErrorColor}-->">
225          <option value="" selected="selected">--</option>
226          <!--{html_options options=$arrMonth selected=$arrForm.buy_end_month}-->
227        </select>月
228        <select name="buy_end_day" style="<!--{$arrErr.buy_end_year|sfGetErrorColor}-->">
229          <option value="" selected="selected">--</option>
230          <!--{html_options options=$arrDay selected=$arrForm.buy_end_day}-->
231        </select>日
232      </td>
233    </tr>
234    <tr>
235      <th>購入商品名</th>
236      <td>
237        <!--{if $arrErr.buy_product_name}--><span class="attention"><!--{$arrErr.buy_product_name}--></span><!--{/if}-->
238        <span style="<!--{$arrErr.buy_product_name|sfGetErrorColor}-->">
239        <input type="text" name="buy_product_name" maxlength="<!--{$smarty.const.STEXT_LEN}-->" value="<!--{$arrForm.buy_product_name|escape}-->" size="30" class="box30" style="<!--{$arrErr.buy_product_name|sfGetErrorColor}-->"/>
240        </span>
241      </td>
242    </tr>
243    <tr>
244      <th>購入商品コード</th>
245      <td>
246        <!--{if $arrErr.buy_product_code}--><span class="attention"><!--{$arrErr.buy_product_code}--></span><!--{/if}-->
247        <input type="text" name="buy_product_code" value="<!--{$arrForm.buy_product_code}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" style="<!--{$arrErr.buy_product_code|sfGetErrorColor}-->" >
248      </td>
249    </tr>
250    <tr>
251      <th>カテゴリ</th>
252      <td>
253        <select name="category_id" style="<!--{if $arrErr.category_id != ""}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->">
254          <option value="">選択してください</option>
255          <!--{html_options options=$arrCatList selected=$arrForm.category_id}-->
256        </select>
257      </td>
258    </tr>
259  </table>
260  <div class="btn">
261    検索結果表示件数
262    <select name="page_rows">
263      <!--{html_options options=$arrPageRows selected=$arrForm.page_rows}-->
264    </select> 件
265    <button type="submit"><span>この条件で検索する</span></button>
266  </div>
267</form>
268
269<!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'resend_mail') }-->
270
271<!--★★検索結果一覧★★-->
272<form name="form1" id="form1" method="post" action="?">
273<!--{foreach from=$smarty.post key="key" item="item"}-->
274<!--{if $key ne "mode" && $key ne "del_mode" && $key ne "edit_customer_id" && $key ne "del_customer_id" && $key ne "search_pageno" && $key ne "csv_mode" && $key ne "job" && $key ne "sex" && $key ne "status"}--><input type="hidden" name="<!--{$key|escape}-->" value="<!--{$item|escape}-->"><!--{/if}-->
275<!--{/foreach}-->
276<!--{foreach from=$smarty.post.job key="key" item="item"}-->
277<input type="hidden" name="job[]" value=<!--{$item}-->>
278<!--{/foreach}-->
279<!--{foreach from=$smarty.post.sex key="key" item="item"}-->
280<input type="hidden" name="sex[]" value=<!--{$item}-->>
281<!--{/foreach}-->
282<!--{foreach from=$smarty.post.status key="key" item="item"}-->
283<input type="hidden" name="status[]" value=<!--{$item}-->>
284<!--{/foreach}-->
285<input type="hidden" name="mode" value="search" />
286<input type="hidden" name="del_mode" value="" />
287<input type="hidden" name="edit_customer_id" value="" />
288<input type="hidden" name="del_customer_id" value="" />
289<input type="hidden" name="search_pageno" value="<!--{$smarty.post.search_pageno|escape}-->" />
290<input type="hidden" name="csv_mode" value="" />
291
292  <h2>検索結果一覧</h2>
293 <p>
294    <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span>&nbsp;が該当しました。
295    <!--検索結果-->
296    <!--{if $smarty.const.ADMIN_MODE == '1'}-->
297    <button type="button" onclick="fnModeSubmit('delete_all','','');">検索結果をすべて削除</button>
298    <!--{/if}-->
299    <button type="button" onclick="fnModeSubmit('csv','','');">CSV DOWNLOAD</button>
300    <a href="../contents/csv.php?tpl_subno_csv=customer"> &gt;&gt; CSV出力項目設定</a>
301  </p>
302  <!--{include file=$tpl_pager}-->
303
304  <!--{if count($search_data) > 0}-->
305
306  <!--検索結果表示テーブル-->
307  <table class="list" id="customer-search-result">
308    <tr>
309      <th rowspan="2">種別</th>
310      <th>顧客ID</th>
311      <th rowspan="2">顧客名/(カナ)</th>
312      <th rowspan="2">性別</th>
313      <th>TEL</th>
314      <th rowspan="2">編集</th>
315      <th rowspan="2">削除</th>
316    </tr>
317    <tr>
318      <th>都道府県</th>
319      <th>メールアドレス</th>
320    </tr>
321    <!--{section name=data loop=$search_data}-->
322    <!--顧客<!--{$smarty.section.data.iteration}-->-->
323    <tr>
324      <td class="center" rowspan="2"><!--{if $search_data[data].status eq 1}-->仮<!--{else}-->本<!--{/if}--></td>
325      <td><!--{$search_data[data].customer_id|escape}--></td>
326      <td rowspan="2"><!--{$search_data[data].name01|escape}--> <!--{$search_data[data].name02|escape}-->(<!--{$search_data[data].kana01|escape}--> <!--{$search_data[data].kana02|escape}-->)</td>
327      <td class="center" rowspan="2"><!--{if $search_data[data].sex eq 1}-->男性<!--{else}-->女性<!--{/if}--></td>
328      <td><!--{$search_data[data].tel01|escape}-->-<!--{$search_data[data].tel02|escape}-->-<!--{$search_data[data].tel03|escape}--></td>
329      <td class="center" rowspan="2"><span class="icon_edit"><a href="#" onclick="return fnEdit('<!--{$search_data[data].customer_id|escape}-->');">編集</a></span></td>
330      <td class="center" rowspan="2"><span class="icon_delete"><a href="#" onclick="return fnDelete('<!--{$search_data[data].customer_id|escape}-->');">削除</a></span></td>
331    </tr>
332    <tr>
333      <td><!--{assign var=pref value=$search_data[data].pref}--><!--{$arrPref[$pref]}--></td>
334      <td><!--{mailto address=$search_data[data].email encode="javascript"}--></a><!--{if $search_data[data].status eq 1}--><br /><a href="#" onclick="return fnReSendMail('<!--{$search_data[data].customer_id|escape}-->');">仮登録メール再送</a><!--{/if}--></td>
335    </tr>
336    <!--顧客<!--{$smarty.section.data.iteration}-->-->
337    <!--{/section}-->
338  </table>
339  <!--検索結果表示テーブル-->
340
341  <!--{/if}-->
342</form>
343<!--★★検索結果一覧★★-->
344
345<!--{/if}-->
346</div>
Note: See TracBrowser for help on using the repository browser.