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

Revision 18742, 9.8 KB checked in by nanasess, 14 years ago (diff)

merged r18740

  • escape を修正
  • 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-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 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|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  <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 class="status_icon">
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}-->" /></a>
131         </span>
132       </p>
133
134         <!--{if $arrProducts[cnt].stock_max == 0 && $arrProducts[cnt].stock_unlimited_max != 1}-->
135           <p class="soldout"><em>申し訳ございませんが、只今品切れ中です。</em></p>
136         <!--{else}-->
137           <!--▼買い物かご-->
138           <div class="in_cart">
139             <dl>
140
141         <!--{assign var=class1 value=classcategory_id`$id`_1}-->
142         <!--{assign var=class2 value=classcategory_id`$id`_2}-->
143         <!--{if $tpl_classcat_find1[$id]}-->
144           <dt><!--{$tpl_class_name1[$id]|escape}-->:</dt>
145           <dd>
146             <select name="<!--{$class1}-->" style="<!--{$arrErr[$class1]|sfGetErrorColor}-->" onchange="lnSetSelect('<!--{$class1}-->', '<!--{$class2}-->', '<!--{$id}-->','');">
147             <option value="">選択してください</option>
148             <!--{html_options options=$arrClassCat1[$id] selected=$arrForm[$class1]}-->
149             </select>
150             <!--{if $arrErr[$class1] != ""}-->
151             <br /><span class="attention">※ <!--{$tpl_class_name1[$id]}-->を入力して下さい。</span>
152             <!--{/if}-->
153           </dd>
154         <!--{/if}-->
155         <!--{if $tpl_classcat_find2[$id]}-->
156           <dt><!--{$tpl_class_name2[$id]|escape}-->:</dt>
157           <dd>
158             <select name="<!--{$class2}-->" style="<!--{$arrErr[$class2]|sfGetErrorColor}-->">
159             <option value="">選択してください</option>
160             </select>
161             <!--{if $arrErr[$class2] != ""}-->
162             <br /><span class="attention">※ <!--{$tpl_class_name2[$id]}-->を入力して下さい。</span>
163             <!--{/if}-->
164           </dd>
165         <!--{/if}-->
166
167         <!--{assign var=quantity value=quantity`$id`}-->
168           <dt>個数:</dt>
169           <dd><input type="text" name="<!--{$quantity}-->" size="3" class="box54" value="<!--{$arrForm[$quantity]|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr[$quantity]|sfGetErrorColor}-->" />
170             <!--{if $arrErr[$quantity] != ""}-->
171             <br /><span class="attention"><!--{$arrErr[$quantity]}--></span>
172             <!--{/if}-->
173           </dd>
174         </dl>
175             <div class="cartbtn">
176             <a href="<!--{$smarty.server.REQUEST_URI|escape}-->#product<!--{$id}-->" onclick="fnChangeAction('<!--{$smarty.server.REQUEST_URI|escape:"javascript"}-->#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}-->');">
177               <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart<!--{$id}-->" id="cart<!--{$id}-->" /></a>
178             </div>
179           </div>
180             <!--▲買い物かご-->
181           <!--{/if}-->
182          </div>
183       </div>
184         <!--{/section}-->
185
186  <!--件数ここから-->
187  <!--{if $tpl_linemax > 0}-->
188  <ul class="pagenumberarea">
189    <li class="left"><span class="pagenumber"><!--{$tpl_linemax}--></span>件の商品がございます。</li>
190    <li class="center"><!--{$tpl_strnavi}--></li>
191    <li class="right"><!--{if $orderby != 'price'}-->
192        <a href="javascript:fnModeSubmit('', 'orderby', 'price')">価格順</a>
193    <!--{else}-->
194        <strong>価格順</strong>
195    <!--{/if}-->&nbsp;
196    <!--{if $orderby != "date"}-->
197        <a href="javascript:fnModeSubmit('', 'orderby', 'date')">新着順</a>
198    <!--{else}-->
199        <strong>新着順</strong>
200    <!--{/if}-->
201    </li>
202  </ul><!--件数ここまで-->
203    <!--{/if}-->
204  </form>
205</div>
206<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.