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

Revision 20407, 8.6 KB checked in by kotani, 13 years ago (diff)

#812 (トランザクションIDの自動生成/自動検証), #1053 (transactionidが埋め込まれる前にクリックされるとエラー)

  • transactionid用hiddenタグをJavaScriptで生成しないように変更
  • 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="product_type" value="" />
59        <input type="hidden" name="quantity" value="" />
60        <!--{* ▲注文関連 *}-->
61        <input type="hidden" name="rnd" value="<!--{$tpl_rnd|h}-->" />
62    </form>
63   
64    <!--★タイトル★-->
65    <h2 class="title"><!--{$tpl_subtitle|h}--></h2>
66   
67    <!--▼検索条件-->
68    <!--{if $tpl_subtitle == "検索結果"}-->
69        <ul class="pagecondarea">
70            <li><strong>商品カテゴリ:</strong><!--{$arrSearch.category|h}--></li>
71        <!--{if $arrSearch.maker|strlen >= 1}--><li><strong>メーカー:</strong><!--{$arrSearch.maker|h}--></li><!--{/if}-->
72            <li><strong>商品名:</strong><!--{$arrSearch.name|h}--></li>
73        </ul>
74    <!--{/if}-->
75    <!--▲検索条件-->
76
77    <!--▼ページナビ(本文)-->
78    <!--{capture name=page_navi_body}-->
79        <div class="pagenumberarea">
80            <div class="change">
81                <!--{if $orderby != 'price'}-->
82                    <a href="javascript:fnChangeOrderby('price');">価格順</a>
83                <!--{else}-->
84                    <strong>価格順</strong>
85                <!--{/if}-->
86                <!--{if $orderby != "date"}-->
87                        <a href="javascript:fnChangeOrderby('date');">新着順</a>
88                <!--{else}-->
89                    <strong>新着順</strong>
90                <!--{/if}-->
91            </div>
92            <div class="navi"><!--{$tpl_strnavi}--></div>
93        </div>
94    <!--{/capture}-->
95    <!--▲ページナビ(本文)-->
96
97    <!--{foreach from=$arrProducts item=arrProduct name=arrProducts}-->
98
99        <!--{if $smarty.foreach.arrProducts.first}-->
100            <!--▼件数-->
101            <div>
102                <span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品
103               
104                <select name="disp_number" onchange="javascript:fnChangeDispNumber(this.value);">
105                    <!--{foreach from=$arrPRODUCTLISTMAX item="dispnum" key="num"}-->
106                        <!--{if $num == $disp_number}-->
107                        <option value="<!--{$num}-->" selected="selected" ><!--{$dispnum}--></option>
108                        <!--{else}-->
109                        <option value="<!--{$num}-->" ><!--{$dispnum}--></option>
110                        <!--{/if}-->
111                    <!--{/foreach}-->
112                </select>
113            </div>
114            <!--▲件数-->
115           
116            <!--▼ページナビ(上部)-->
117            <form name="page_navi_top" id="page_navi_top" action="?">
118                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
119                <!--{if $tpl_linemax > 0}--><!--{$smarty.capture.page_navi_body|smarty:nodefaults}--><!--{/if}-->
120            </form>
121            <!--▲ページナビ(上部)-->
122        <!--{/if}-->
123
124        <!--{assign var=id value=$arrProduct.product_id}-->
125        <!--{assign var=arrErr value=$arrProduct.arrErr}-->
126        <!--▼商品-->
127        <div class="listarea">
128        <a name="product<!--{$id|h}-->" />
129            <div class="listphoto">
130                <!--★画像★-->
131                <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>
132            </div>
133           
134            <div class="listrightblock">
135                <!--▼商品ステータス-->
136                <!--{if count($productStatus[$id]) > 0}-->
137                    <ul class="status_icon">
138                        <!--{foreach from=$productStatus[$id] item=status}-->
139                            <li>
140                                <img src="<!--{$TPL_URLPATH}--><!--{$arrSTATUS_IMAGE[$status]}-->" width="65" height="17" alt="<!--{$arrSTATUS[$status]}-->"/>
141                            </li>
142                        <!--{/foreach}-->
143                    </ul>
144                <!--{/if}-->
145                <!--▲商品ステータス-->
146               
147                <!--★商品名★-->
148                <h3>
149                    <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->" name="product<!--{$arrProduct.product_id}-->"><!--{$arrProduct.name|h}--></a>
150                </h3>
151               
152                <!--★コメント★-->
153                <p class="listcomment"><!--{$arrProduct.main_list_comment|h|nl2br}--></p>
154               
155                <p>
156                    <span class="pricebox sale_price">
157                        <span class="mini">税込</span>:
158                        <span class="price">
159                            <span id="price02_default_<!--{$id}-->">
160                                <!--{if $arrProduct.price02_min == $arrProduct.price02_max}-->
161                                    <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
162                                <!--{else}-->
163                                    <!--{$arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProduct.price02_max|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
164                                <!--{/if}-->
165                            </span><span id="price02_dynamic_<!--{$id}-->"></span>
166                            円</span>
167                    </span>
168                </p>
169
170            </div>
171        </div>
172        <!--▲商品-->
173
174        <!--{if $smarty.foreach.arrProducts.last}-->
175            <!--▼ページナビ(下部)-->
176            <form name="page_navi_bottom" id="page_navi_bottom" action="?">
177                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
178                <!--{if $tpl_linemax > 0}--><!--{$smarty.capture.page_navi_body|smarty:nodefaults}--><!--{/if}-->
179            </form>
180            <!--▲ページナビ(下部)-->
181        <!--{/if}-->
182
183    <!--{foreachelse}-->
184        <!--{include file="frontparts/search_zero.tpl"}-->
185    <!--{/foreach}-->
186
187</div>
188<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.