source: branches/version-2_12-multilang/data/Smarty/templates/sphone_en-US/mypage/favorite.tpl @ 22346

Revision 22346, 8.5 KB checked in by michael_nelson, 11 years ago (diff)

#1992 英文テキストを調整

Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2012 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23*}-->
24
25<section id="mypagecolumn">
26    <h2 class="title"><!--{$tpl_title|h}--></h2>
27    <!--{if $tpl_navi != ""}-->
28        <!--{include file=$tpl_navi}-->
29    <!--{else}-->
30        <!--{include file=`$smarty.const.TEMPLATE_REALDIR`mypage/navi.tpl}-->
31    <!--{/if}-->
32
33    <h3 class="title_mypage"><!--{$tpl_subtitle|h}--></h3>
34    <!--{if $tpl_linemax > 0}-->
35
36        <!--★インフォメーション★-->
37        <div class="information">
38            <p>There are <span class="attention"><span id="productscount"><!--{$tpl_linemax}--></span> items</span> in your favorites.</p>
39        </div>
40
41        <!--▼フォームここから -->
42        <div class="form_area">
43
44            <form name="form1" id="form1" method="post" action="<!--{$smarty.const.ROOT_URLPATH}-->mypage/favorite.php">
45                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
46                <input type="hidden" name="mode" value="cart" />
47                <input type="hidden" name="product_id" value="" />
48
49
50                <!--▼フォームボックスここから -->
51                <div class="formBox">
52                    <!--{section name=cnt loop=$arrFavorite max=$dispNumber}-->
53                        <!--{assign var=product_id value="`$arrFavorite[cnt].product_id`"}-->
54
55                        <!--▼商品 -->
56                        <div class="favoriteBox">
57                            <a rel="external" href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$product_id|u}-->"><img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$arrFavorite[cnt].main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="" width="80" height="80" class="photoL productImg" /></a>
58                            <div class="favoriteContents clearfix">
59                                <h4><a rel="external" href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$product_id|u}-->" class="productName"><!--{$arrFavorite[cnt].name}--></a></h4>
60                                <p><span class="mini productPrice"><!--{$smarty.const.SALE_PRICE_TITLE}-->:&#036; <!--{if $arrFavorite[cnt].price02_min_inctax == $arrFavorite[cnt].price02_max_inctax}-->
61                                    <!--{$arrFavorite[cnt].price02_min_inctax|number_format}-->
62                                    <!--{else}-->
63                                    <!--{$arrFavorite[cnt].price02_min_inctax|number_format}--> - <!--{$arrFavorite[cnt].price02_max_inctax|number_format}-->
64                                    <!--{/if}--></span></p>
65                                <p class="btn_delete"><img src="<!--{$TPL_URLPATH}-->img/button/btn_delete.png" width="21" height="20" alt="Delete" onclick="javascript:fnModeSubmit('delete_favorite','product_id','<!--{$product_id|h}-->');" class="pointer" /></p>
66                            </div>
67                        </div><!--▲商品 -->
68                    <!--{/section}-->
69                </div><!-- /.formBox -->
70
71                <!--{if $stock_find_count > 0 && $customer_rank < 51}-->
72                    <div class="product-btn">
73                        <a rel="external" href="javascript:void(document.form1.submit())" class="btn-cart">Place in cart</a>
74                    </div>
75                <!--{/if}-->
76            </form>
77        </div><!-- /.form_area -->
78
79        <div class="btn_area">
80            <!--{if $tpl_linemax > $dispNumber}-->
81                <p><a rel="external" href="javascript: void(0);" class="btn_more" id="btn_more_product" onclick="getProducts(5); return false;">View more (+<!--{$dispNumber}--> items)</a></p>
82            <!--{/if}-->
83        </div>
84
85    <!--{else}-->
86        <div class="form_area">
87            <div class="information">
88                <p>There are no favorites.</p>
89            </div>
90        </div><!-- /.form_area -->
91    <!--{/if}-->
92
93</section>
94
95<!--▼検索バー -->
96<section id="search_area">
97    <form method="get" action="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php">
98        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
99        <input type="hidden" name="mode" value="search" />
100        <input type="search" name="name" id="search" value="" placeholder="Enter keywords" class="searchbox" >
101    </form>
102</section>
103<!--▲検索バー -->
104
105<script>
106    var pageNo = 2;
107    var url = "<!--{$smarty.const.P_DETAIL_URLPATH}-->";
108    var imagePath = "<!--{$smarty.const.IMAGE_SAVE_URLPATH|sfTrimURL}-->/";
109    var statusImagePath = "<!--{$TPL_URLPATH}-->";
110
111    function getProducts(limit) {
112        $.mobile.showPageLoadingMsg();
113        var i = limit;
114        //送信データを準備
115        var postData = {};
116        $('#form1').find(':input').each(function(){
117            postData[$(this).attr('name')] = $(this).val();
118        });
119        postData["mode"] = "getList";
120        postData["pageno"] = pageNo;
121        postData["disp_number"] = i;
122
123        $.ajax({
124            type: "POST",
125            url: "<!--{$smarty.const.ROOT_URLPATH}-->mypage/favorite.php",
126            data: postData,
127            cache: false,
128            dataType: "json",
129            error: function(XMLHttpRequest, textStatus, errorThrown){
130                alert(textStatus);
131                $.mobile.hidePageLoadingMsg();
132            },
133            success: function(result){
134                var productStatus = result.productStatus;
135                for (var j = 0; j < i; j++) {
136                    if (result[j] != null) {
137                        var product = result[j];
138                        var productHtml = "";
139                        var maxCnt = $(".favoriteBox").length - 1;
140                        var productEl = $(".favoriteBox").get(maxCnt);
141                        productEl = $(productEl).clone(true).insertAfter(productEl);
142                        maxCnt++;
143
144                        //商品写真をセット
145                        $($(".favoriteBox img.productImg").get(maxCnt)).attr({
146                            src: imagePath + product.main_list_image,
147                            alt: product.name
148                        });
149
150                        //商品名をセット
151                        $($(".favoriteBox a.productName").get(maxCnt)).text(product.name);
152                        $($(".favoriteBox a.productName").get(maxCnt)).attr("href", url + product.product_id);
153
154                        //販売価格をセット
155                        var price = $($(".favoriteBox span.productPrice").get(maxCnt));
156                        //販売価格をクリア
157                        price.empty();
158                        var priceVale = "";
159                        //販売価格が範囲か判定
160                        if (product.price02_min == product.price02_max) {
161                            priceVale = "<!--{$smarty.const.SALE_PRICE_TITLE}-->:&#036; " + product.price02_min_tax_format;
162                        } else {
163                            priceVale = "<!--{$smarty.const.SALE_PRICE_TITLE}-->:&#036; " + product.price02_min_tax_format + ' - ' + product.price02_max_tax_format;
164                        }
165                        price.append(priceVale);
166
167                        //削除ボタンをセット
168                        $($(".favoriteBox p.btn_delete a").get(maxCnt)).attr("href", "javascript:fnModeSubmit('delete_favorite','product_id','" + product.product_id + "');");
169
170                    }
171                }
172                pageNo++;
173
174                //すべての商品を表示したか判定
175                if (parseInt($("#productscount").text()) <= $(".favoriteBox").length) {
176                    $("#btn_more_product").hide();
177                }
178                $.mobile.hidePageLoadingMsg();
179            }
180        });
181    }
182</script>
Note: See TracBrowser for help on using the repository browser.