source: branches/version-2_12-multilang/data/Smarty/templates/admin/customer/edit.tpl @ 22213

Revision 22213, 17.7 KB checked in by yomoro, 11 years ago (diff)

#1987 (国際化テンプレート:年月日のセレクトボックス廃止) jquery.ui.datepickerの言語ファイル切り分け

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2012 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    function fnReturn() {
28        document.search_form.action = './<!--{$smarty.const.DIR_INDEX_PATH}-->';
29        document.search_form.submit();
30        return false;
31    }
32   
33    $(function(){
34       
35        $( "#datepickercustomer_edit" ).datepicker({
36        beforeShowDay: function(date) {
37            if(date.getDay() == 0) {
38                return [true,"date-sunday"];
39            } else if(date.getDay() == 6){
40                return [true,"date-saturday"];
41            } else {
42                return [true];
43            }
44        },changeMonth: 'true'
45        ,changeYear: 'true'
46        ,onSelect: function(dateText, inst){
47            setDatecustomer_edit(dateText);
48        },
49        showButtonPanel: true,
50        beforeShow: showAdditionalButtoncustomer_edit,       
51        onChangeMonthYear: showAdditionalButtoncustomer_edit
52        });
53       
54        $("#datepickercustomer_edit").blur( function() {
55            var dateText = $(this).val();
56            setDatecustomer_edit(dateText);
57        });
58       
59    });
60   
61    var btn = $('<button class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" type="button">Clear</button>');
62   
63    var showAdditionalButtoncustomer_edit = function (input) {
64        setTimeout(function () {
65            var buttonPane = $(input)
66                     .datepicker("widget")
67                     .find(".ui-datepicker-buttonpane");
68            btn
69                    .unbind("click")
70                    .bind("click", function () {
71                        $.datepicker._clearDate(input);
72                        $("*[name=year]").val("");
73                        $("*[name=month]").val("");
74                        $("*[name=day]").val("");
75                    });
76            btn.appendTo(buttonPane);
77        }, 1);
78    };
79   
80    function setDatecustomer_edit(dateText){
81    var dates = dateText.split('/');
82    $("*[name=year]").val(dates[0]);
83    $("*[name=month]").val(dates[1]);
84    $("*[name=day]").val(dates[2]);
85    }
86//-->
87</script>
88
89<form name="search_form" method="post" action="">
90    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
91    <input type="hidden" name="mode" value="search" />
92
93    <!--{foreach from=$arrSearchData key="key" item="item"}-->
94        <!--{if $key ne "customer_id" && $key ne "mode" && $key ne "edit_customer_id" && $key ne $smarty.const.TRANSACTION_ID_NAME}-->
95            <!--{if is_array($item)}-->
96                <!--{foreach item=c_item from=$item}-->
97                    <input type="hidden" name="<!--{$key|h}-->[]" value="<!--{$c_item|h}-->" />
98                <!--{/foreach}-->
99            <!--{else}-->
100                <input type="hidden" name="<!--{$key|h}-->" value="<!--{$item|h}-->" />
101            <!--{/if}-->
102        <!--{/if}-->
103    <!--{/foreach}-->
104</form>
105
106<form name="form1" id="form1" method="post" action="?" autocomplete="off">
107    <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
108    <input type="hidden" name="mode" value="confirm" />
109    <input type="hidden" name="customer_id" value="<!--{$arrForm.customer_id|h}-->" />
110
111    <!-- 検索条件の保持 -->
112    <!--{foreach from=$arrSearchData key="key" item="item"}-->
113        <!--{if $key ne "customer_id" && $key ne "mode" && $key ne "edit_customer_id" && $key ne $smarty.const.TRANSACTION_ID_NAME}-->
114            <!--{if is_array($item)}-->
115                <!--{foreach item=c_item from=$item}-->
116                    <input type="hidden" name="search_data[<!--{$key|h}-->][]" value="<!--{$c_item|h}-->" />
117                <!--{/foreach}-->
118            <!--{else}-->
119                <input type="hidden" name="search_data[<!--{$key|h}-->]" value="<!--{$item|h}-->" />
120            <!--{/if}-->
121        <!--{/if}-->
122    <!--{/foreach}-->
123
124    <div id="customer" class="contents-main">
125        <table class="form">
126            <!--{if $arrForm.customer_id}-->
127            <tr>
128                <th><!--{t string="tpl_207_1"}--></th>
129                <td><!--{$arrForm.customer_id|h}--></td>
130            </tr>
131            <!--{/if}-->
132            <tr>
133                <th><!--{t string="tpl_209_1"}--></th>
134                <td>
135                    <span class="attention"><!--{$arrErr.status}--></span>
136                    <span <!--{if $arrErr.status != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->>
137                        <!--{html_radios name="status" options=$arrStatus separator=" " selected=$arrForm.status}-->
138                    </span>
139                </td>
140            </tr>
141            <tr>
142                <th><!--{t string="tpl_208_1"}--></th>
143                <td>
144                    <span class="attention"><!--{$arrErr.name01}--><!--{$arrErr.name02}--></span>
145                    <input type="text" name="name01" value="<!--{$arrForm.name01|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" <!--{if $arrErr.name01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />&nbsp;&nbsp;<input type="text" name="name02" value="<!--{$arrForm.name02|h}-->" maxlength="<!--{$smarty.const.STEXT_LEN}-->" size="30" class="box30" <!--{if $arrErr.name02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
146                </td>
147            </tr>
148            <tr>
149                <th><!--{t string="tpl_033_1"}--></th>
150                <td>
151                    <!--{* <span class="attention"><!--{$arrErr.zip01}--><!--{$arrErr.zip02}--></span> *}-->
152                    <span class="attention"><!--{$arrErr.zipcode}--></span>
153
154                    <!--{*
155                    <!--{t string="tpl_106"}--> <input type="text" name="zip01" value="<!--{$arrForm.zip01|h}-->" maxlength="<!--{$smarty.const.ZIP01_LEN}-->" size="6" class="box6" maxlength="3" <!--{if $arrErr.zip01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="zip02" value="<!--{$arrForm.zip02|h}-->" maxlength="<!--{$smarty.const.ZIP02_LEN}-->" size="6" class="box6" maxlength="4" <!--{if $arrErr.zip02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
156                    <a class="btn-normal" href="javascript:;" name="address_input" onclick="fnCallAddress('<!--{$smarty.const.INPUT_ZIP_URLPATH}-->', 'zip01', 'zip02', 'pref', 'addr01'); return false;"><!--{t string="tpl_211"}--></a>
157                    *}-->
158                    <!--{t string="tpl_106"}--> <input type="text" name="zipcode" value="<!--{$arrForm.zipcode|h}-->" maxlength="<!--{$smarty.const.ZIPCODE_LEN}-->" size="15" class="box10" maxlength="10" <!--{if $arrErr.zipcode != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
159                </td>
160            </tr>
161            <tr>
162                <th><!--{t string="tpl_212_1"}--></th>
163                <td>
164                    <span class="attention"><!--{$arrErr.addr01}--><!--{$arrErr.addr02}--></span>
165                    <input type="text" name="addr01" value="<!--{$arrForm.addr01|h}-->" size="60" class="box60" <!--{if $arrErr.addr01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /><br />
166                    <!--{$smarty.const.SAMPLE_ADDRESS1}--><br />
167                    <input type="text" name="addr02" value="<!--{$arrForm.addr02|h}-->" size="60" class="box60" <!--{if $arrErr.addr02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /><br />
168                    <!--{$smarty.const.SAMPLE_ADDRESS2}-->
169                </td>
170            </tr>
171            <tr>
172                <th><!--{t string="tpl_108_1"}--></th>
173                <td>
174                    <span class="attention"><!--{$arrErr.email}--></span>
175                    <input type="text" name="email" value="<!--{$arrForm.email|h}-->" size="60" class="box60" <!--{if $arrErr.email != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
176                </td>
177            </tr>
178            <tr>
179                <th><!--{t string="tpl_213"}--></th>
180                <td>
181                    <span class="attention"><!--{$arrErr.email_mobile}--></span>
182                    <input type="text" name="email_mobile" value="<!--{$arrForm.email_mobile|h}-->" size="60" class="box60" <!--{if $arrErr.email_mobile != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
183                </td>
184            </tr>
185            <tr>
186                <th><!--{t string="tpl_214_1"}--></th>
187                <td>
188                    <span class="attention"><!--{$arrErr.tel01}--><!--{$arrErr.tel02}--><!--{$arrErr.tel03}--></span>
189                    <input type="text" name="tel01" value="<!--{$arrForm.tel01|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.tel01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="tel02" value="<!--{$arrForm.tel02|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.tel01 != "" || $arrErr.tel02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="tel03" value="<!--{$arrForm.tel03|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.tel01 != "" || $arrErr.tel03 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
190                </td>
191            </tr>
192            <tr>
193                <th><!--{t string="tpl_039"}--></th>
194                <td>
195                    <span class="attention"><!--{$arrErr.fax01}--><!--{$arrErr.fax02}--><!--{$arrErr.fax03}--></span>
196                    <input type="text" name="fax01" value="<!--{$arrForm.fax01|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="fax02" value="<!--{$arrForm.fax02|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != "" || $arrErr.fax02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> - <input type="text" name="fax03" value="<!--{$arrForm.fax03|h}-->" maxlength="<!--{$smarty.const.TEL_ITEM_LEN}-->" size="6" class="box6" <!--{if $arrErr.fax01 != "" || $arrErr.fax03 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
197                </td>
198            </tr>
199            <tr>
200                <th><!--{t string="tpl_215_1"}--></th>
201                <td>
202                    <span class="attention"><!--{$arrErr.sex}--></span>
203                    <span <!--{if $arrErr.sex != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->>
204                        <!--{html_radios name="sex" options=$arrSex separator=" " selected=$arrForm.sex}-->
205                    </span>
206                </td>
207            </tr>
208            <tr>
209                <th><!--{t string="tpl_216"}--></th>
210                <td>
211                    <span class="attention"><!--{$arrErr.job}--></span>
212                    <select name="job" <!--{if $arrErr.job != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> >
213                    <option value="" selected="selected"><!--{t string="tpl_068"}--></option>
214                    <!--{html_options options=$arrJob selected=$arrForm.job}-->
215                    </select>
216                </td>
217            </tr>
218            <tr>
219                <th><!--{t string="tpl_217"}--></th>
220                <td>
221                    <!--{assign var=errBirth value="`$arrErr.year``$arrErr.month``$arrErr.day`"}-->
222                    <!--{if $errBirth}-->
223                        <div class="attention"><!--{$errBirth}--></div>
224                    <!--{/if}-->
225                    <input id="datepickercustomer_edit" type="text" value="<!--{if $arrForm.year != "" && $arrForm.month != "" && $arrForm.day != ""}--><!--{$arrForm.year|h}-->/<!--{$arrForm.month|h|string_format:'%02d'}-->/<!--{$arrForm.day|h|string_format:'%02d'}--><!--{/if}-->" <!--{if $arrErr.year != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
226                    <input type="hidden" name="year" value="<!--{$arrForm.year}-->" />
227                    <input type="hidden" name="month" value="<!--{$arrForm.month}-->" />
228                    <input type="hidden" name="day" value="<!--{$arrForm.day}-->" />
229                </td>
230            </tr>
231            <tr>
232                <th><!--{t string="tpl_218_1"}--></th>
233                <td>
234                    <span class="attention"><!--{$arrErr.password}--><!--{$arrErr.password02}--></span>
235                    <input type="password" name="password" value="<!--{$arrForm.password|h}-->" size="30" class="box30" <!--{if $arrErr.password != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> <!--{t string="tpl_219" T_FIELD1=$smarty.const.PASSWORD_MIN_LEN T_FIELD2=$smarty.const.PASSWORD_MAX_LEN}--><br />
236                    <input type="password" name="password02" value="<!--{$arrForm.password02|h}-->" size="30" class="box30" <!--{if $arrErr.password02 != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
237                    <p><span class="attention mini"><!--{t string="tpl_220"}--></span></p>
238                </td>
239            </tr>
240            <tr>
241                <th><!--{t string="tpl_221_1"}--></th>
242                <td>
243                    <span class="attention"><!--{$arrErr.reminder}--><!--{$arrErr.reminder_answer}--></span>
244                    <!--{t string="tpl_222"}-->
245                    <select class="top" name="reminder" <!--{if $arrErr.reminder != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> >
246                        <option value="" selected="selected"><!--{t string="tpl_068"}--></option>
247                        <!--{html_options options=$arrReminder selected=$arrForm.reminder}-->
248                    </select><br />
249                    <!--{t string="tpl_223"}-->
250                    <input type="text" name="reminder_answer" value="<!--{$arrForm.reminder_answer|h}-->" size="30" class="box30" <!--{if $arrErr.reminder_answer != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> />
251                </td>
252            </tr>
253            <tr>
254                <th><!--{t string="tpl_224_1"}--></th>
255                <td>
256                    <span class="attention"><!--{$arrErr.mailmaga_flg}--></span>
257                    <span <!--{if $arrErr.mailmaga_flg != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->>
258                        <!--{html_radios name="mailmaga_flg" options=$arrMailMagazineType separator=" " selected=$arrForm.mailmaga_flg}-->
259                    </span>
260                </td>
261            </tr>
262            <tr>
263                <th><!--{t string="tpl_225"}--></th>
264                <td>
265                    <span class="attention"><!--{$arrErr.note}--></span>
266                    <textarea name="note" maxlength="<!--{$smarty.const.LTEXT_LEN}-->" <!--{if $arrErr.note != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> cols="60" rows="8" class="area60"><!--{"\n"}--><!--{$arrForm.note|h}--></textarea>
267                </td>
268            </tr>
269            <tr>
270                <th><!--{t string="tpl_226_1"}--></th>
271                <td>
272                    <span class="attention"><!--{$arrErr.point}--></span>
273                    <!--{t string="pt_prefix"}--><input type="text" name="point" value="<!--{$arrForm.point|h}-->" maxlength="<!--{$smarty.const.TEL_LEN}-->" size="6" class="box6" <!--{if $arrErr.point != ""}--><!--{sfSetErrorStyle}--><!--{/if}--> /> <!--{t string="pt_suffix"}-->
274                </td>
275            </tr>
276        </table>
277
278        <div class="btn-area">
279            <ul>
280                <li><a class="btn-action" href="javascript:;" onclick="return fnReturn();"><span class="btn-prev"><!--{t string="tpl_227"}--></span></a></li>
281                <li><a class="btn-action" href="javascript:;" onclick="fnSetFormSubmit('form1', 'mode', 'confirm'); return false;"><span class="btn-next"><!--{t string="tpl_228"}--></span></a></li>
282            </ul>
283        </div>
284
285        <input type="hidden" name="order_id" value="" />
286        <input type="hidden" name="search_pageno" value="<!--{$tpl_pageno}-->">
287        <input type="hidden" name="edit_customer_id" value="<!--{$edit_customer_id}-->" >
288
289        <h2><!--{t string="tpl_229"}--></h2>
290        <!--{if $tpl_linemax > 0}-->
291        <p><!--購入履歴一覧--><!--{t string="tpl_230" T_FIELD=$tpl_linemax}--></p>
292
293        <!--{include file=$tpl_pager}-->
294
295            <!--{* 購入履歴一覧表示テーブル *}-->
296            <table class="list">
297                <tr>
298                    <th><!--{t string="tpl_024"}--></th>
299                    <th><!--{t string="tpl_231"}--></th>
300                    <th><!--{t string="tpl_232"}--></th>
301                    <th><!--{t string="tpl_233"}--></th>
302                    <th><!--{t string="tpl_016"}--></th>
303                </tr>
304                <!--{section name=cnt loop=$arrPurchaseHistory}-->
305                    <tr>
306                        <td><!--{$arrPurchaseHistory[cnt].create_date|sfDispDBDate}--></td>
307                        <td class="center"><a href="../order/edit.php?order_id=<!--{$arrPurchaseHistory[cnt].order_id}-->" ><!--{$arrPurchaseHistory[cnt].order_id}--></a></td>
308                        <td class="center"><!--{t string="tpl_500" T_FIELD=$arrPurchaseHistory[cnt].payment_total|number_format}--></td>
309                        <td class="center"><!--{if $arrPurchaseHistory[cnt].status eq 5}--><!--{$arrPurchaseHistory[cnt].commit_date|sfDispDBDate}--><!--{else}--><!--{t string="tpl_234"}--><!--{/if}--></td>
310                        <!--{assign var=payment_id value="`$arrPurchaseHistory[cnt].payment_id`"}-->
311                        <td class="center"><!--{$arrPayment[$payment_id]|h}--></td>
312                    </tr>
313                <!--{/section}-->
314            </table>
315            <!--{* 購入履歴一覧表示テーブル *}-->
316        <!--{else}-->
317            <div class="message"><!--{t string="tpl_235"}--></div>
318        <!--{/if}-->
319
320    </div>
321</form>
Note: See TracBrowser for help on using the repository browser.