source: branches/version-2_5-dev/data/Smarty/templates/default/cart/index.tpl @ 19943

Revision 19943, 10.3 KB checked in by Seasoft, 13 years ago (diff)

#834(パラメータの定数名に「URL」を含むにもかかわらず、パスのみのものがある)

  • パラメータサフィックスの変更 *_URL_PATH → *_URLPATH
  • Property svn:eol-style set to LF
  • 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-2010 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<script type="text/javascript" src="<!--{$smarty.const.URL_PATH}-->js/jquery.facebox/facebox.js"></script>
23<link rel="stylesheet" type="text/css" href="<!--{$smarty.const.URL_PATH}-->js/jquery.facebox/facebox.css" media="screen" />
24<script type="text/javascript">//<![CDATA[
25$(document).ready(function() {
26    $('a.expansion').facebox({
27        loadingImage : '<!--{$smarty.const.URL_PATH}-->js/jquery.facebox/loading.gif',
28        closeImage   : '<!--{$smarty.const.URL_PATH}-->js/jquery.facebox/closelabel.png'
29    });
30});
31//]]></script>
32
33<!--▼CONTENTS-->
34<div id="under02column">
35    <div id="under02column_cart">
36        <h2 class="title"><!--{$tpl_title|h}--></h2>
37        <!--{if $smarty.const.USE_POINT !== false || count($arrProductsClass) > 0}-->
38            <p class="totalmoneyarea">
39                <!--★ポイント案内★-->
40                <!--{if $smarty.const.USE_POINT !== false}-->
41                    <!--{if $tpl_login}-->
42                        <!--{$tpl_name|h}--> 様の、現在の所持ポイントは「<em><!--{$tpl_user_point|number_format|default:0}--> pt</em>」です。<br />
43                    <!--{else}-->
44                        ポイント制度をご利用になられる場合は、会員登録後ログインしていだだきますようお願い致します。<br />
45                    <!--{/if}-->
46                    ポイントは商品購入時に1pt=<!--{$smarty.const.POINT_VALUE}-->円として使用することができます。<br />
47                <!--{/if}-->
48               
49                <!--{* カゴの中に商品がある場合にのみ表示 *}-->
50                <!--{if count($cartKeys) > 1}-->
51                    <em><!--{foreach from=$cartKeys item=key name=cartKey}--><!--{$arrProductType[$key]}--><!--{if !$smarty.foreach.cartKey.last}-->、<!--{/if}--><!--{/foreach}-->は同時購入できません。お手数ですが、個別に購入手続きをお願い致します。</em>
52                <!--{/if}-->
53            </p>
54        <!--{/if}-->
55
56    <!--{if strlen($tpl_error) != 0}-->
57        <p class="attention"><!--{$tpl_error|h}--></p>
58    <!--{/if}-->
59
60    <!--{if strlen($tpl_message) != 0}-->
61        <p class="attention"><!--{$tpl_message|h|nl2br}--></p>
62    <!--{/if}-->
63
64    <!--{if count($cartItems) > 0}-->
65
66    <!--{foreach from=$cartKeys item=key}-->
67        <form name="form<!--{$key}-->" id="form<!--{$key}-->" method="post" action="?">
68
69            <input type="hidden" name="mode" value="confirm" />
70            <input type="hidden" name="cart_no" value="" />
71            <input type="hidden" name="cartKey" value="<!--{$key}-->" />
72            <!--{if count($cartKeys) > 1 }-->
73            <h3><!--{$arrProductType[$key]}--></h3>
74                <p>
75                    <!--{$arrProductType[$key]}-->の合計金額は「<em><!--{$tpl_total_inctax[$key]|number_format}-->円</em>」です。
76                    <!--{if $arrInfo.free_rule > 0}-->
77                        <!--{if $arrData[$key].deliv_fee > 0}-->
78                            あと「<em><!--{$tpl_deliv_free[$key]|number_format}-->円</em>」で送料無料です!!
79                        <!--{else}-->
80                            現在、「<em>送料無料</em>」です!!
81                        <!--{/if}-->
82                    <!--{/if}-->
83                </p>
84            <!--{else}-->
85                <p>
86                    お買い上げ商品の合計金額は「<em><!--{$tpl_total_inctax[$key]|number_format}-->円</em>」です。
87                    <!--{if $arrInfo.free_rule > 0}-->
88                        <!--{if $arrData[$key].deliv_fee > 0}-->
89                            あと「<em><!--{$tpl_deliv_free[$key]|number_format}-->円</em>」で送料無料です!!
90                        <!--{else}-->
91                            現在、「<em>送料無料</em>」です!!
92                        <!--{/if}-->
93                    <!--{/if}-->
94                </p>
95            <!--{/if}-->
96
97            <table summary="商品情報">
98                <tr>
99                    <th>削除</th>
100                    <th>商品写真</th>
101                    <th>商品名</th>
102                    <th>単価</th>
103                    <th>数量</th>
104                    <th>小計</th>
105                </tr>
106                <!--{foreach from=$cartItems[$key] item=item}-->
107                    <tr style="<!--{if $item.error}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->">
108                        <td><a href="?" onclick="fnFormModeSubmit('form<!--{$key}-->', 'delete', 'cart_no', '<!--{$item.cart_no}-->'); return false;">削除</a>
109                        </td>
110                        <td class="phototd">
111                        <a
112                            <!--{if $item.productsClass.main_image|strlen >= 1}-->
113                                href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$item.productsClass.main_image|sfNoImageMainList|h}-->"
114                                class="expansion"
115                                target="_blank"
116                            <!--{/if}-->
117                        >
118                            <img src="<!--{$smarty.const.URL_PATH}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&amp;width=65&amp;height=65" alt="<!--{$item.productsClass.name|h}-->" /></a>
119                        </td>
120                        <td><!--{* 商品名 *}--><strong><!--{$item.productsClass.name|h}--></strong><br />
121                            <!--{if $item.productsClass.classcategory_name1 != ""}-->
122                                <!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--><br />
123                            <!--{/if}-->
124                            <!--{if $item.productsClass.classcategory_name2 != ""}-->
125                                <!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}-->
126                            <!--{/if}-->
127                        </td>
128                        <td class="pricetd">
129                            <!--{$item.productsClass.price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->円
130                        </td>
131                        <td id="quantity"><!--{$item.quantity}-->
132                            <ul id="quantity_level">
133                                <li><a href="?" onclick="fnFormModeSubmit('form<!--{$key}-->','up','cart_no','<!--{$item.cart_no}-->'); return false"><img src="<!--{$TPL_DIR}-->img/button/btn_plus.gif" width="16" height="16" alt="+" /></a></li>
134                                <li><a href="?" onclick="fnFormModeSubmit('form<!--{$key}-->','down','cart_no','<!--{$item.cart_no}-->'); return false"><img src="<!--{$TPL_DIR}-->img/button/btn_minus.gif" width="16" height="16" alt="-" /></a></li>
135                            </ul>
136                        </td>
137                        <td class="pricetd"><!--{$item.total_inctax|number_format}-->円</td>
138                     </tr>
139                 <!--{/foreach}-->
140                 <tr>
141                     <th colspan="5" class="resulttd">小計</th>
142                     <td class="pricetd"><!--{$tpl_total_inctax[$key]|number_format}-->円</td>
143                 </tr>
144                 <tr>
145                     <th colspan="5" class="resulttd">合計</th>
146                     <td class="pricetd"><em><!--{$arrData[$key].total-$arrData[$key].deliv_fee|number_format}-->円</em></td>
147                 </tr>
148                 <!--{if $smarty.const.USE_POINT !== false}-->
149                     <!--{if $arrData[$key].birth_point > 0}-->
150                         <tr>
151                             <th colspan="5" class="resulttd">お誕生月ポイント</th>
152                             <td class="pricetd"><!--{$arrData[$key].birth_point|number_format}-->pt</td>
153                         </tr>
154                     <!--{/if}-->
155                     <tr>
156                         <th colspan="5" class="resulttd">今回加算ポイント</th>
157                         <td class="pricetd"><!--{$arrData[$key].add_point|number_format}-->pt</td>
158                    </tr>
159                <!--{/if}-->
160            </table>
161            <div class="tblareabtn">
162                <!--{if strlen($tpl_error) == 0}-->
163                    <p>上記内容でよろしければ「購入手続きへ」ボタンをクリックしてください。</p>
164                <!--{/if}-->
165
166                <p>
167                    <!--{if $tpl_prev_url != ""}-->
168                        <a href="<!--{$tpl_prev_url}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/button/btn_back_on.gif','back');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/button/btn_back.gif','back');">
169                            <img src="<!--{$TPL_DIR}-->img/button/btn_back.gif" width="150" height="30" alt="買い物を続ける" name="back" /></a>&nbsp;&nbsp;
170                    <!--{/if}-->
171                    <!--{if strlen($tpl_error) == 0}-->
172                        <input type="hidden" name="cartKey" value="<!--{$key}-->" />
173                        <input type="image" onmouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/button/btn_buystep_on.gif',this)" onmouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/button/btn_buystep.gif',this)" src="<!--{$TPL_DIR}-->img/button/btn_buystep.gif" width="130" height="30" alt="購入手続きへ" name="confirm" />
174                    <!--{/if}-->
175                 </p>
176            </div>
177        </form>
178    <!--{/foreach}-->
179    <!--{else}-->
180        <p class="empty"><em>※ 現在カート内に商品はございません。</em></p>
181    <!--{/if}-->
182    </div>
183</div>
184<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.