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 |
|
---|
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="マイページ" /></li>
|
---|
26 | <li class="cart"><img src="<!--{$TPL_URLPATH}-->img/header/btn_header_cart.png" onclick="fnShowPopupCart(this)"width="30" height="20" alt="カート" /></li>
|
---|
27 | </ul>
|
---|
28 | </nav>
|
---|
29 | <!--!!空ボックス -->
|
---|
30 | <div class="popup_mypage">
|
---|
31 | <!--{if $tpl_login}-->
|
---|
32 | <span class="mini">ようこそ</span><br />
|
---|
33 | <a href="<!--{$smarty.const.HTTPS_URL|sfTrimURL}-->/mypage/login.php" data-transition="slideup"><!--{$tpl_name1|h}--> <!--{$tpl_name2|h}--></a>さん
|
---|
34 | <!--{if $smarty.const.USE_POINT !== false}-->
|
---|
35 | <p>所持ポイント<!--{$tpl_user_point|number_format|default:0}-->pt</p>
|
---|
36 | <!--{/if}-->
|
---|
37 | <!--{else}-->
|
---|
38 | ようこそ<br />
|
---|
39 | ゲストさん
|
---|
40 | <p><a href="<!--{$smarty.const.HTTPS_URL|sfTrimURL}-->/entry/kiyaku.php" rel="external">新規会員登録</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}-->">カートの中</a></h2>
|
---|
47 | <!--{foreach from=$arrCartList item=key}-->
|
---|
48 | <div class="normal_item">
|
---|
49 | <p><span class="product_type">[<!--{$key.productTypeName|h}-->]</span></p>
|
---|
50 | <p><span class="mini">商品数:</span><span class="quantity"><!--{$key.quantity|number_format}--></span>点<br />
|
---|
51 | <span class="mini">合計:</span><span class="money"><!--{$key.totalInctax|number_format}--></span>円(税込)</p>
|
---|
52 | <hr class="dashed" />
|
---|
53 | <!--{if $freeRule > 0 && $key.productTypeName|h == "通常商品"}-->
|
---|
54 | <!--{if $key.delivFree > 0}-->
|
---|
55 | <p class="attention free_money_area">あと<span class="free_money"><!--{$key.delivFree|number_format}--></span>円で送料無料!</p>
|
---|
56 | <!--{else}-->
|
---|
57 | <p class="attention free_money_area">現在、送料無料です!</p>
|
---|
58 | <!--{/if}-->
|
---|
59 | <!--{/if}-->
|
---|
60 | </div>
|
---|
61 | <!--{/foreach}-->
|
---|
62 | <!--{else}-->
|
---|
63 | ※ 現在カート内に商品はございません。
|
---|
64 | <!--{/if}-->
|
---|
65 | </div>
|
---|
66 |
|
---|
67 |
|
---|
68 | <script>
|
---|
69 | var stateMyPage = 0;
|
---|
70 | var stateCart = 0;
|
---|
71 | function fnShowPopupmyPage(el) {
|
---|
72 | $("div.popup_mypage").css("left", $(el).offset().left - $("div.popup_mypage").width() - $(el).width() + 5);
|
---|
73 | $("div.popup_mypage").toggle();
|
---|
74 | //表示状態の更新
|
---|
75 | if (stateMyPage == 0) {
|
---|
76 | stateMyPage = 1;
|
---|
77 | } else {
|
---|
78 | stateMyPage = 0;
|
---|
79 | }
|
---|
80 |
|
---|
81 | //カート情報の非表示化
|
---|
82 | if (stateCart == 1) {
|
---|
83 | $("div.popup_cart").hide();
|
---|
84 | stateCart = 0;
|
---|
85 | }
|
---|
86 | }
|
---|
87 |
|
---|
88 | function fnShowPopupCart(el) {
|
---|
89 | $("div.popup_cart").css("left", $(el).offset().left - $("div.popup_cart").width() - $(el).width() + 5);
|
---|
90 | $("div.popup_cart").toggle();
|
---|
91 | //表示状態の更新
|
---|
92 | if (stateCart == 0) {
|
---|
93 | stateCart = 1;
|
---|
94 | } else {
|
---|
95 | stateCart = 0;
|
---|
96 | }
|
---|
97 |
|
---|
98 | //カート情報の非表示化
|
---|
99 | if (stateMyPage == 1) {
|
---|
100 | $("div.popup_mypage").hide();
|
---|
101 | stateMyPage = 0;
|
---|
102 | }
|
---|
103 | }
|
---|
104 |
|
---|
105 | </script>
|
---|