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

Revision 17365, 17.6 KB checked in by Seasoft, 14 years ago (diff)

XHTML管理画面の不具合修正・調整など

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