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

Revision 17444, 12.2 KB checked in by Seasoft, 16 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">
54    <form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->">
55        <input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->" />
56        <input type="hidden" name="mode" value="" />
57        <input type="hidden" name="orderby" value="<!--{$orderby}-->" />
58        <input type="hidden" name="product_id" value="" />
59       
60        <!--★タイトル★-->
61        <div id="listtitle"><h2><!--{$tpl_subtitle}--></h2></div>
62       
63        <!--▼検索条件-->
64        <!--{if $tpl_subtitle == "検索結果"}-->
65            <ul class="pagecondarea">
66                <li><strong>商品カテゴリ:</strong><!--{$arrSearch.category|escape}--></li>
67                <!--{if $arrSearch.maker}--><li><strong>メーカー:</strong><!--{$arrSearch.maker|escape}--></li><!--{/if}-->
68                <li><strong>商品名:</strong><!--{$arrSearch.name|escape}--></li>
69            </ul>
70        <!--{/if}-->
71        <!--▲検索条件-->
72
73        <!--▼件数-->
74        <!--{if $tpl_linemax > 0}-->
75            <ul class="pagenumberarea">
76                <li class="left"><span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品がございます。</li>
77                <li class="center"><!--{$tpl_strnavi}--></li>
78                <li class="right"><!--{if $orderby != 'price'}-->
79                    <a href="javascript:fnModeSubmit('', 'orderby', 'price')">価格順</a>
80                <!--{else}-->
81                    <strong>価格順</strong>
82                <!--{/if}-->&nbsp;
83                <!--{if $orderby != "date"}-->
84                    <a href="javascript:fnModeSubmit('', 'orderby', 'date')">新着順</a>
85                <!--{else}-->
86                    <strong>新着順</strong>
87                <!--{/if}-->
88                </li>
89            </ul>
90        <!--{else}-->
91            <!--{include file="frontparts/search_zero.tpl"}-->
92        <!--{/if}-->
93        <!--▲件数-->
94
95        <!--{section name=cnt loop=$arrProducts}-->
96            <!--{assign var=id value=$arrProducts[cnt].product_id}-->
97            <!--▼商品-->
98            <div class="listarea">
99                <div class="listphoto">
100                    <!--★画像★-->
101                    <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}-->" alt="<!--{$arrProducts[cnt].name|escape}-->" class="picture" /></a>
102                </div>
103               
104                <div class="listrightblock">
105                    <!--アイコン-->
106                    <!--商品ステータス-->
107                    <!--{if count($arrProducts[cnt].product_flag) > 0}-->
108                        <ul class="status_icon">
109                            <!--{section name=flg loop=$arrProducts[cnt].product_flag|count_characters}-->
110                                <!--{if $arrProducts[cnt].product_flag[flg] == "1"}-->
111                                    <!--{assign var=key value="`$smarty.section.flg.iteration`"}-->
112                                    <li><img src="<!--{$TPL_DIR}--><!--{$arrSTATUS_IMAGE[$key]}-->" width="65" height="17" alt="<!--{$arrSTATUS[$key]}-->"/></li>
113                                    <!--{assign var=sts_cnt value=$sts_cnt+1}-->
114                                <!--{/if}-->
115                            <!--{/section}-->
116                        </ul>
117                    <!--{/if}-->
118                    <!--商品ステータス-->
119                    <!--アイコン-->
120                   
121                    <!--★商品名★-->
122                    <h3>
123                        <a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrProducts[cnt].product_id}-->"><!--{$arrProducts[cnt].name|escape}--></a>
124                    </h3>
125                   
126                    <!--★コメント★-->
127                    <p class="listcomment"><!--{$arrProducts[cnt].main_list_comment|escape|nl2br}--></p>
128                   
129                    <p>
130                        <span class="pricebox">
131                            <!--{$smarty.const.SALE_PRICE_TITLE}--><span class="mini">(税込)</span>:
132                            <span class="price">
133                            <!--{if $arrProducts[cnt].price02_min == $arrProducts[cnt].price02_max}-->
134                                <!--{$arrProducts[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
135                            <!--{else}-->
136                                <!--{$arrProducts[cnt].price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}--><!--{$arrProducts[cnt].price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
137                            <!--{/if}-->円</span>
138                        </span>
139                       
140                        <!--★詳細ボタン★-->
141                        <span class="btnbox">
142                            <!--{assign var=name value="detail`$smarty.section.cnt.iteration`"}-->
143                            <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}-->');">
144                                <img src="<!--{$TPL_DIR}-->img/products/b_detail.gif" width="115" height="25" alt="詳しくはこちら" name="<!--{$name}-->" id="<!--{$name}-->" />
145                            </a>
146                        </span>
147                    </p>
148
149                    <!--{if $arrProducts[cnt].stock_max == 0 && $arrProducts[cnt].stock_unlimited_max != 1}-->
150                        <p class="soldout"><em>申し訳ございませんが、只今品切れ中です。</em></p>
151                    <!--{else}-->
152                        <!--▼買い物かご-->
153                        <div class="in_cart">
154                            <!--{assign var=class1 value=classcategory_id`$id`_1}-->
155                            <!--{assign var=class2 value=classcategory_id`$id`_2}-->
156                            <dl>
157                                <!--{if $tpl_classcat_find1[$id]}-->
158                                    <dt><!--{$tpl_class_name1[$id]|escape}-->:</dt>
159                                    <dd>
160                                        <select name="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="lnSetSelect('<!--{$class1}-->', '<!--{$class2}-->', '<!--{$id}-->','');">
161                                        <option value="">選択してください</option>
162                                        <!--{html_options options=$arrClassCat1[$id] selected=$arrForm[$class1]}-->
163                                        </select>
164                                        <!--{if $arrErr[$class1] != ""}-->
165                                            <br /><span class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</span>
166                                        <!--{/if}-->
167                                    </dd>
168                                <!--{/if}-->
169                                <!--{if $tpl_classcat_find2[$id]}-->
170                                    <dt><!--{$tpl_class_name2[$id]|escape}-->:</dt>
171                                    <dd>
172                                        <select name="<!--{$class2}-->" style="<!--{$arrErr[$class2]|sfGetErrorColor}-->">
173                                        <option value="">選択してください</option>
174                                        </select>
175                                        <!--{if $arrErr[$class2] != ""}-->
176                                            <br /><span class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</span>
177                                        <!--{/if}-->
178                                    </dd>
179                                <!--{/if}-->
180
181                                <!--{assign var=quantity value=quantity`$id`}-->
182                                <dt>数量:</dt>
183                                <dd>
184                                    <input type="text" name="<!--{$quantity}-->" size="3" class="box54" value="<!--{$arrForm[$quantity]|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr[$quantity]|sfGetErrorColor}-->" />
185                                    <!--{if $arrErr[$quantity] != ""}-->
186                                        <br /><span class="attention"><!--{$arrErr[$quantity]}--></span>
187                                    <!--{/if}-->
188                                </dd>
189                            </dl>
190                            <div class="cartbtn">
191                                <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}-->');">
192                                    <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart<!--{$id}-->" id="cart<!--{$id}-->" />
193                                </a>
194                            </div>
195                        </div>
196                        <!--▲買い物かご-->
197                    <!--{/if}-->
198                   
199                </div>
200            </div>
201            <!--▲商品-->
202        <!--{/section}-->
203
204        <!--▼件数-->
205        <!--{if $tpl_linemax > 0}-->
206            <ul class="pagenumberarea">
207                <li class="left"><span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品がございます。</li>
208                <li class="center"><!--{$tpl_strnavi}--></li>
209                <li class="right">
210                    <!--{if $orderby != 'price'}-->
211                        <a href="javascript:fnModeSubmit('', 'orderby', 'price')">価格順</a>
212                    <!--{else}-->
213                        <strong>価格順</strong>
214                    <!--{/if}-->&nbsp;
215                    <!--{if $orderby != "date"}-->
216                        <a href="javascript:fnModeSubmit('', 'orderby', 'date')">新着順</a>
217                    <!--{else}-->
218                        <strong>新着順</strong>
219                    <!--{/if}-->
220                </li>
221            </ul>
222        <!--{/if}-->
223        <!--▲件数-->
224    </form>
225</div>
226<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.