source: branches/version-2_13-dev/data/Smarty/templates/sphone/shopping/confirm.tpl @ 23002

Revision 23002, 15.4 KB checked in by Yammy, 11 years ago (diff)

スマートフォンテンプレート下部にある検索エリアを
共通テンプレート化して、includeするように修正

refs #2257

  • 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-2013 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>//<![CDATA[
24    var sent = false;
25
26    function fnCheckSubmit() {
27        if (sent) {
28            alert("只今、処理中です。しばらくお待ち下さい。");
29            return false;
30        }
31        sent = true;
32        return true;
33    }
34
35    //ご注文内容エリアの表示/非表示
36    var speed = 1000; //表示アニメのスピード(ミリ秒)
37    var stateCartconfirm = 0;
38    function fnCartconfirmToggle(areaEl, imgEl) {
39        areaEl.toggle(speed);
40        if (stateCartconfirm == 0) {
41            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_plus.png");
42            stateCartconfirm = 1;
43        } else {
44            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_minus.png");
45            stateCartconfirm = 0
46        }
47    }
48    //お届け先エリアの表示/非表示
49    var stateDelivconfirm = 0;
50    function fnDelivconfirmToggle(areaEl, imgEl) {
51        areaEl.toggle(speed);
52        if (stateDelivconfirm == 0) {
53            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_plus.png");
54            stateDelivconfirm = 1;
55        } else {
56            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_minus.png");
57            stateDelivconfirm = 0
58        }
59    }
60    //配送方法エリアの表示/非表示
61    var stateOtherconfirm = 0;
62    function fnOtherconfirmToggle(areaEl, imgEl) {
63        areaEl.toggle(speed);
64        if (stateOtherconfirm == 0) {
65            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_plus.png");
66            stateOtherconfirm = 1;
67        } else {
68            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_minus.png");
69            stateOtherconfirm = 0
70        }
71    }
72//]]></script>
73
74<!--▼コンテンツここから -->
75<section id="undercolumn">
76
77    <h2 class="title"><!--{$tpl_title|h}--></h2>
78
79    <!--★インフォメーション★-->
80    <div class="information end">
81        <p>下記ご注文内容でよろしければ、「ご注文完了ページへ」ボタンをクリックしてください。</p>
82    </div>
83
84    <form name="form1" id="form1" method="post" action="<!--{$smarty.const.ROOT_URLPATH}-->shopping/confirm.php">
85        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
86        <input type="hidden" name="mode" value="confirm" />
87        <input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->" />
88
89        <h3 class="subtitle">ご注文内容</h3>
90
91        <section class="cartconfirm_area">
92            <div class="form_area">
93                <!--▼フォームボックスここから -->
94                <div class="formBox">
95                    <!--▼カートの中の商品一覧 -->
96                    <div class="cartcartconfirmarea">
97                        <!--{foreach from=$arrCartItems item=item}-->
98                            <!--▼商品 -->
99                            <div class="cartconfirmBox">
100                                <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="<!--{$item.productsClass.name|h}-->" width="80" height="80" class="photoL" />
101                                <div class="cartconfirmContents">
102                                    <div>
103                                        <p><em><!--{$item.productsClass.name|h}--></em><br />
104                                        <!--{if $item.productsClass.classcategory_name1 != ""}-->
105                                                <span class="mini"><!--{$item.productsClass.class_name1|h}-->:<!--{$item.productsClass.classcategory_name1|h}--></span><br />
106                                        <!--{/if}-->
107                                        <!--{if $item.productsClass.classcategory_name2 != ""}-->
108                                                <span class="mini"><!--{$item.productsClass.class_name2|h}-->:<!--{$item.productsClass.classcategory_name2|h}--></span>
109                                        <!--{/if}-->
110                                        </p>
111                                    </div>
112                                    <ul>
113                                        <li><span class="mini">数量:</span><!--{$item.quantity|number_format}--></li>
114                                        <li class="result"><span class="mini">小計:</span><!--{$item.total_inctax|number_format}-->円</li>
115                                    </ul>
116                                </div>
117                            </div>
118                            <!--▲商品 -->
119                        <!--{/foreach}-->
120                    </div>
121                    <!--▲カートの中の商品一覧 -->
122
123                    <!--★合計内訳★-->
124                    <div class="result_area">
125                        <ul>
126                            <li><span class="mini">小計 :</span><!--{$tpl_total_inctax[$cartKey]|number_format}--> 円</li>
127                            <!--{if $smarty.const.USE_POINT !== false}-->
128                                <li><span class="mini">値引き(ポイントご使用時): </span><!--{assign var=discount value=`$arrForm.use_point*$smarty.const.POINT_VALUE`}-->
129                                -<!--{$discount|number_format|default:0}--> 円</li>
130                            <!--{/if}-->
131                            <li><span class="mini">送料 :</span><!--{$arrForm.deliv_fee|number_format}--> 円</li>
132                            <li><span class="mini">手数料 :</span><!--{$arrForm.charge|number_format}--> 円</li>
133                        </ul>
134                    </div>
135
136                    <!--★合計★-->
137                    <div class="total_area">
138                        <span class="mini">合計:</span><span class="price fb"><!--{$arrForm.payment_total|number_format}--> 円</span>
139                    </div>
140                </div><!-- /.formBox -->
141
142                <!--{* ログイン済みの会員のみ *}-->
143                <!--{if $tpl_login == 1 && $smarty.const.USE_POINT !== false}-->
144                    <!--★ポイント情報★-->
145                    <div class="formBox point_confifrm">
146                        <dl>
147                            <dt>ご注文前のポイント</dt><dd><!--{$tpl_user_point|number_format|default:0}-->Pt</dd>
148                        </dl>
149                        <dl>
150                            <dt>ご使用ポイント</dt><dd>-<!--{$arrForm.use_point|number_format|default:0}-->Pt</dd>
151                        </dl>
152                        <!--{if $arrForm.birth_point > 0}-->
153                        <dl>
154                            <dt>お誕生月ポイント</dt><dd>+<!--{$arrForm.birth_point|number_format|default:0}-->Pt</dd>
155                        </dl>
156                        <!--{/if}-->
157                        <dl>
158                            <dt>今回加算予定のポイント</dt><dd>+<!--{$arrForm.add_point|number_format|default:0}-->Pt</dd>
159                        </dl>
160                        <dl>
161                            <!--{assign var=total_point value=`$tpl_user_point-$arrForm.use_point+$arrForm.add_point`}-->
162                            <dt>加算後のポイント</dt><dd><!--{$total_point|number_format}-->Pt</dd>
163                        </dl>
164                    </div><!-- /.formBox -->
165                <!--{/if}-->
166            </div><!-- /.form_area -->
167        </section>
168
169        <!--★お届け先の確認★-->
170        <!--{if $arrShipping}-->
171            <section class="delivconfirm_area">
172                <h3 class="subtitle">お届け先</h3>
173
174                <div class="form_area">
175
176                    <!--{foreach item=shippingItem from=$arrShipping name=shippingItem}-->
177                        <!--▼フォームボックスここから -->
178                        <div class="formBox">
179                            <dl class="deliv_confirm">
180                                <dt>お届け先<!--{if $is_multiple}--><!--{$smarty.foreach.shippingItem.iteration}--><!--{/if}--></dt>
181                                <dd>
182                                    <p>〒<!--{$shippingItem.shipping_zip01|h}-->-<!--{$shippingItem.shipping_zip02|h}--><br />
183                                        <!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01|h}--><!--{$shippingItem.shipping_addr02|h}--></p>
184                                    <p class="deliv_name"><!--{$shippingItem.shipping_name01|h}--> <!--{$shippingItem.shipping_name02|h}--></p>
185                                    <p><!--{$shippingItem.shipping_tel01}-->-<!--{$shippingItem.shipping_tel02}-->-<!--{$shippingItem.shipping_tel03}--></p>
186                                    <!--{if $shippingItem.shipping_fax01 > 0}-->
187                                        <p><!--{$shippingItem.shipping_fax01}-->-<!--{$shippingItem.shipping_fax02}-->-<!--{$shippingItem.shipping_fax03}--></p>
188                                    <!--{/if}-->
189                                </dd>
190                                <!--{if $cartKey != $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
191                                    <dd>
192                                        <ul class="date_confirm">
193                                            <li><em>お届け日:</em><!--{$shippingItem.shipping_date|default:"指定なし"|h}--></li>
194                                            <li><em>お届け時間:</em><!--{$shippingItem.shipping_time|default:"指定なし"|h}--></li>
195                                        </ul>
196                                    </dd>
197                                <!--{/if}-->
198                            </dl>
199
200                            <!--{if $is_multiple}-->
201                                <!--▼カートの中の商品一覧 -->
202                                <div class="cartcartconfirmarea">
203                                    <!--{foreach item=item from=$shippingItem.shipment_item}-->
204                                        <!--▼商品 -->
205                                        <div class="cartconfirmBox">
206                                            <!--{if $item.productsClass.main_image|strlen >= 1}-->
207                                                <a href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$item.productsClass.main_image|sfNoImageMainList|h}-->" target="_blank">
208                                                <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="<!--{$item.productsClass.name|h}-->" width="80" height="80" class="photoL" /></a>
209                                            <!--{else}-->
210                                                <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="<!--{$item.productsClass.name|h}-->" width="80" height="80" class="photoL" />
211                                            <!--{/if}-->
212                                            <div class="cartconfirmContents">
213                                                <p>
214                                                    <em><!--{$item.productsClass.name|h}--></em><br />
215                                                    <!--{if $item.productsClass.classcategory_name1 != ""}-->
216                                                            <span class="mini"><!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--></span><br />
217                                                    <!--{/if}-->
218                                                    <!--{if $item.productsClass.classcategory_name2 != ""}-->
219                                                            <span class="mini"><!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}--></span>
220                                                    <!--{/if}-->
221                                                </p>
222                                                <ul>
223                                                    <li><span class="mini">数量:</span><!--{$item.quantity}--></li>
224                                                    <!--{* XXX デフォルトでは購入小計と誤差が出るためコメントアウト*}-->
225                                                    <li class="result"><span class="mini">小計:</span><!--{$item.total_inctax|number_format}-->円</li>
226                                                </ul>
227                                            </div>
228                                        </div>
229                                        <!--▲商品 -->
230                                    <!--{/foreach}-->
231                                </div>
232                                <!--▲カートの中の商品一覧ここまで -->
233                            <!--{/if}-->
234                        </div><!-- /.formBox -->
235                    <!--{/foreach}-->
236                </div><!-- /.form_area -->
237            </section>
238        <!--{/if}-->
239
240        <!--★配送方法・お支払方法など★-->
241        <section class="otherconfirm_area">
242            <h3 class="subtitle">配送方法・お支払方法など</h3>
243
244            <div class="form_area">
245                <!--▼フォームボックスここから -->
246                <div class="formBox">
247                    <div class="innerBox">
248                        <em>配送方法</em>:<!--{$arrDeliv[$arrForm.deliv_id]|h}-->
249                    </div>
250                    <div class="innerBox">
251                        <em>お支払方法:</em><!--{$arrForm.payment_method|h}-->
252                    </div>
253                    <div class="innerBox">
254                        <em>その他お問い合わせ:</em><br />
255                        <!--{$arrForm.message|h|nl2br}-->
256                    </div>
257                </div><!-- /.formBox -->
258            </div><!-- /.form_area -->
259        </section>
260
261        <!--★ボタン★-->
262        <div class="btn_area">
263            <ul class="btn_btm">
264                <!--{if $use_module}-->
265                    <li><a rel="external" href="javascript:void(document.form1.submit());" class="btn">次へ</a></li>
266                <!--{else}-->
267                    <li><a rel="external" href="javascript:void(document.form1.submit());" class="btn">ご注文完了ページへ</a></li>
268                <!--{/if}-->
269                <li><a rel="external" href="./payment.php" class="btn_back">戻る</a></li>
270            </ul>
271        </div>
272
273    </form>
274</section>
275
276<!--{include file= 'frontparts/search_area.tpl'}-->
277
278<!--▲コンテンツここまで -->
Note: See TracBrowser for help on using the repository browser.