source: branches/comu-ver2/data/Smarty/templates/default/list.tpl @ 18189

Revision 18189, 13.5 KB checked in by miningbrownie, 15 years ago (diff)

ブロックを配置出来る場所を増やしてみた。

  • Property svn:eol-style set to LF
  • Property svn:mime-type set to text/html; charset=UTF-8
Line 
1<!--{*
2 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2007 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 lnSetSelect(name1, name2, id, val) {
25    sele1 = document.form1[name1];
26    sele2 = document.form1[name2];
27    lists = eval('lists' + id);
28    vals = eval('vals' + id);
29
30    if(sele1 && sele2) {
31        index = sele1.selectedIndex;
32
33        // セレクトボックスのクリア
34        count = sele2.options.length;
35        for(i = count; i >= 0; i--) {
36            sele2.options[i] = null;
37        }
38
39        // セレクトボックスに値を割り当てる
40        len = lists[index].length;
41        for(i = 0; i < len; i++) {
42            sele2.options[i] = new Option(lists[index][i], vals[index][i]);
43            if(val != "" && vals[index][i] == val) {
44                sele2.options[i].selected = true;
45            }
46        }
47    }
48}
49//]]>
50</script>
51
52<!--▼CONTENTS-->
53<div id="undercolumn" class="product product_list">
54    <form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->">
55        <input type="hidden" name="pageno" value="<!--{$tpl_pageno|escape}-->" />
56        <input type="hidden" name="mode" value="" />
57        <input type="hidden" name="orderby" value="<!--{$orderby|escape}-->" />
58        <input type="hidden" name="product_id" value="" />
59        <input type="hidden" name="disp_number" value="" />
60       
61        <!--★タイトル★-->
62        <h2 class="title"><!--{$tpl_subtitle|escape}--></h2>
63       
64        <!--▼検索条件-->
65        <!--{if $tpl_subtitle == "検索結果"}-->
66            <ul class="pagecondarea">
67                <li><strong>商品カテゴリ:</strong><!--{$arrSearch.category|escape}--></li>
68                <!--{if $arrSearch.maker}--><li><strong>メーカー:</strong><!--{$arrSearch.maker|escape}--></li><!--{/if}-->
69                <li><strong>商品名:</strong><!--{$arrSearch.name|escape}--></li>
70            </ul>
71        <!--{/if}-->
72        <!--▲検索条件-->
73
74        <!--▼件数-->
75        <!--{if $tpl_linemax > 0}-->
76            <ul class="pagenumberarea">
77                <li class="left"><span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品がございます。</li>
78                <li class="center"><!--{$tpl_strnavi}--></li>
79                <li class="right"><!--{if $orderby != 'price'}-->
80                    <a href="javascript:fnModeSubmit('', 'orderby', 'price')">価格順</a>
81                <!--{else}-->
82                    <strong>価格順</strong>
83                <!--{/if}-->&nbsp;
84                <!--{if $orderby != "date"}-->
85                    <a href="javascript:fnModeSubmit('', 'orderby', 'date')">新着順</a>
86                <!--{else}-->
87                    <strong>新着順</strong>
88                <!--{/if}-->
89                  表示件数
90                    <select name="disp_number_top" onchange="javascript:fnModeSubmit('','disp_number',this.value);">
91                <!--{foreach from=$arrPRODUCTLISTMAX item="dispnum" key="num"}-->
92                    <!--{if $num == $disp_number}-->
93                    <option value="<!--{$num}-->" selected="selected" ><!--{$dispnum}--></option>
94                    <!--{else}-->
95                    <option value="<!--{$num}-->" ><!--{$dispnum}--></option>
96                    <!--{/if}-->
97                <!--{/foreach}-->
98                    </select>
99                </li>
100            </ul>
101           
102        <!--{else}-->
103            <!--{include file="frontparts/search_zero.tpl"}-->
104        <!--{/if}-->
105        <!--▲件数-->
106
107        <!--{section name=cnt loop=$arrProducts}-->
108            <!--{assign var=id value=$arrProducts[cnt].product_id}-->
109            <!--▼商品-->
110            <div class="listarea">
111                <div class="listphoto">
112                    <!--★画像★-->
113                    <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->" class="over"><!--商品写真--><img src="<!--{$smarty.const.IMAGE_SAVE_URL|sfTrimURL}-->/<!--{$arrProducts[cnt].main_list_image|sfNoImageMainList|escape}-->" alt="<!--{$arrProducts[cnt].name|escape}-->" class="picture" /></a>
114                </div>
115               
116                <div class="listrightblock">
117                    <!--アイコン-->
118                    <!--商品ステータス-->
119                    <!--{if count($arrProducts[cnt].product_flag) > 0}-->
120                        <ul class="status_icon">
121                            <!--{section name=flg loop=$arrProducts[cnt].product_flag|count_characters}-->
122                                <!--{if $arrProducts[cnt].product_flag[flg] == "1"}-->
123                                    <!--{assign var=key value="`$smarty.section.flg.iteration`"}-->
124                                    <li><img src="<!--{$TPL_DIR}--><!--{$arrSTATUS_IMAGE[$key]}-->" width="65" height="17" alt="<!--{$arrSTATUS[$key]}-->"/></li>
125                                    <!--{assign var=sts_cnt value=$sts_cnt+1}-->
126                                <!--{/if}-->
127                            <!--{/section}-->
128                        </ul>
129                    <!--{/if}-->
130                    <!--商品ステータス-->
131                    <!--アイコン-->
132                   
133                    <!--★商品名★-->
134                    <h3>
135                        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->"><!--{$arrProducts[cnt].name|escape}--></a>
136                    </h3>
137                   
138                    <!--★コメント★-->
139                    <p class="listcomment"><!--{$arrProducts[cnt].main_list_comment|escape|nl2br}--></p>
140                   
141                    <p>
142                        <span class="pricebox sale_price">
143                            <!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:
144                            <span class="price">
145                            <!--{if $arrProducts[cnt].price02_min == $arrProducts[cnt].price02_max}-->
146                                <!--{$arrProducts[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
147                            <!--{else}-->
148                                <!--{$arrProducts[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->~<!--{$arrProducts[cnt].price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
149                            <!--{/if}-->円</span>
150                        </span>
151                       
152                        <!--★詳細ボタン★-->
153                        <span class="btnbox">
154                            <!--{assign var=name value="detail`$smarty.section.cnt.iteration`"}-->
155                            <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_detail_on.gif','<!--{$name}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_detail.gif','<!--{$name}-->');">
156                                <img src="<!--{$TPL_DIR}-->img/products/b_detail.gif" width="115" height="25" alt="詳しくはこちら" name="<!--{$name}-->" id="<!--{$name}-->" />
157                            </a>
158                        </span>
159                    </p>
160
161                    <!--{if $arrProducts[cnt].stock_max == 0 && $arrProducts[cnt].stock_unlimited_max != 1}-->
162                        <p class="soldout"><em>申し訳ございませんが、只今品切れ中です。</em></p>
163                    <!--{else}-->
164                        <!--▼買い物かご-->
165                        <div class="in_cart">
166                            <!--{assign var=class1 value=classcategory_id`$id`_1}-->
167                            <!--{assign var=class2 value=classcategory_id`$id`_2}-->
168                            <dl>
169                                <!--{if $tpl_classcat_find1[$id]}-->
170                                    <dt><!--{$tpl_class_name1[$id]|escape}-->:</dt>
171                                    <dd>
172                                        <select name="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="lnSetSelect('<!--{$class1}-->', '<!--{$class2}-->', '<!--{$id}-->','');">
173                                        <option value="">選択してください</option>
174                                        <!--{html_options options=$arrClassCat1[$id] selected=$arrForm[$class1]}-->
175                                        </select>
176                                        <!--{if $arrErr[$class1] != ""}-->
177                                            <br /><span class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</span>
178                                        <!--{/if}-->
179                                    </dd>
180                                <!--{/if}-->
181                                <!--{if $tpl_classcat_find2[$id]}-->
182                                    <dt><!--{$tpl_class_name2[$id]|escape}-->:</dt>
183                                    <dd>
184                                        <select name="<!--{$class2}-->" style="<!--{$arrErr[$class2]|sfGetErrorColor}-->">
185                                        <option value="">選択してください</option>
186                                        </select>
187                                        <!--{if $arrErr[$class2] != ""}-->
188                                            <br /><span class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</span>
189                                        <!--{/if}-->
190                                    </dd>
191                                <!--{/if}-->
192
193                                <!--{assign var=quantity value=quantity`$id`}-->
194                                <dt>数量:</dt>
195                                <dd>
196                                    <input type="text" name="<!--{$quantity}-->" size="3" class="box54" value="<!--{$arrForm[$quantity]|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr[$quantity]|sfGetErrorColor}-->" />
197                                    <!--{if $arrErr[$quantity] != ""}-->
198                                        <br /><span class="attention"><!--{$arrErr[$quantity]}--></span>
199                                    <!--{/if}-->
200                                </dd>
201                            </dl>
202                            <div class="cartbtn">
203                                <a href="<!--{$smarty.server.REQUEST_URI|escape}-->#product<!--{$id}-->" onclick="fnChangeAction('<!--{$smarty.server.REQUEST_URI|escape}-->#product<!--{$id}-->'); fnModeSubmit('cart','product_id','<!--{$id}-->'); return false;" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif','cart<!--{$id}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin.gif','cart<!--{$id}-->');">
204                                    <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart<!--{$id}-->" id="cart<!--{$id}-->" />
205                                </a>
206                            </div>
207                        </div>
208                        <!--▲買い物かご-->
209                    <!--{/if}-->
210                   
211                </div>
212            </div>
213            <!--▲商品-->
214        <!--{/section}-->
215
216        <!--▼件数-->
217        <!--{if $tpl_linemax > 0}-->
218            <ul class="pagenumberarea">
219                <li class="left"><span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品がございます。</li>
220                <li class="center"><!--{$tpl_strnavi}--></li>
221                <li class="right">
222                    <!--{if $orderby != 'price'}-->
223                        <a href="javascript:fnModeSubmit('', 'orderby', 'price')">価格順</a>
224                    <!--{else}-->
225                        <strong>価格順</strong>
226                    <!--{/if}-->&nbsp;
227                    <!--{if $orderby != "date"}-->
228                        <a href="javascript:fnModeSubmit('', 'orderby', 'date')">新着順</a>
229                    <!--{else}-->
230                        <strong>新着順</strong>
231                    <!--{/if}-->
232                     表示件数
233                    <select name="disp_number_bottom" onchange="javascript:fnModeSubmit('','disp_number',this.value);">
234                    <!--{foreach from=$arrPRODUCTLISTMAX item="dispnum" key="num"}-->
235                    <!--{if $num == $disp_number}-->
236                    <option value="<!--{$num}-->" selected="selected" ><!--{$dispnum}--></option>
237                    <!--{else}-->
238                    <option value="<!--{$num}-->" ><!--{$dispnum}--></option>
239                    <!--{/if}-->
240                <!--{/foreach}-->
241                    </select>
242                </li>
243            </ul>
244        <!--{/if}-->
245        <!--▲件数-->
246    </form>
247</div>
248<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.