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 fnReturn() { |
---|
28 | document.search_form.action = './<!--{$smarty.const.DIR_INDEX_URL}-->'; |
---|
29 | document.search_form.submit(); |
---|
30 | return false; |
---|
31 | } |
---|
32 | |
---|
33 | function fnOrderidSubmit(order_id, order_id_value) { |
---|
34 | if(order_id != "" && order_id_value != "") { |
---|
35 | document.form2[order_id].value = order_id_value; |
---|
36 | } |
---|
37 | document.form2.action = '../order/edit.php'; |
---|
38 | document.form2.submit(); |
---|
39 | } |
---|
40 | |
---|
41 | //--> |
---|
42 | </script> |
---|
43 | |
---|
44 | <form name="search_form" method="post" action=""> |
---|
45 | <input type="hidden" name="mode" value="search" /> |
---|
46 | <!--{foreach from=$arrSearchData key="key" item="item"}--> |
---|
47 | <!--{if $key ne "customer_id" && $key ne "mode" && $key ne "del_mode" && $key ne "edit_customer_id" && $key ne "del_customer_id" && $key ne "csv_mode" && $key ne "job" && $key ne "sex"}--><input type="hidden" name="<!--{$key|escape}-->" value="<!--{$item|escape}-->"><!--{/if}--> |
---|
48 | <!--{/foreach}--> |
---|
49 | <!--{foreach from=$arrSearchData.job key="key" item="item"}--> |
---|
50 | <input type="hidden" name="job[]" value="<!--{$item}-->" /> |
---|
51 | <!--{/foreach}--> |
---|
52 | <!--{foreach from=$arrSearchData.sex key="key" item="item"}--> |
---|
53 | <input type="hidden" name="sex[]" value="<!--{$item}-->" /> |
---|
54 | <!--{/foreach}--> |
---|
55 | </form> |
---|
56 | |
---|
57 | <form name="form1" id="form1" method="post" action="?"> |
---|
58 | <input type="hidden" name="mode" value="confirm" /> |
---|
59 | <input type="hidden" name="edit_email" value="<!--{$tpl_edit_email}-->" /> |
---|
60 | <input type="hidden" name="customer_id" value="<!--{$list_data.customer_id|escape}-->" /> |
---|
61 | |
---|
62 | <!-- 検索条件の保持 --> |
---|
63 | <!--{foreach from=$arrSearchData key="key" item="item"}--> |
---|
64 | <!--{if $key ne "job" && $key ne "sex"}--><input type="hidden" name="search_data[<!--{$key|escape}-->]" value="<!--{$item|escape}-->"><!--{/if}--> |
---|
65 | <!--{/foreach}--> |
---|
66 | <!--{foreach from=$arrSearchData.job key="key" item="item"}--> |
---|
67 | <input type="hidden" name="search_data[job][]" value="<!--{$item}-->" /> |
---|
68 | <!--{/foreach}--> |
---|
69 | <!--{foreach from=$arrSearchData.sex key="key" item="item"}--> |
---|
70 | <input type="hidden" name="search_data[sex][]" value="<!--{$item}-->" /> |
---|
71 | <!--{/foreach}--> |
---|
72 | |
---|
73 | <div id="customer" class="contents-main"> |
---|
74 | <h2>顧客編集</h2> |
---|
75 | <table class="form"> |
---|
76 | <tr> |
---|
77 | <th>顧客ID<span class="attention"> *</span></th> |
---|
78 | <td><!--{$list_data.customer_id|escape}--></td> |
---|
79 | </tr> |
---|
80 | <tr> |
---|
81 | <th>会員状態<span class="attention"> *</span></th> |
---|
82 | <td> |
---|
83 | <span class="attention"><!--{$arrErr.status}--></span> |
---|
84 | <input type="radio" name="status"value=1 id="no_mem" <!--{if $list_data.status == 1}--> checked="checked" <!--{/if}--> <!--{if $list_data.status == 2}-->disabled<!--{/if}-->><label for="no_mem">仮会員</label> |
---|
85 | <input type="radio" name="status"value=2 id="mem"<!--{if $list_data.status == 2}--> checked="checked" <!--{/if}-->><label for="mem">本会員</label> |
---|
86 | </td> |
---|
87 | </tr> |
---|
88 | <tr> |
---|
89 | <th>お名前<span class="attention"> *</span></th> |
---|
90 | <td> |
---|
91 | <span class="attention"><!--{$arrErr.name01}--><!--{$arrErr.name02}--></span> |
---|
92 | <input type="text" name="name01" value="<!--{$list_data.name01|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" <!--{if $arrErr.name01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> <input type="text" name="name02" value="<!--{$list_data.name02|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" <!--{if $arrErr.name02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> |
---|
93 | </td> |
---|
94 | </tr> |
---|
95 | <tr> |
---|
96 | <th>お名前(フリガナ)<span class="attention"> *</span></th> |
---|
97 | <td> |
---|
98 | <span class="attention"><!--{$arrErr.kana01}--><!--{$arrErr.kana02}--></span> |
---|
99 | <input type="text" name="kana01" value="<!--{$list_data.kana01|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" <!--{if $arrErr.kana01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> <input type="text" name="kana02" value="<!--{$list_data.kana02|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" <!--{if $arrErr.kana02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> |
---|
100 | </td> |
---|
101 | </tr> |
---|
102 | <tr> |
---|
103 | <th>郵便番号<span class="attention"> *</span></th> |
---|
104 | <td> |
---|
105 | <span class="attention"><!--{$arrErr.zip01}--><!--{$arrErr.zip02}--></span> |
---|
106 | 〒 <input type="text" name="zip01" value="<!--{$list_data.zip01|escape}-->" maxlength="<!--{$smarty.const.ZIP01_LEN}-->" size="6" class="box6" maxlength="3" <!--{if $arrErr.zip01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="zip02" value="<!--{$list_data.zip02|escape}-->" maxlength="<!--{$smarty.const.ZIP02_LEN}-->" size="6" class="box6" maxlength="4" <!--{if $arrErr.zip02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> |
---|
107 | <a class="btn_normal" href="javascript:;" name="address_input" onclick="fnCallAddress('<!--{$smarty.const.URL_INPUT_ZIP}-->', 'zip01', 'zip02', 'pref', 'addr01');">住所入力</a> |
---|
108 | </td> |
---|
109 | </tr> |
---|
110 | <tr> |
---|
111 | <th>住所<span class="attention"> *</span></th> |
---|
112 | <td> |
---|
113 | <span class="attention"><!--{$arrErr.pref}--><!--{$arrErr.addr01}--><!--{$arrErr.addr02}--></span> |
---|
114 | <select name="pref" <!--{if $arrErr.pref != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->> |
---|
115 | <option value="" selected="selected">都道府県を選択</option> |
---|
116 | <!--{html_options options=$arrPref selected=$list_data.pref}--> |
---|
117 | </select> |
---|
118 | <input type="text" name="addr01" value="<!--{$list_data.addr01|escape}-->" size="60" class="box60" <!--{if $arrErr.addr01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /><br /> |
---|
119 | <!--{$smarty.const.SAMPLE_ADDRESS1}--><br /> |
---|
120 | <input type="text" name="addr02" value="<!--{$list_data.addr02|escape}-->" size="60" class="box60" <!--{if $arrErr.addr02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /><br /> |
---|
121 | <!--{$smarty.const.SAMPLE_ADDRESS2}--> |
---|
122 | </td> |
---|
123 | </tr> |
---|
124 | <tr> |
---|
125 | <th>メールアドレス<span class="attention"> *</span></th> |
---|
126 | <td> |
---|
127 | <span class="attention"><!--{$arrErr.email}--></span> |
---|
128 | <input type="text" name="email" value="<!--{$list_data.email|escape}-->" size="60" class="box60" <!--{if $arrErr.email != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> |
---|
129 | </td> |
---|
130 | </tr> |
---|
131 | <tr> |
---|
132 | <th>携帯メールアドレス</th> |
---|
133 | <td> |
---|
134 | <span class="attention"><!--{$arrErr.email_mobile}--></span> |
---|
135 | <input type="text" name="email_mobile" value="<!--{$list_data.email_mobile|escape}-->" size="60" class="box60" <!--{if $arrErr.email_mobile != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> |
---|
136 | </td> |
---|
137 | </tr> |
---|
138 | <tr> |
---|
139 | <th>電話番号<span class="attention"> *</span></th> |
---|
140 | <td> |
---|
141 | <span class="attention"><!--{$arrErr.tel01}--><!--{$arrErr.tel02}--><!--{$arrErr.tel03}--></span> |
---|
142 | <input type="text" name="tel01" value="<!--{$list_data.tel01|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.tel01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="tel02" value="<!--{$list_data.tel02|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.tel01 != "" || $arrErr.tel02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="tel03" value="<!--{$list_data.tel03|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.tel01 != "" || $arrErr.tel03 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> |
---|
143 | </td> |
---|
144 | </tr> |
---|
145 | <tr> |
---|
146 | <th>FAX</th> |
---|
147 | <td> |
---|
148 | <span class="attention"><!--{$arrErr.fax01}--><!--{$arrErr.fax02}--><!--{$arrErr.fax03}--></span> |
---|
149 | <input type="text" name="fax01" value="<!--{$list_data.fax01|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="fax02" value="<!--{$list_data.fax02|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != "" || $arrErr.tel02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="fax03" value="<!--{$list_data.fax03|escape}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != "" || $arrErr.fax03 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> |
---|
150 | </td> |
---|
151 | </tr> |
---|
152 | <tr> |
---|
153 | <th>ご性別<span class="attention"> *</span></th> |
---|
154 | <td> |
---|
155 | <span class="attention"><!--{$arrErr.sex}--></span> |
---|
156 | <span <!--{if $arrErr.sex != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->> |
---|
157 | <!--{html_radios name="sex" options=$arrSex separator=" " selected=$list_data.sex}--> |
---|
158 | </span> |
---|
159 | </td> |
---|
160 | </tr> |
---|
161 | <tr> |
---|
162 | <th>ご職業</th> |
---|
163 | <td> |
---|
164 | <span class="attention"><!--{$arrErr.job}--></span> |
---|
165 | <select name="job" <!--{if $arrErr.job != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > |
---|
166 | <option value="" selected="selected">選択してください</option> |
---|
167 | <!--{html_options options=$arrJob selected=$list_data.job}--> |
---|
168 | </select> |
---|
169 | </td> |
---|
170 | </tr> |
---|
171 | <tr> |
---|
172 | <th>生年月日</th> |
---|
173 | <td> |
---|
174 | <span class="attention"><!--{$arrErr.year}--></span> |
---|
175 | <select name="year" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > |
---|
176 | <option value="" selected="selected">------</option> |
---|
177 | <!--{html_options options=$arrYear selected=$list_data.year}--> |
---|
178 | </select>年 |
---|
179 | <select name="month" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > |
---|
180 | <option value="" selected="selected">----</option> |
---|
181 | <!--{html_options options=$arrMonth selected=$list_data.month}--> |
---|
182 | </select>月 |
---|
183 | <select name="day" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > |
---|
184 | <option value="" selected="selected">----</option> |
---|
185 | <!--{html_options options=$arrDay selected=$list_data.day"}--> |
---|
186 | </select>日 |
---|
187 | </td> |
---|
188 | </tr> |
---|
189 | <tr> |
---|
190 | <th>パスワード<span class="attention"> *</span></th> |
---|
191 | <td> |
---|
192 | <span class="attention"><!--{$arrErr.password}--></span> |
---|
193 | <input type="password" name="password" value="<!--{$list_data.password|escape}-->" size="30" class="box30" <!--{if $arrErr.password != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 半角英数小文字<!--{$smarty.const.PASSWORD_LEN1}-->~<!--{$smarty.const.PASSWORD_LEN2}-->文字(記号不可) |
---|
194 | </td> |
---|
195 | </tr> |
---|
196 | <tr> |
---|
197 | <th>パスワードを忘れたときのヒント<span class="attention"> *</span></th> |
---|
198 | <td> |
---|
199 | <span class="attention"><!--{$arrErr.reminder}--><!--{$arrErr.reminder_answer}--></span> |
---|
200 | 質問: |
---|
201 | <select name="reminder" <!--{if $arrErr.reminder != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> > |
---|
202 | <option value="" selected="selected">選択してください</option> |
---|
203 | <!--{html_options options=$arrReminder selected=$list_data.reminder}--> |
---|
204 | </select><br /> |
---|
205 | 答え: |
---|
206 | <input type="text" name="reminder_answer" value="<!--{$list_data.reminder_answer|escape}-->" size="30" class="box30" <!--{if $arrErr.reminder_answer != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> |
---|
207 | </td> |
---|
208 | </tr> |
---|
209 | <tr> |
---|
210 | <th>メールマガジン<span class="attention"> *</span></th> |
---|
211 | <td> |
---|
212 | <span class="attention"><!--{$arrErr.mailmaga_flg}--></span> |
---|
213 | <input type="radio" name="mailmaga_flg" value="1" <!--{if $arrErr.mailmaga_flg != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> <!--{if $list_data.mailmaga_flg eq 1 or $list_data.mailmaga_flg eq 4}-->checked<!--{/if}--> />HTML |
---|
214 | <input type="radio" name="mailmaga_flg" value="2" <!--{if $arrErr.mailmaga_flg != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> <!--{if $list_data.mailmaga_flg eq 2 or $list_data.mailmaga_flg eq 5}-->checked<!--{/if}--> />テキスト |
---|
215 | <input type="radio" name="mailmaga_flg" value="3" <!--{if $arrErr.mailmaga_flg != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> <!--{if $list_data.mailmaga_flg eq "" or $list_data.mailmaga_flg eq 3 or $list_data.mailmaga_flg eq 6}-->checked<!--{/if}--> />希望しない |
---|
216 | </td> |
---|
217 | </tr> |
---|
218 | <tr> |
---|
219 | <th>SHOP用メモ</th> |
---|
220 | <td> |
---|
221 | <span class="attention"><!--{$arrErr.note}--></span> |
---|
222 | <textarea name="note" maxlength="<!--{$smarty.const.LTEXT_LEN}-->" <!--{if $arrErr.note != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> cols="60" rows="8" class="area60"><!--{$list_data.note|escape}--></textarea> |
---|
223 | </td> |
---|
224 | </tr> |
---|
225 | <tr> |
---|
226 | <th>所持ポイント</th> |
---|
227 | <td> |
---|
228 | <span class="attention"><!--{$arrErr.point}--></span> |
---|
229 | <input type="text" name="point" value="<!--{$list_data.point|escape}-->" maxlength="<!--{$smarty.const.TEL_LEN}-->" <!--{if $arrErr.point != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> size="6" class="box6" <!--{if $arrErr.point != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> pt |
---|
230 | </td> |
---|
231 | </tr> |
---|
232 | </table> |
---|
233 | |
---|
234 | <div class="btn"> |
---|
235 | <a class="btn_normal" href="javascript:;" onclick="return fnReturn();"><span>検索画面に戻る</span></a> |
---|
236 | <a class="btn_normal" href="javascript:;" onclick="fnFormModeSubmit('form1', 'confirm', '', '');"><span>確認ページへ</span></a> |
---|
237 | </div> |
---|
238 | |
---|
239 | <input type="hidden" name="order_id" value="" /> |
---|
240 | <input type="hidden" name="search_pageno" value="<!--{$tpl_pageno}-->"> |
---|
241 | <input type="hidden" name="edit_customer_id" value="<!--{$edit_customer_id}-->" > |
---|
242 | |
---|
243 | <h2>購入履歴一覧</h2> |
---|
244 | <p><span class="attention"><!--購入履歴一覧--><!--{$tpl_linemax}-->件</span> が該当しました。</p> |
---|
245 | |
---|
246 | <!--{include file=$tpl_pager}--> |
---|
247 | |
---|
248 | <!--{if $tpl_linemax > 0}--> |
---|
249 | <!--{* 購入履歴一覧表示テーブル *}--> |
---|
250 | <table class="list"> |
---|
251 | <tr> |
---|
252 | <th>日付</th> |
---|
253 | <th>注文番号</th> |
---|
254 | <th>購入金額</th> |
---|
255 | <th>発送日</th> |
---|
256 | <th>支払方法</th> |
---|
257 | </tr> |
---|
258 | <!--{section name=cnt loop=$arrPurchaseHistory}--> |
---|
259 | <tr> |
---|
260 | <td><!--{$arrPurchaseHistory[cnt].create_date|sfDispDBDate}--></td> |
---|
261 | <td class="center"><a href="#" onclick="fnOpenWindow('../order/edit.php?order_id=<!--{$arrPurchaseHistory[cnt].order_id}-->','order_disp','800','900'); return false;" ><!--{$arrPurchaseHistory[cnt].order_id}--></a></td> |
---|
262 | <td class="center"><!--{$arrPurchaseHistory[cnt].payment_total|number_format}-->円</td> |
---|
263 | <td class="center"><!--{if $arrPurchaseHistory[cnt].status eq 5}--><!--{$arrPurchaseHistory[cnt].commit_date|sfDispDBDate}--><!--{else}-->未発送<!--{ /if }--></td> |
---|
264 | <!--{assign var=payment_id value="`$arrPurchaseHistory[cnt].payment_id`"}--> |
---|
265 | <td class="center"><!--{$arrPayment[$payment_id]|escape}--></td> |
---|
266 | </tr> |
---|
267 | <!--{/section}--> |
---|
268 | </table> |
---|
269 | <!--{* 購入履歴一覧表示テーブル *}--> |
---|
270 | <!--{else}--> |
---|
271 | <div class="message">購入履歴はありません。</div> |
---|
272 | <!--{/if}--> |
---|
273 | |
---|
274 | </div> |
---|
275 | </form> |
---|