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

Revision 17365, 15.4 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 fnReturn() {
28    document.form_search.action = './index.php';
29    document.form_search.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
45<form name="form_search" method="post" action="">
46<input type="hidden" name="mode" value="search" />
47<!--{foreach from=$arrSearchData key="key" item="item"}-->
48<!--{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}-->
49<!--{/foreach}-->
50<!--{foreach from=$arrSearchData.job key="key" item="item"}-->
51<input type="hidden" name="job[]" value="<!--{$item}-->" />
52<!--{/foreach}-->
53<!--{foreach from=$arrSearchData.sex key="key" item="item"}-->
54<input type="hidden" name="sex[]" value="<!--{$item}-->" />
55<!--{/foreach}-->
56</form>
57
58<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
59<input type="hidden" name="mode" value="confirm" />
60<input type="hidden" name="edit_email" value="<!--{$tpl_edit_email}-->" />
61<input type="hidden" name="customer_id" value="<!--{$list_data.customer_id|escape}-->" />
62
63<!-- 検索条件の保持 -->
64<!--{foreach from=$arrSearchData key="key" item="item"}-->
65<!--{if $key ne "job" && $key ne "sex"}--><input type="hidden" name="search_data[<!--{$key|escape}-->]" value="<!--{$item|escape}-->"><!--{/if}-->
66<!--{/foreach}-->
67<!--{foreach from=$arrSearchData.job key="key" item="item"}-->
68<input type="hidden" name="search_data[job][]" value="<!--{$item}-->" />
69<!--{/foreach}-->
70<!--{foreach from=$arrSearchData.sex key="key" item="item"}-->
71<input type="hidden" name="search_data[sex][]" value="<!--{$item}-->" />
72<!--{/foreach}-->
73
74<div id="customer" class="contents-main">
75  <h2>顧客編集</h2>
76  <table class="form">
77    <tr>
78      <th>顧客ID<span class="attention"> *</span></th>
79      <td><!--{$list_data.customer_id|escape}--></td>
80    </tr>
81    <tr>
82      <th>会員状態<span class="attention"> *</span></th>
83      <td>
84        <span class="attention"><!--{$arrErr.status}--></span>
85        <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>
86        <input type="radio" name="status"value=2 id="mem"<!--{if $list_data.status == 2}--> checked="checked" <!--{/if}-->><label for="mem">本会員</label>
87      </td>
88    </tr>
89    <tr>
90      <th>お名前<span class="attention"> *</span></th>
91      <td>
92        <span class="attention"><!--{$arrErr.name01}--><!--{$arrErr.name02}--></span>
93        <input type="text" name="name01" value="<!--{$list_data.name01|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" <!--{if $arrErr.name01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />&nbsp;&nbsp;<input type="text" name="name02" value="<!--{$list_data.name02|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" <!--{if $arrErr.name02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
94      </td>
95    </tr>
96    <tr>
97      <th>フリガナ<span class="attention"> *</span></th>
98      <td>
99        <span class="attention"><!--{$arrErr.kana01}--><!--{$arrErr.kana02}--></span>
100        <input type="text" name="kana01" value="<!--{$list_data.kana01|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30"  <!--{if $arrErr.kana01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />&nbsp;&nbsp;<input type="text" name="kana02" value="<!--{$list_data.kana02|escape}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30"  <!--{if $arrErr.kana02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
101      </td>
102    </tr>
103    <tr>
104      <th>郵便番号<span class="attention"> *</span></th>
105      <td>
106        <span class="attention"><!--{$arrErr.zip01}--><!--{$arrErr.zip02}--></span>
107        〒 <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}--> />
108        <input type="button" name="address_input" value="住所入力" onclick="fnCallAddress('<!--{$smarty.const.URL_INPUT_ZIP}-->', 'zip01', 'zip02', 'pref', 'addr01');" />
109      </td>
110    </tr>
111    <tr>
112      <th>ご住所<span class="attention"> *</span></th>
113      <td>
114        <span class="attention"><!--{$arrErr.pref}--><!--{$arrErr.addr01}--><!--{$arrErr.addr02}--></span>
115        <select name="pref"  <!--{if $arrErr.pref != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->>
116          <option value="" selected="selected">都道府県を選択</option>
117          <!--{html_options options=$arrPref selected=$list_data.pref}-->
118        </select>
119        <input type="text" name="addr01" value="<!--{$list_data.addr01|escape}-->" size="60" class="box60" <!--{if $arrErr.addr01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /><br />
120        <!--{$smarty.const.SAMPLE_ADDRESS1}--><br />
121        <input type="text" name="addr02" value="<!--{$list_data.addr02|escape}-->" size="60" class="box60" <!--{if $arrErr.addr02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /><br />
122        <!--{$smarty.const.SAMPLE_ADDRESS2}-->
123      </td>
124    </tr>
125    <tr>
126      <th>メールアドレス<span class="attention"> *</span></th>
127      <td>
128        <span class="attention"><!--{$arrErr.email}--></span>
129        <input type="text" name="email" value="<!--{$list_data.email|escape}-->" size="60" class="box60" <!--{if $arrErr.email != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
130      </td>
131    </tr>
132    <tr>
133      <th>携帯メールアドレス</th>
134      <td>
135        <span class="attention"><!--{$arrErr.email_mobile}--></span>
136        <input type="text" name="email_mobile" value="<!--{$list_data.email_mobile|escape}-->" size="60" class="box60" <!--{if $arrErr.email_mobile != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
137      </td>
138    </tr>
139    <tr>
140      <th>電話番号<span class="attention"> *</span></th>
141      <td>
142        <span class="attention"><!--{$arrErr.tel01}--><!--{$arrErr.tel02}--><!--{$arrErr.tel03}--></span>
143        <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}--> />
144      </td>
145    </tr>
146    <tr>
147      <th>FAX</th>
148      <td>
149        <span class="attention"><!--{$arrErr.fax01}--><!--{$arrErr.fax02}--><!--{$arrErr.fax03}--></span>
150        <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}--> />
151      </td>
152    </tr>
153    <tr>
154      <th>ご性別<span class="attention"> *</span></th>
155      <td>
156        <span class="attention"><!--{$arrErr.sex}--></span>
157        <input type="radio" name="sex" value="1" <!--{if $arrErr.sex != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> <!--{if $list_data.sex eq 1}-->checked<!--{/if}--> />男性 <input type="radio" name="sex" value="2" <!--{if $arrErr.sex != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> <!--{if $list_data.sex eq 2}-->checked<!--{/if}--> />女性
158      </td>
159    </tr>
160    <tr>
161      <th>ご職業</th>
162      <td>
163        <span class="attention"><!--{$arrErr.job}--></span>
164        <select name="job" <!--{if $arrErr.job != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> >
165        <option value="" selected="selected">選択してください</option>
166        <!--{html_options options=$arrJob selected=$list_data.job}-->
167        </select>
168      </td>
169    </tr>
170    <tr>
171      <th>生年月日</th>
172      <td>
173        <span class="attention"><!--{$arrErr.year}--></span>
174        <select name="year" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> >
175          <option value="" selected="selected">------</option>
176          <!--{html_options options=$arrYear selected=$list_data.year}-->
177        </select>年
178        <select name="month" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> >
179          <option value="" selected="selected">----</option>
180          <!--{html_options options=$arrMonth selected=$list_data.month}-->
181        </select>月
182        <select name="day" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> >
183          <option value="" selected="selected">----</option>
184          <!--{html_options options=$arrDay selected=$list_data.day"}-->   
185        </select>日
186      </td>
187    </tr>
188    <tr>
189      <th>パスワード<span class="attention"> *</span></th>
190      <td>
191        <span class="attention"><!--{$arrErr.password}--></span>
192        <input type="password" name="password" value="<!--{$list_data.password|escape}-->" size="30" class="box30" <!--{if $arrErr.password != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> 半角英数小文字4~10文字(記号不可)
193      </td>
194    </tr>
195    <tr>
196      <th>パスワードを忘れたときのヒント<span class="attention"> *</span></th>
197      <td>
198        <span class="attention"><!--{$arrErr.reminder}--><!--{$arrErr.reminder_answer}--></span>
199        質問:
200        <select name="reminder" <!--{if $arrErr.reminder != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> >
201          <option value="" selected="selected">選択してください</option>
202          <!--{html_options options=$arrReminder selected=$list_data.reminder}-->
203        </select><br />
204        答え:
205        <input type="text" name="reminder_answer" value="<!--{$list_data.reminder_answer|escape}-->" size="30" class="box30" <!--{if $arrErr.reminder_answer != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
206      </td>
207    </tr>
208    <tr>
209      <th>メールマガジン<span class="attention"> *</span></th>
210      <td>
211        <span class="attention"><!--{$arrErr.mailmaga_flg}--></span>
212        <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 
213        <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}--> />テキスト 
214        <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}--> />希望しない
215      </td>
216    </tr>
217    <tr>
218      <th>SHOP用メモ</th>
219      <td>
220        <span class="attention"><!--{$arrErr.note}--></span>
221        <textarea name="note" maxlength="<!--{$smarty.const.LTEXT_LEN}-->" <!--{if $arrErr.note != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> cols="60" rows="8" class="area60"><!--{$list_data.note|escape}--></textarea>
222      </td>
223    </tr>
224    <tr>
225      <th>所持ポイント</th>
226      <td>
227        <span class="attention"><!--{$arrErr.point}--></span>
228        <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
229      </td>
230    </tr>
231  </table>
232
233  <div class="btn">
234    <button type="button" onclick="return fnReturn();"><span>検索画面に戻る</span></button>
235    <button type="submit"><span>確認ページへ</span></button>
236  </div>
237
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>&nbsp;が該当しました。</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 class="center">
260        <td><!--{$arrPurchaseHistory[cnt].create_date|sfDispDBDate}--></td>
261        <td><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><!--{$arrPurchaseHistory[cnt].payment_total|number_format}-->円</td>
263        <td><!--{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><!--{$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>
Note: See TracBrowser for help on using the repository browser.