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

Revision 20525, 11.4 KB checked in by Seasoft, 13 years ago (diff)

#627(ソース整形・ソースコメントの改善)

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