source: branches/version-2_11-dev/data/Smarty/templates/default/products/list.tpl @ 21341

Revision 21341, 14.3 KB checked in by Seasoft, 12 years ago (diff)

#1526 (typo修正・ソース整形・ソースコメントの改善)

  • 不要な属性削除
  • 改行追加
  • 冗長なコメント削除
  • 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-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<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/products.js"></script>
23<script type="text/javascript">//<![CDATA[
24function fnSetClassCategories(form, classcat_id2_selected) {
25    var $form = $(form);
26    var product_id = $form.find('input[name=product_id]').val();
27    var $sele1 = $form.find('select[name=classcategory_id1]');
28    var $sele2 = $form.find('select[name=classcategory_id2]');
29    setClassCategories($form, product_id, $sele1, $sele2, classcat_id2_selected);
30}
31// 並び順を変更
32function fnChangeOrderby(orderby) {
33    fnSetVal('orderby', orderby);
34    fnSetVal('pageno', 1);
35    fnSubmit();
36}
37// 表示件数を変更
38function fnChangeDispNumber(dispNumber) {
39    fnSetVal('disp_number', dispNumber);
40    fnSetVal('pageno', 1);
41    fnSubmit();
42}
43// カゴに入れる
44function fnInCart(productForm) {
45    var product_id = productForm["product_id"].value;
46    fnChangeAction("?#product" + product_id);
47    if (productForm["classcategory_id1"]) {
48        fnSetVal("classcategory_id1", productForm["classcategory_id1"].value);
49    }
50    if (productForm["classcategory_id2"]) {
51        fnSetVal("classcategory_id2", productForm["classcategory_id2"].value);
52    }
53    fnSetVal("quantity", productForm["quantity"].value);
54    fnSetVal("product_id", productForm["product_id"].value);
55    fnSetVal("product_class_id", productForm["product_class_id"].value);
56    fnSubmit();
57}
58//]]>
59</script>
60
61<!--▼CONTENTS-->
62<div id="undercolumn">
63    <form name="form1" id="form1" method="get" action="?">
64        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
65        <input type="hidden" name="mode" value="<!--{$mode|h}-->" />
66        <!--{* ▼検索条件 *}-->
67        <input type="hidden" name="category_id" value="<!--{$arrSearchData.category_id|h}-->" />
68        <input type="hidden" name="maker_id" value="<!--{$arrSearchData.maker_id|h}-->" />
69        <input type="hidden" name="name" value="<!--{$arrSearchData.name|h}-->" />
70        <!--{* ▲検索条件 *}-->
71        <!--{* ▼ページナビ関連 *}-->
72        <input type="hidden" name="orderby" value="<!--{$orderby|h}-->" />
73        <input type="hidden" name="disp_number" value="<!--{$disp_number|h}-->" />
74        <input type="hidden" name="pageno" value="<!--{$tpl_pageno|h}-->" />
75        <!--{* ▲ページナビ関連 *}-->
76        <!--{* ▼注文関連 *}-->
77        <input type="hidden" name="product_id" value="" />
78        <input type="hidden" name="classcategory_id1" value="" />
79        <input type="hidden" name="classcategory_id2" value="" />
80        <input type="hidden" name="product_class_id" value="" />
81        <input type="hidden" name="quantity" value="" />
82        <!--{* ▲注文関連 *}-->
83        <input type="hidden" name="rnd" value="<!--{$tpl_rnd|h}-->" />
84    </form>
85
86    <!--★タイトル★-->
87    <h2 class="title"><!--{$tpl_subtitle|h}--></h2>
88
89    <!--▼検索条件-->
90    <!--{if $tpl_subtitle == "検索結果"}-->
91        <ul class="pagecond_area">
92            <li><strong>商品カテゴリ:</strong><!--{$arrSearch.category|h}--></li>
93        <!--{if $arrSearch.maker|strlen >= 1}--><li><strong>メーカー:</strong><!--{$arrSearch.maker|h}--></li><!--{/if}-->
94            <li><strong>商品名:</strong><!--{$arrSearch.name|h}--></li>
95        </ul>
96    <!--{/if}-->
97    <!--▲検索条件-->
98
99    <!--▼ページナビ(本文)-->
100    <!--{capture name=page_navi_body}-->
101        <div class="pagenumber_area clearfix">
102            <div class="change">
103                <!--{if $orderby != 'price'}-->
104                    <a href="javascript:fnChangeOrderby('price');">価格順</a>
105                <!--{else}-->
106                    <strong>価格順</strong>
107                <!--{/if}-->&nbsp;
108                <!--{if $orderby != "date"}-->
109                        <a href="javascript:fnChangeOrderby('date');">新着順</a>
110                <!--{else}-->
111                    <strong>新着順</strong>
112                <!--{/if}-->
113                表示件数
114                <select name="disp_number" onchange="javascript:fnChangeDispNumber(this.value);">
115                    <!--{foreach from=$arrPRODUCTLISTMAX item="dispnum" key="num"}-->
116                        <!--{if $num == $disp_number}-->
117                            <option value="<!--{$num}-->" selected="selected" ><!--{$dispnum}--></option>
118                        <!--{else}-->
119                            <option value="<!--{$num}-->" ><!--{$dispnum}--></option>
120                        <!--{/if}-->
121                    <!--{/foreach}-->
122                </select>
123            </div>
124            <div class="navi"><!--{$tpl_strnavi}--></div>
125        </div>
126    <!--{/capture}-->
127    <!--▲ページナビ(本文)-->
128
129    <!--{foreach from=$arrProducts item=arrProduct name=arrProducts}-->
130
131        <!--{if $smarty.foreach.arrProducts.first}-->
132            <!--▼件数-->
133            <div>
134                <span class="attention"><!--{$tpl_linemax}-->件</span>の商品がございます。
135            </div>
136            <!--▲件数-->
137
138            <!--▼ページナビ(上部)-->
139            <form name="page_navi_top" id="page_navi_top" action="?">
140                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
141                <!--{if $tpl_linemax > 0}--><!--{$smarty.capture.page_navi_body|smarty:nodefaults}--><!--{/if}-->
142            </form>
143            <!--▲ページナビ(上部)-->
144        <!--{/if}-->
145
146        <!--{assign var=id value=$arrProduct.product_id}-->
147        <!--{assign var=arrErr value=$arrProduct.arrErr}-->
148        <!--▼商品-->
149        <form name="product_form<!--{$id|h}-->" action="?" onsubmit="return false;">
150        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
151        <div class="list_area clearfix">
152            <a name="product<!--{$id|h}-->"></a>
153            <div class="listphoto">
154                <!--★画像★-->
155                <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->">
156                    <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_list_image|sfNoImageMainList|h}-->" alt="<!--{$arrProduct.name|h}-->" class="picture" /></a>
157            </div>
158
159            <div class="listrightbloc">
160                <!--▼商品ステータス-->
161                <!--{if count($productStatus[$id]) > 0}-->
162                    <ul class="status_icon clearfix">
163                        <!--{foreach from=$productStatus[$id] item=status}-->
164                            <li>
165                                <img src="<!--{$TPL_URLPATH}--><!--{$arrSTATUS_IMAGE[$status]}-->" width="60" height="17" alt="<!--{$arrSTATUS[$status]}-->"/>
166                            </li>
167                        <!--{/foreach}-->
168                    </ul>
169                <!--{/if}-->
170                <!--▲商品ステータス-->
171
172                <!--★商品名★-->
173                <h3>
174                    <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"><!--{$arrProduct.name|h}--></a>
175                </h3>
176                <!--★価格★-->
177                <div class="pricebox sale_price">
178                    <!--{$smarty.const.SALE_PRICE_TITLE}-->(税込):
179                    <span class="price">
180                        <span id="price02_default_<!--{$id}-->"><!--{strip}-->
181                            <!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
182                                <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
183                            <!--{else}-->
184                                <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
185                            <!--{/if}-->
186                        </span><span id="price02_dynamic_<!--{$id}-->"></span><!--{/strip}-->
187                        円</span>
188                </div>
189
190                <!--★コメント★-->
191                <div class="listcomment"><!--{$arrProduct.main_list_comment|h|nl2br}--></div>
192
193                <!--★商品詳細を見る★-->
194                <div class="detail_btn">
195                    <!--{assign var=name value="detail`$id`"}-->
196                    <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_detail_on.jpg','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_detail.jpg','<!--{$name}-->');">
197                    <img src="<!--{$TPL_URLPATH}-->img/button/btn_detail.jpg" alt="商品詳細を見る" name="<!--{$name}-->" id="<!--{$name}-->" /></a>
198                </div>
199
200                <!--▼買い物かご-->
201                <input type="hidden" name="product_id" value="<!--{$id|h}-->" />
202                <input type="hidden" name="product_class_id" id="product_class_id<!--{$id|h}-->" value="<!--{$tpl_product_class_id[$id]}-->" />
203
204                <div class="cart_area clearfix">
205                    <!--{if $tpl_stock_find[$id]}-->
206                        <!--{if $tpl_classcat_find1[$id]}-->
207                            <div class="classlist">
208                                <dl class="size01 clearfix">
209                                        <!--▼規格1-->
210                                        <dt><!--{$tpl_class_name1[$id]|h}-->:</dt>
211                                        <dd>
212                                            <select name="classcategory_id1" style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->">
213                                                <!--{html_options options=$arrClassCat1[$id] selected=$arrProduct.classcategory_id1}-->
214                                            </select>
215                                            <!--{if $arrErr.classcategory_id1 != ""}-->
216                                                <p class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</p>
217                                            <!--{/if}-->
218                                        </dd>
219                                        <!--▲規格1-->
220                                </dl>
221                                <!--{if $tpl_classcat_find2[$id]}-->
222                                    <dl class="size02 clearfix">
223                                        <!--▼規格2-->
224                                        <dt><!--{$tpl_class_name2[$id]|h}-->:</dt>
225                                        <dd>
226                                            <select name="classcategory_id2" style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->">
227                                            </select>
228                                            <!--{if $arrErr.classcategory_id2 != ""}-->
229                                                <p class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</p>
230                                            <!--{/if}-->
231                                        </dd>
232                                        <!--▲規格2-->
233                                    </dl>
234                                <!--{/if}-->
235                            </div>
236                        <!--{/if}-->
237                        <div class="cartin clearfix">
238                            <div class="quantity">
239                                数量:<input type="text" name="quantity" class="box" value="<!--{$arrProduct.quantity|default:1|h}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" />
240                                <!--{if $arrErr.quantity != ""}-->
241                                    <br /><span class="attention"><!--{$arrErr.quantity}--></span>
242                                <!--{/if}-->
243                            </div>
244                            <div class="cartin_btn">
245                                <!--★カゴに入れる★-->
246                                <div id="cartbtn_default_<!--{$id}-->">
247                                    <input type="image" id="cart<!--{$id}-->" src="<!--{$TPL_URLPATH}-->img/button/btn_cartin.jpg" alt="カゴに入れる" onclick="fnInCart(this.form); return false;" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_cartin_on.jpg', this);" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_cartin.jpg', this);" />
248                                </div>
249                                <div class="attention" id="cartbtn_dynamic_<!--{$id}-->"></div>
250                            </div>
251                        </div>
252                    <!--{else}-->
253                        <div class="cartbtn attention">申し訳ございませんが、只今品切れ中です。</div>
254                    <!--{/if}-->
255                </div>
256                <!--▲買い物かご-->
257            </div>
258        </div>
259        </form>
260        <!--▲商品-->
261
262        <!--{if $smarty.foreach.arrProducts.last}-->
263            <!--▼ページナビ(下部)-->
264            <form name="page_navi_bottom" id="page_navi_bottom" action="?">
265                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
266                <!--{if $tpl_linemax > 0}--><!--{$smarty.capture.page_navi_body|smarty:nodefaults}--><!--{/if}-->
267            </form>
268            <!--▲ページナビ(下部)-->
269        <!--{/if}-->
270
271    <!--{foreachelse}-->
272        <!--{include file="frontparts/search_zero.tpl"}-->
273    <!--{/foreach}-->
274
275</div>
276<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.