source: branches/version-2_11-dev/data/Smarty/templates/sphone/shopping/payment.tpl @ 21228

Revision 21228, 12.5 KB checked in by fukap, 13 years ago (diff)

スマートフォンサイト 商品名検索で「全商品」という見出しを修正
該当箇所が他にも見つかったので最後コミット

  • 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 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2011 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<!--▼CONTENTS-->
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 = $('#payment');
50                        payment.empty();
51                        for (var i in data.arrPayment) {
52                            // ラジオボタン
53                            var radio = $('<input type="radio" />')
54                                .attr('name', 'payment_id')
55                                .attr('id', 'pay_' + i)
56                                .val(data.arrPayment[i].payment_id);
57                            // ラベル
58                            var label = $('<label />')
59                                .attr('for', 'pay_' + i)
60                                .text(data.arrPayment[i].payment_method);
61                            // 行
62                            var li = $('<li />')
63                                .append($('<td />')
64                                        .addClass('centertd')
65                                        .append(radio)
66                                        .append(label));
67
68                            li.appendTo(payment);
69                        }
70                        // お届け時間を生成
71                        var deliv_time_id_select = $('select[id^=deliv_time_id]');
72                        deliv_time_id_select.empty();
73                        deliv_time_id_select.append($('<option />').text('指定なし').val(''));
74                        for (var i in data.arrDelivTime) {
75                            var option = $('<option />')
76                                .val(i)
77                                .text(data.arrDelivTime[i])
78                                .appendTo(deliv_time_id_select);
79                        }
80                    }
81                }
82            });
83        });
84
85        /**
86         * 通信エラー表示.
87         */
88        function remoteException(XMLHttpRequest, textStatus, errorThrown) {
89            alert('通信中にエラーが発生しました。カート画面に移動します。');
90            location.href = '<!--{$smarty.const.CART_URLPATH}-->';
91        }
92
93        /**
94         * 配送方法の選択状態により表示を切り替える
95         */
96        function showForm(show) {
97            if (show) {
98                $('#payment, div.delivdate, .select-msg').show();
99                $('.non-select-msg').hide();
100            } else {
101                $('#payment, div.delivdate, .select-msg').hide();
102                $('.non-select-msg').show();
103            }
104        }
105
106        $('#etc')
107          .css('font-size', '100%')
108          .autoResizeTextAreaQ({
109              'max_rows': 50,
110              'extra_rows': 0
111          });
112    });
113//]]>
114</script>
115 
116<!--▼コンテンツここから -->
117<section id="undercolumn">
118
119<h2 class="title"><!--{$tpl_title|h}--></h2>
120
121<form name="form1" id="form1" method="post" action="<!--{$smarty.const.HTTP_URL}-->shopping/payment.php">
122            <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
123            <input type="hidden" name="mode" value="confirm" />
124            <input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->" />
125
126<!--★インフォメーション★-->
127<div class="information end">
128  <p>各項目を選択してください。</p> 
129</div>
130
131<!--★配送方法の指定★-->
132<!--{assign var=key value="deliv_id"}-->
133 <!--{if $is_single_deliv}-->
134 <input type="hidden" name="<!--{$key}-->" value="<!--{$arrForm[$key].value}-->" id="deliv_id" />
135  <!--{else}-->
136<section class="pay_area">
137 <h3 class="subtitle">配送方法の指定</h3>
138  <!--{if $arrErr[$key] != ""}-->
139  <p class="attention"><!--{$arrErr[$key]}--></p>
140  <!--{/if}-->
141  <ul>
142  <!--{section name=cnt loop=$arrDeliv}-->
143   <li>
144     <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}--> class="data-role-none" />
145     <label for="deliv_<!--{$smarty.section.cnt.iteration}-->"><!--{$arrDeliv[cnt].name|h}--><!--{if $arrDeliv[cnt].remark != ""}--><p><!--{$arrDeliv[cnt].remark|h}--></p><!--{/if}--></label>
146   </li>
147  <!--{/section}-->
148  </ul>
149</section>
150<!--{/if}-->
151
152<!--★インフォメーション★-->
153<section class="pay_area">
154 <h3 class="subtitle">お支払方法の指定</h3>
155  <!--{assign var=key value="payment_id"}-->
156  <!--{if $arrErr[$key] != ""}-->
157    <p class="attention"><!--{$arrErr[$key]}--></p>
158  <!--{/if}-->
159  <p class="non-select-msg information">まずはじめに、配送方法を選択ください。</p>
160  <ul id="payment">
161  <!--{section name=cnt loop=$arrPayment}-->
162   <li>
163     <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}--> class="data-role-none" />
164     <label for="pay_<!--{$smarty.section.cnt.iteration}-->"><!--{$arrPayment[cnt].payment_method|h}--><!--{if $arrPayment[cnt].note != ""}--><!--{/if}--></label>
165     <!--{if $img_show}-->
166         <!--{if $arrPayment[cnt].payment_image != ""}-->
167             <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrPayment[cnt].payment_image}-->" />
168         <!--{/if}-->
169     <!--{/if}-->
170   </li>
171  <!--{/section}-->
172  </ul>
173</section>
174
175
176<!--★お届け時間の指定★-->
177<!--{if $cartKey != $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
178<section class="pay_area02">
179 <h3 class="subtitle">お届け時間の指定</h3>
180
181 <div class="form_area">
182  <!--{foreach item=shippingItem name=shippingItem from=$arrShipping}-->
183  <!--{assign var=index value=$shippingItem.shipping_id}-->
184 
185 <!--▼フォームボックスここから -->
186 <!--{if $is_multiple}-->
187  <div class="formBox">
188    <div class="box_header">
189      お届け先<!--{$smarty.foreach.shippingItem.iteration}-->
190    </div>
191
192     <div class="innerBox">
193       <!--{$shippingItem.shipping_name01}--><!--{$shippingItem.shipping_name02}--><br />
194        <span class="mini"><!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01}--><!--{$shippingItem.shipping_addr02}--></span>
195     </div>
196 <!--{else}-->
197   <div class="time_select">
198 <!--{/if}-->
199       <div class="btn_area_btm">
200       <!--★お届け日★-->
201       <!--{assign var=key value="deliv_date`$index`"}-->
202       <span class="attention"><!--{$arrErr[$key]}--></span>
203        <!--{if !$arrDelivDate}-->
204            ご指定頂けません。
205        <!--{else}-->
206             <select name="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" class="boxLong top data-role-none">
207                <option value="" selected="">お届け日:指定なし</option>
208                <!--{html_options options=$arrDelivDate selected=$arrForm[$key].value}-->
209             </select>
210<!--{/if}-->
211
212<!--★お届け時間★-->
213<!--{assign var=key value="deliv_time_id`$index`"}-->
214        <span class="attention"><!--{$arrErr[$key]}--></span>
215           <select name="<!--{$key}-->" id="<!--{$key}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" class="boxLong data-role-none">
216                <option value="" selected="">お届け時間:指定なし</option>
217                <!--{html_options options=$arrDelivTime selected=$arrForm[$key].value}-->
218           </select>
219                </div>
220                  </div><!--▲formBox -->
221<!--{/foreach}-->
222
223         </div><!--▲form_area -->
224     </section>
225<!--{/if}-->
226
227
228<!--★ポイント使用の指定★-->
229<!--{if $tpl_login == 1 && $smarty.const.USE_POINT !== false}-->
230<section class="point_area">
231<h3 class="subtitle">ポイント使用の指定</h3>
232 
233 <div class="form_area">
234   <p class="fb"><span class="point">1ポイントを1円</span>として使用する事ができます。</p>
235     <div class="point_announce">
236       <p>現在の所持ポイントは「<span class="price"><!--{$tpl_user_point|default:0|number_format}-->Pt</span>」です。<br />
237            今回ご購入合計金額:<span class="price"><!--{$arrPrices.subtotal|number_format}-->円</span> (送料、手数料を含みません。)</p>
238             </div>
239
240  <!--▼ポイントフォームボックスここから -->
241     <div class="formBox">
242        <div class="innerBox fb">
243           <p><input type="radio" id="point_on" name="point_check" value="1" <!--{$arrForm.point_check.value|sfGetChecked:1}--> onchange="fnCheckInputPoint();" class="data-role-none" />
244               <label for="point_on">ポイントを使用する</label></p>
245           <!--{assign var=key value="use_point"}-->
246           
247           <p class="check_point"><input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key].value|default:$tpl_user_point}-->" maxlength="<!--{$arrForm[$key].length}-->" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" class="box_point data-role-none" />ポイントを使用する。<span class="attention"><!--{$arrErr[$key]}--></span></p>
248            </div>
249       <div class="innerBox fb">
250         <input type="radio" id="point_off" name="point_check" value="2" <!--{$arrForm.point_check.value|sfGetChecked:2}--> onchange="fnCheckInputPoint();" class="data-role-none" />
251           <label for="point_off">ポイントを使用しない</label>
252         </div>
253             </div><!--▲formBox -->
254               </div><!--▲form_area -->
255                 </section>
256<!--{/if}-->
257
258<!--★その他お問い合わせ★-->
259<section class="contact_area">
260 <h3 class="subtitle">その他お問い合わせ</h3>
261  <div class="form_area">
262    <p>その他お問い合わせ事項がございましたら、こちらにご入力ください。</p>
263   
264       <!--{assign var=key value="message"}-->
265       <span class="attention"><!--{$arrErr[$key]}--></span>
266       <textarea name="<!--{$key}-->" id="etc" style="<!--{$arrErr[$key]|sfGetErrorColor}-->" cols="62" rows="8" class="textarea data-role-none" wrap="hard"><!--{$arrForm[$key].value|h}--></textarea><br />
267       
268         </div><!--▲form_area -->
269          </section>
270
271<!--★ボタン★-->
272<div class="btn_area">
273  <ul class="btn_btm">
274    <li><a rel="external" href="javascript:void(document.form1.submit());" class="btn">確認ページへ</a></li>
275    <li><a rel="external" href="<!--{$tpl_back_url|h}-->" class="btn_back">戻る</a></li>
276     </ul>
277       </div>
278
279</form>
280</section>
281<!--▼検索バー -->
282<section id="search_area">
283<form method="get" action="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php">
284<input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
285<input type="hidden" name="mode" value="search" />
286<input type="search" name="name" id="search" value="" placeholder="キーワードを入力" class="searchbox" >
287</form>
288</section>
289<!--▲検索バー -->
290<!--▲コンテンツここまで -->
Note: See TracBrowser for help on using the repository browser.