source: branches/version-2_12-multilang/data/Smarty/templates/sphone_en-US/frontparts/bloc/navi_header.tpl @ 22345

Revision 22345, 4.2 KB checked in by m_uehara, 11 years ago (diff)

#2056 「pt」を「pts」に変更

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<nav class="header_navi">
24    <ul>
25        <li class="mypage"><img src="<!--{$TPL_URLPATH}-->img/header/btn_header_mypage.png" onclick="fnShowPopupmyPage(this)" width="30" height="20" alt="My page" /></li>
26        <li class="cart"><img src="<!--{$TPL_URLPATH}-->img/header/btn_header_cart.png" onclick="fnShowPopupCart(this)" width="30" height="20" alt="Cart" /></li>
27    </ul>
28</nav>
29<!--!!空ボックス -->
30<div class="popup_mypage">
31    <!--{if $tpl_login}-->
32        <p><span class="mini">Welcome</span><br />
33        <a href="<!--{$smarty.const.HTTPS_URL|sfTrimURL}-->/mypage/login.php" rel="external"><!--{$tpl_name1|h}--> <!--{$tpl_name2|h}--></a></p>
34        <!--{if $smarty.const.USE_POINT !== false}-->
35            <p>Points in possession <!--{$tpl_user_point|number_format|default:0}-->pts</p>
36        <!--{/if}-->
37    <!--{else}-->
38        <p>Welcome<br />
39           Guest</p>
40        <p><a href="<!--{$smarty.const.HTTPS_URL|sfTrimURL}-->/mypage/login.php" rel="external">Login</a></p>
41    <!--{/if}-->
42</div>
43
44<div class="popup_cart">
45    <!--{if count($arrCartList) > 0}-->
46        <h2><a rel="external" href="<!--{$smarty.const.CART_URLPATH|h}-->">Inside of cart</a></h2>
47        <!--{foreach from=$arrCartList item=key}-->
48            <div class="product_type">
49                <!--{if count($arrCartList) > 1}-->
50                    <p><span class="product_type">[<!--{$key.productTypeName|h}-->]</span></p>
51                <!--{/if}-->
52                <p><span class="mini">Product quantity:</span> <span class="quantity"><!--{$key.quantity|number_format}--></span> items<br />
53                    <span class="mini">Total:</span><span class="money">&#036; <!--{$key.totalInctax|number_format}--></span>(including tax)</p>
54                <hr class="dashed" />
55                <!--{if $freeRule > 0 && $key.productTypeId|h != $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
56                    <!--{if $key.delivFree > 0}-->
57                        <p class="attention free_money_area">Shipping is free if you spend another &#036; <span class="free_money"><!--{$key.delivFree|number_format}--></span></p>
58                    <!--{else}-->
59                        <p class="attention free_money_area">Currently, shipping is free</p>
60                    <!--{/if}-->
61                <!--{/if}-->
62            </div>
63        <!--{/foreach}-->
64    <!--{else}-->
65        * There are currently no products in your cart.
66    <!--{/if}-->
67</div>
68
69
70<script>
71    var stateMyPage = 0;
72    var stateCart = 0;
73    function fnShowPopupmyPage(el) {
74        $("div.popup_mypage").css("left", $(el).offset().left - $("div.popup_mypage").width() + 15);
75        $("div.popup_mypage").toggle();
76        //表示状態の更新
77        if (stateMyPage == 0) {
78            stateMyPage = 1;
79        } else {
80            stateMyPage = 0;
81        }
82
83        //カート情報の非表示化
84        if (stateCart == 1) {
85            $("div.popup_cart").hide();
86            stateCart = 0;
87        }
88    }
89
90    function fnShowPopupCart(el) {
91        $("div.popup_cart").css("left", $(el).offset().left - $("div.popup_cart").width() + 15);
92        $("div.popup_cart").toggle();
93        //表示状態の更新
94        if (stateCart == 0) {
95            stateCart = 1;
96        } else {
97            stateCart = 0;
98        }
99
100        //カート情報の非表示化
101        if (stateMyPage == 1) {
102            $("div.popup_mypage").hide();
103            stateMyPage = 0;
104        }
105    }
106</script>
Note: See TracBrowser for help on using the repository browser.