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