source: branches/version-2_5-dev/data/Smarty/templates/sphone/products/list.tpl @ 20727

Revision 20727, 8.4 KB checked in by nanasess, 13 years ago (diff)

#932 (商品をお気に入りに入れたかどうかの判別が動いていない。)

  • その他デザイン調整
  • 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">//<![CDATA[
23// 並び順を変更
24function fnChangeOrderby(orderby) {
25    fnSetVal('orderby', orderby);
26    fnSetVal('pageno', 1);
27    fnSubmit();
28}
29// 表示件数を変更
30function fnChangeDispNumber(dispNumber) {
31    fnSetVal('disp_number', dispNumber);
32    fnSetVal('pageno', 1);
33    fnSubmit();
34}
35//]]>
36</script>
37
38<!--▼CONTENTS-->
39<div id="undercolumn" class="product product_list">
40    <form name="form1" id="form1" method="get" action="?">
41        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
42        <input type="hidden" name="mode" value="<!--{$mode|h}-->" />
43        <!--{* ▼検索条件 *}-->
44        <input type="hidden" name="category_id" value="<!--{$arrSearchData.category_id|h}-->" />
45        <input type="hidden" name="maker_id" value="<!--{$arrSearchData.maker_id|h}-->" />
46        <input type="hidden" name="name" value="<!--{$arrSearchData.name|h}-->" />
47        <!--{* ▲検索条件 *}-->
48        <!--{* ▼ページナビ関連 *}-->
49        <input type="hidden" name="orderby" value="<!--{$orderby|h}-->" />
50        <input type="hidden" name="disp_number" value="<!--{$disp_number|h}-->" />
51        <input type="hidden" name="pageno" value="<!--{$tpl_pageno|h}-->" />
52        <!--{* ▲ページナビ関連 *}-->
53        <!--{* ▼注文関連 *}-->
54        <input type="hidden" name="product_id" value="" />
55        <input type="hidden" name="classcategory_id1" value="" />
56        <input type="hidden" name="classcategory_id2" value="" />
57        <input type="hidden" name="product_class_id" value="" />
58        <input type="hidden" name="quantity" value="" />
59        <!--{* ▲注文関連 *}-->
60        <input type="hidden" name="rnd" value="<!--{$tpl_rnd|h}-->" />
61    </form>
62
63    <!--★タイトル★-->
64    <h2 class="title"><!--{$tpl_subtitle|h}--></h2>
65
66    <!--▼検索条件-->
67    <!--{if $tpl_subtitle == "検索結果"}-->
68        <ul class="pagecondarea">
69            <li><strong>商品カテゴリ:</strong><!--{$arrSearch.category|h}--></li>
70        <!--{if $arrSearch.maker|strlen >= 1}--><li><strong>メーカー:</strong><!--{$arrSearch.maker|h}--></li><!--{/if}-->
71            <li><strong>商品名:</strong><!--{$arrSearch.name|h}--></li>
72        </ul>
73    <!--{/if}-->
74    <!--▲検索条件-->
75
76    <!--▼ページナビ(本文)-->
77    <!--{capture name=page_navi_body}-->
78        <div class="pagenumberarea">
79            <div class="change">
80                <!--{if $orderby != 'price'}-->
81                    <a href="javascript:fnChangeOrderby('price');">価格順</a>
82                <!--{else}-->
83                    <strong>価格順</strong>
84                <!--{/if}-->
85                <!--{if $orderby != "date"}-->
86                        <a href="javascript:fnChangeOrderby('date');">新着順</a>
87                <!--{else}-->
88                    <strong>新着順</strong>
89                <!--{/if}-->
90            </div>
91            <div class="navi"><!--{$tpl_strnavi}--></div>
92        </div>
93    <!--{/capture}-->
94    <!--▲ページナビ(本文)-->
95
96    <!--{foreach from=$arrProducts item=arrProduct name=arrProducts}-->
97
98        <!--{if $smarty.foreach.arrProducts.first}-->
99            <!--▼件数-->
100            <div>
101                <span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品
102
103                <select name="disp_number" onchange="javascript:fnChangeDispNumber(this.value);">
104                    <!--{foreach from=$arrPRODUCTLISTMAX item="dispnum" key="num"}-->
105                        <!--{if $num == $disp_number}-->
106                        <option value="<!--{$num}-->" selected="selected" ><!--{$dispnum}--></option>
107                        <!--{else}-->
108                        <option value="<!--{$num}-->" ><!--{$dispnum}--></option>
109                        <!--{/if}-->
110                    <!--{/foreach}-->
111                </select>
112            </div>
113            <!--▲件数-->
114
115            <!--▼ページナビ(上部)-->
116            <form name="page_navi_top" id="page_navi_top" action="?">
117                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
118                <!--{if $tpl_linemax > 0}--><!--{$smarty.capture.page_navi_body|smarty:nodefaults}--><!--{/if}-->
119            </form>
120            <!--▲ページナビ(上部)-->
121        <!--{/if}-->
122
123        <!--{assign var=id value=$arrProduct.product_id}-->
124        <!--{assign var=arrErr value=$arrProduct.arrErr}-->
125        <!--▼商品-->
126        <div class="listarea" class="clearfix">
127        <a name="product<!--{$id|h}-->" />
128            <div class="listphoto">
129                <!--★画像★-->
130                <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->" class="over"><!--商品写真--><img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH|sfTrimURL}-->/<!--{$arrProduct.main_list_image|sfNoImageMainList|h}-->" alt="<!--{$arrProduct.name|h}-->" class="picture" /></a>
131            </div>
132
133            <div class="listrightblock">
134                <!--▼商品ステータス-->
135                <!--{if count($productStatus[$id]) > 0}-->
136                    <ul class="status_icon">
137                            <li>
138                        <!--{foreach from=$productStatus[$id] item=status}-->
139                                <img src="<!--{$TPL_URLPATH}--><!--{$arrSTATUS_IMAGE[$status]}-->" width="60" height="17" alt="<!--{$arrSTATUS[$status]}-->"/>
140                        <!--{/foreach}-->
141                            </li>
142                    </ul>
143                <!--{/if}-->
144                <!--▲商品ステータス-->
145
146                <!--★商品名★-->
147                <h3>
148                    <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->" name="product<!--{$arrProduct.product_id}-->"><!--{$arrProduct.name|h}--></a>
149                </h3>
150
151                <!--★コメント★-->
152                <p>
153                    <span class="pricebox sale_price">
154                        販売価格(税込):</span>
155                        <span class="price">
156                            <span id="price02_default_<!--{$id}-->">
157                                <!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
158                                    <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
159                                <!--{else}-->
160                                    <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
161                                <!--{/if}-->
162                            </span><span id="price02_dynamic_<!--{$id}-->"></span>
163                            円</span>
164                   
165                </p>
166
167                <p class="listcomment"><!--{$arrProduct.main_list_comment|h|nl2br}--></p>
168
169            </div>
170        </div>
171        <!--▲商品-->
172
173        <!--{if $smarty.foreach.arrProducts.last}-->
174            <!--▼ページナビ(下部)-->
175            <form name="page_navi_bottom" id="page_navi_bottom" action="?">
176                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
177                <!--{if $tpl_linemax > 0}--><!--{$smarty.capture.page_navi_body|smarty:nodefaults}--><!--{/if}-->
178            </form>
179            <!--▲ページナビ(下部)-->
180        <!--{/if}-->
181
182    <!--{foreachelse}-->
183        <!--{include file="frontparts/search_zero.tpl"}-->
184    <!--{/foreach}-->
185
186</div>
187<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.