source: branches/version-2/data/Smarty/templates/default/list.tpl @ 16808

Revision 16808, 9.8 KB checked in by satou, 16 years ago (diff)

#188
修正完了。

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