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 fnDelete(customer_id) { |
---|
28 | if (confirm('この顧客情報を削除しても宜しいですか?')) { |
---|
29 | document.form1.mode.value = "delete" |
---|
30 | document.form1['edit_customer_id'].value = customer_id; |
---|
31 | document.form1.submit(); |
---|
32 | return false; |
---|
33 | } |
---|
34 | } |
---|
35 | |
---|
36 | function fnEdit(customer_id) { |
---|
37 | document.form1.action = './edit.php'; |
---|
38 | document.form1.mode.value = "edit_search" |
---|
39 | document.form1['edit_customer_id'].value = customer_id; |
---|
40 | document.form1.search_pageno.value = 1; |
---|
41 | document.form1.submit(); |
---|
42 | return false; |
---|
43 | } |
---|
44 | |
---|
45 | function fnReSendMail(customer_id) { |
---|
46 | if (confirm('仮登録メールを再送しても宜しいですか?')) { |
---|
47 | document.form1.mode.value = "resend_mail" |
---|
48 | document.form1['edit_customer_id'].value = customer_id; |
---|
49 | document.form1.submit(); |
---|
50 | return false; |
---|
51 | } |
---|
52 | } |
---|
53 | //--> |
---|
54 | </script> |
---|
55 | |
---|
56 | |
---|
57 | <div id="customer" class="contents-main"> |
---|
58 | <form name="search_form" id="search_form" method="post" action="?"> |
---|
59 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
60 | <input type="hidden" name="mode" value="search" /> |
---|
61 | |
---|
62 | <h2>検索条件設定</h2> |
---|
63 | |
---|
64 | <!--検索条件設定テーブルここから--> |
---|
65 | <table class="form"> |
---|
66 | <!--{include file="`$smarty.const.TEMPLATE_ADMIN_REALDIR`/adminparts/form_customer_search.tpl"}--> |
---|
67 | <tr> |
---|
68 | <th>会員状態</th> |
---|
69 | <td colspan="3"><!--{html_checkboxes name="search_status" options=$arrStatus separator=" " selected=$arrForm.search_status.value}--></td> |
---|
70 | </tr> |
---|
71 | </table> |
---|
72 | <div class="btn"> |
---|
73 | <p class="page_rows">検索結果表示件数 |
---|
74 | <select name="search_page_rows"> |
---|
75 | <!--{html_options options=$arrPageRows selected=$arrForm.search_page_rows}--> |
---|
76 | </select> 件</p> |
---|
77 | <div class="btn-area"> |
---|
78 | <ul> |
---|
79 | <li><a class="btn-action" href="javascript:;" onclick="fnFormModeSubmit('search_form', 'search', '', ''); return false;"><span class="btn-next">この条件で検索する</span></a></li> |
---|
80 | </ul> |
---|
81 | </div> |
---|
82 | </div> |
---|
83 | </form> |
---|
84 | <!--{if count($arrErr) == 0 and ($smarty.post.mode == 'search' or $smarty.post.mode == 'delete' or $smarty.post.mode == 'resend_mail')}--> |
---|
85 | |
---|
86 | <!--★★検索結果一覧★★--> |
---|
87 | <form name="form1" id="form1" method="post" action="?"> |
---|
88 | <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> |
---|
89 | <input type="hidden" name="mode" value="search" /> |
---|
90 | <input type="hidden" name="edit_customer_id" value="" /> |
---|
91 | <input type="hidden" name="search_pageno" value="<!--{$smarty.post.search_pageno|h}-->" /> |
---|
92 | <!--{foreach from=$smarty.post key="key" item="item"}--> |
---|
93 | <!--{if $key ne "mode" && $key ne "edit_customer_id" && $key ne "search_pageno" && $key ne $smarty.const.TRANSACTION_ID_NAME}--> |
---|
94 | <!--{if is_array($item)}--> |
---|
95 | <!--{foreach item=c_item from=$item}--> |
---|
96 | <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" /> |
---|
97 | <!--{/foreach}--> |
---|
98 | <!--{else}--> |
---|
99 | <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" /> |
---|
100 | <!--{/if}--> |
---|
101 | <!--{/if}--> |
---|
102 | <!--{/foreach}--> |
---|
103 | |
---|
104 | <h2>検索結果一覧</h2> |
---|
105 | <div class="btn"> |
---|
106 | <span class="attention"><!--検索結果数--><!--{$tpl_linemax}-->件</span> が該当しました。 |
---|
107 | <!--検索結果--> |
---|
108 | <a class="btn-normal" href="javascript:;" onclick="fnModeSubmit('csv','',''); return false;">CSV ダウンロード</a> |
---|
109 | <a class="btn-normal" href="javascript:;" onclick="location.href='../contents/csv.php?tpl_subno_csv=customer'">CSV 出力項目設定</a> |
---|
110 | </div> |
---|
111 | <!--{if count($arrData) > 0}--> |
---|
112 | |
---|
113 | <!--{include file=$tpl_pager}--> |
---|
114 | |
---|
115 | <!--検索結果表示テーブル--> |
---|
116 | <table class="list" id="customer-search-result"> |
---|
117 | <colgroup width="5%"> |
---|
118 | <colgroup width="10%"> |
---|
119 | <colgroup width="25%"> |
---|
120 | <colgroup width="5%"> |
---|
121 | <colgroup width="30%"> |
---|
122 | <colgroup width="7%"> |
---|
123 | <colgroup width="7%"> |
---|
124 | <tr> |
---|
125 | <th rowspan="2">種別</th> |
---|
126 | <th>顧客ID</th> |
---|
127 | <th rowspan="2">顧客名/(カナ)</th> |
---|
128 | <th rowspan="2">性別</th> |
---|
129 | <th>TEL</th> |
---|
130 | <th rowspan="2">編集</th> |
---|
131 | <th rowspan="2">削除</th> |
---|
132 | </tr> |
---|
133 | <tr> |
---|
134 | <th>都道府県</th> |
---|
135 | <th>メールアドレス</th> |
---|
136 | </tr> |
---|
137 | <!--{foreach from=$arrData item=row}--> |
---|
138 | <tr> |
---|
139 | <td class="center" rowspan="2"><!--{if $row.status eq 1}-->仮<!--{else}-->本<!--{/if}--></td> |
---|
140 | <td><!--{$row.customer_id|h}--></td> |
---|
141 | <td rowspan="2"><!--{$row.name01|h}--> <!--{$row.name02|h}--><br>(<!--{$row.kana01|h}--> <!--{$row.kana02|h}-->)</td> |
---|
142 | <td class="center" rowspan="2"><!--{$arrSex[$row.sex]|h}--></td> |
---|
143 | <td><!--{$row.tel01|h}-->-<!--{$row.tel02|h}-->-<!--{$row.tel03|h}--></td> |
---|
144 | <td class="center" rowspan="2"><span class="icon_edit"><a href="#" onclick="return fnEdit('<!--{$row.customer_id|h}-->');">編集</a></span></td> |
---|
145 | <td class="center" rowspan="2"><span class="icon_delete"><a href="#" onclick="return fnDelete('<!--{$row.customer_id|h}-->');">削除</a></span></td> |
---|
146 | </tr> |
---|
147 | <tr> |
---|
148 | <td><!--{assign var=pref value=$row.pref}--><!--{$arrPref[$pref]}--></td> |
---|
149 | <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> |
---|
150 | </tr> |
---|
151 | <!--{/foreach}--> |
---|
152 | </table> |
---|
153 | <!--検索結果表示テーブル--> |
---|
154 | |
---|
155 | <!--{/if}--> |
---|
156 | </form> |
---|
157 | <!--★★検索結果一覧★★--> |
---|
158 | |
---|
159 | <!--{/if}--> |
---|
160 | </div> |
---|