source: branches/version-2_5-dev/data/Smarty/templates/admin/customer/index.tpl @ 20049

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

#627(ソース整形・ソースコメントの改善)

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