source: branches/version-2_12-multilang/data/Smarty/templates/default_en/shopping/payment.tpl @ 22262

Revision 22262, 14.6 KB checked in by michael_nelson, 11 years ago (diff)

#1992 英文テキストを調整

Line 
1<!--{*
2 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved.
5 *
6 * http://www.lockon.co.jp/
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 *}-->
22
23<script type="text/javascript">//<![CDATA[
24    $(function() {
25        if ($('input[name=deliv_id]:checked').val()
26            || $('#deliv_id').val()) {
27            showForm(true);
28        } else {
29            showForm(false);
30        }
31        $('input[id^=deliv_]').click(function() {
32            showForm(true);
33            var data = {};
34            data.mode = 'select_deliv';
35            data.deliv_id = $(this).val();
36            data['<!--{$smarty.const.TRANSACTION_ID_NAME}-->'] = '<!--{$transactionid}-->';
37            $.ajax({
38                type : 'POST',
39                url : location.pathname,
40                data: data,
41                cache : false,
42                dataType : 'json',
43                error : remoteException,
44                success : function(data, dataType) {
45                    if (data.error) {
46                        remoteException();
47                    } else {
48                        // 支払い方法の行を生成
49                        var payment_tbody = $('#payment tbody');
50                        payment_tbody.empty();
51                        for (var i in data.arrPayment) {
52                            // ラジオボタン
53                            <!--{* IE7未満対応のため name と id をベタ書きする *}-->
54                            var radio = $('<input type="radio" name="payment_id" id="pay_' + i + '" />')
55                                .val(data.arrPayment[i].payment_id);
56                            // ラベル
57                            var label = $('<label />')
58                                .attr('for', 'pay_' + i)
59                                .text(data.arrPayment[i].payment_method);
60                            // 行
61                            var tr = $('<tr />')
62                                .append($('<td />')
63                                    .addClass('alignC')
64                                    .append(radio))
65                                .append($('<td />').append(label));
66
67                            // 支払方法の画像が登録されている場合は表示
68                            if (data.img_show) {
69                                var payment_image = data.arrPayment[i].payment_image;
70                                $('th#payment_method').attr('colspan', 3);
71                                if (payment_image) {
72                                    var img = $('<img />').attr('src', '<!--{$smarty.const.IMAGE_SAVE_URLPATH}-->' + payment_image);
73                                    tr.append($('<td />').append(img));
74                                } else {
75                                    tr.append($('<td />'));
76                                }
77                            } else {
78                                $('th#payment_method').attr('colspan', 2);
79                            }
80
81                            tr.appendTo(payment_tbody);
82                        }
83                        // お届け時間を生成
84                        var deliv_time_id_select = $('select[id^=deliv_time_id]');
85                        deliv_time_id_select.empty();
86                        deliv_time_id_select.append($('<option />').text('No designation').val(''));
87                        for (var i in data.arrDelivTime) {
88                            var option = $('<option />')
89                                .val(i)
90                                .text(data.arrDelivTime[i])
91                                .appendTo(deliv_time_id_select);
92                        }
93                    }
94                }
95            });
96        });
97
98        /**
99         * 通信エラー表示.
100         */
101        function remoteException(XMLHttpRequest, textStatus, errorThrown) {
102            alert('An error occurred during transmission. The screen will switch to the cart screen.');
103            location.href = '<!--{$smarty.const.CART_URLPATH}-->';
104        }
105
106        /**
107         * 配送方法の選択状態により表示を切り替える
108         */
109        function showForm(show) {
110            if (show) {
111                $('#payment, div.delivdate, .select-msg').show();
112                $('.non-select-msg').hide();
113            } else {
114                $('#payment, div.delivdate, .select-msg').hide();
115                $('.non-select-msg').show();
116            }
117        }
118    });
119//]]></script>
120<div id="undercolumn">
121    <div id="undercolumn_shopping">
122        <div class="flow_area">
123            <ol>
124            <li><span>&gt; STEP1</span><br />Delivery destination</li>
125            <li class="large active"><span>&gt; STEP2</span><br />Payment method and delivery time</li>
126            <li><span>&gt; STEP3</span><br />Confirmation</li>
127            <li class="last"><span>&gt; STEP4</span><br />Order complete</li>
128            </ol>
129        </div>
130        <h2 class="title"><!--{$tpl_title|h}--></h2>
131
132        <form name="form1" id="form1" method="post" action="?">
133        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
134        <input type="hidden" name="mode" value="confirm" />
135        <input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->" />
136
137        <!--{assign var=key value="deliv_id"}-->
138        <!--{if $is_single_deliv}-->
139            <input type="hidden" name="<!--{$key}-->" value="<!--{$arrForm[$key].value}-->" id="deliv_id" />
140        <!--{else}-->
141        <div class="pay_area">
142            <h3>Delivery method</h3>
143            <p>Select the delivery method.</p>
144
145            <!--{if $arrErr[$key] != ""}-->
146            <p class="attention"><!--{$arrErr[$key]}--></p>
147            <!--{/if}-->
148            <table summary="Delivery method selection">
149                <col width="20%" />
150                <col width="80%" />
151                <tr>
152                    <th class="alignC">Selection</th>
153                    <th class="alignC" colspan="2">Delivery method</th>
154                </tr>
155                <!--{section name=cnt loop=$arrDeliv}-->
156                <tr>
157                    <td class="alignC"><input type="radio" id="deliv_<!--{$smarty.section.cnt.iteration}-->" name="<!--{$key}-->" value="<!--{$arrDeliv[cnt].deliv_id}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" <!--{$arrDeliv[cnt].deliv_id|sfGetChecked:$arrForm[$key].value}--> />
158                    </td>
159                    <td>
160                        <label for="deliv_<!--{$smarty.section.cnt.iteration}-->"><!--{$arrDeliv[cnt].name|h}--><!--{if $arrDeliv[cnt].remark != ""}--><p><!--{$arrDeliv[cnt].remark|h|nl2br}--></p><!--{/if}--></label>
161                    </td>
162                </tr>
163                <!--{/section}-->
164            </table>
165        </div>
166        <!--{/if}-->
167
168        <div class="pay_area">
169            <h3>Payment method</h3>
170            <p class="select-msg">Select the payment method.</p>
171            <p class="non-select-msg">First, select the delivery method.</p>
172
173            <!--{assign var=key value="payment_id"}-->
174            <!--{if $arrErr[$key] != ""}-->
175            <p class="attention"><!--{$arrErr[$key]}--></p>
176            <!--{/if}-->
177            <table summary="Payment method selection" id="payment">
178                <col width="20%" />
179                <col width="80%" />
180                <thead>
181                    <tr>
182                        <th class="alignC">Selection</th>
183                        <th class="alignC" colspan="<!--{if !$img_show}-->2<!--{else}-->3<!--{/if}-->" id="payment_method">Payment method</th>
184                    </tr>
185                </thead>
186                <tbody>
187                    <!--{section name=cnt loop=$arrPayment}-->
188                        <tr>
189                        <td class="alignC"><input type="radio" id="pay_<!--{$smarty.section.cnt.iteration}-->" name="<!--{$key}-->"  value="<!--{$arrPayment[cnt].payment_id}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" <!--{$arrPayment[cnt].payment_id|sfGetChecked:$arrForm[$key].value}--> /></td>
190                        <td>
191                            <label for="pay_<!--{$smarty.section.cnt.iteration}-->"><!--{$arrPayment[cnt].payment_method|h}--><!--{if $arrPayment[cnt].note != ""}--><!--{/if}--></label>
192                        </td>
193                        <!--{if $img_show}-->
194                            <td>
195                                <!--{if $arrPayment[cnt].payment_image != ""}-->
196                                    <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrPayment[cnt].payment_image}-->" />
197                                <!--{/if}-->
198                            </td>
199                        <!--{/if}-->
200                        </tr>
201                    <!--{/section}-->
202                </tbody>
203            </table>
204        </div>
205
206        <!--{if $cartKey != $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
207        <div class="pay_area02">
208            <h3>Delivery time</h3>
209            <p class="select-msg">If you wish, please select a delivery time.</p>
210            <p class="non-select-msg">First, select the delivery method.</p>
211            <!--{foreach item=shippingItem name=shippingItem from=$arrShipping}-->
212            <!--{assign var=index value=$shippingItem.shipping_id}-->
213            <div class="delivdate top">
214                <!--{if $is_multiple}-->
215                    <span class="st">▼<!--{$shippingItem.shipping_name01}--><!--{$shippingItem.shipping_name02}-->
216                    <!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01}--><!--{$shippingItem.shipping_addr02}--></span><br/>
217                <!--{/if}-->
218                <!--★お届け日★-->
219                <!--{assign var=key value="deliv_date`$index`"}-->
220                <span class="attention"><!--{$arrErr[$key]}--></span>
221                Delivery date:
222                <!--{if !$arrDelivDate}-->
223                    Date is not possible.
224                <!--{else}-->
225                    <select name="<!--{$key}-->" id="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
226                        <option value="" selected="">No designation</option>
227                        <!--{assign var=shipping_date_value value=$arrForm[$key].value|default:$shippingItem.shipping_date}-->
228                        <!--{html_options options=$arrDelivDate selected=$shipping_date_value}-->
229                    </select>&nbsp;
230                <!--{/if}-->
231                <!--★お届け時間★-->
232                <!--{assign var=key value="deliv_time_id`$index`"}-->
233                <span class="attention"><!--{$arrErr[$key]}--></span>
234                Delivery time:
235                <select name="<!--{$key}-->" id="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->">
236                    <option value="" selected="">No designation</option>
237                    <!--{assign var=shipping_time_value value=$arrForm[$key].value|default:$shippingItem.time_id}-->
238                    <!--{html_options options=$arrDelivTime selected=$shipping_time_value}-->
239                </select>
240            </div>
241            <!--{/foreach}-->
242        </div>
243        <!--{/if}-->
244
245        <!-- ▼ポイント使用 ここから -->
246        <!--{if $tpl_login == 1 && $smarty.const.USE_POINT !== false}-->
247            <div class="point_area">
248                <h3>Point usage</h3>
249                    <p>It is possible to use <span class="attention">1 point as &#036; <!--{$smarty.const.POINT_VALUE|number_format}--></span>.<br />
250                       If using points, check the box next to "Use points" and enter the number of points you want to use.
251                    </p>
252                    <div class="point_announce">
253                        <p><span class="user_name"><!--{$name01|h}--> <!--{$name02|h}--></span>, you currently have "<span class="point"><!--{$tpl_user_point|default:0|number_format}-->Pt</span>" points.<br />
254                            Total amount for this purchase:<span class="price">&#036; <!--{$arrPrices.subtotal|number_format}--></span> <span class="attention">(Does not include shipping fees and processing fees.)</span>
255                        </p>
256                        <ul>
257                            <li>
258                            <input type="radio" id="point_on" name="point_check" value="1" <!--{$arrForm.point_check.value|sfGetChecked:1}--> onclick="fnCheckInputPoint();" /><label for="point_on">Use points</label>
259                                <!--{assign var=key value="use_point"}--><br />
260                                Use <input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|default:$tpl_user_point}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" class="box60" /> Pt for this purchase.<span class="attention"><!--{$arrErr[$key]}--></span>
261                            </li>
262                            <li><input type="radio" id="point_off" name="point_check" value="2" <!--{$arrForm.point_check.value|sfGetChecked:2}--> onclick="fnCheckInputPoint();" /><label for="point_off">Do not use points</label></li>
263                        </ul>
264                </div>
265            </div>
266        <!--{/if}-->
267        <!-- ▲ポイント使用 ここまで -->
268
269        <div class="pay_area02">
270            <h3>Other inquiries</h3>
271            <p>If you have any other inquiries, please input them here.</p>
272            <div>
273                <!--★その他お問い合わせ事項★-->
274                <!--{assign var=key value="message"}-->
275                <span class="attention"><!--{$arrErr[$key]}--></span>
276                <textarea name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" cols="70" rows="8" class="txtarea" wrap="hard"><!--{"\n"}--><!--{$arrForm[$key].value|h}--></textarea>
277                <p class="attention">(Up to <!--{$smarty.const.LTEXT_LEN}--> characters)</p>
278            </div>
279        </div>
280
281
282        <div class="btn_area">
283            <ul>
284                <li><a class="bt04" href="?mode=return">Go back</a></li>
285                <li><button class="bt02">Next</button></li>
286            </ul>
287        </div>
288        </form>
289    </div>
290</div>
Note: See TracBrowser for help on using the repository browser.