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 | <!--商品カテゴリーここから--> |
---|
23 | <h2> |
---|
24 | <img src="<!--{$TPL_DIR}-->/img/side/title_cat.jpg" width="166" height="35" alt="商品カテゴリー" /> |
---|
25 | </h2> |
---|
26 | <div id="categoryarea"> |
---|
27 | <!--{section name=cnt loop=$arrTree}--> |
---|
28 | |
---|
29 | <!--{* 階層を level へ *}--> |
---|
30 | <!--{assign var=level value="`$arrTree[cnt].level`}--> |
---|
31 | |
---|
32 | <!--{* 最上位階層のリスト終了タグ *}--> |
---|
33 | <!--{if $level == 1 && !$smarty.section.cnt.first}--> |
---|
34 | </dl> |
---|
35 | <!--{/if}--> |
---|
36 | |
---|
37 | <!--{* カテゴリ名を disp_name へ *}--> |
---|
38 | <!--{assign var=disp_name value="`$arrTree[cnt].category_name`"}--> |
---|
39 | |
---|
40 | <!--{* 表示カテゴリのみ *}--> |
---|
41 | <!--{if $arrTree[cnt].display == 1}--> |
---|
42 | |
---|
43 | <!--{* 選択したカテゴリ *}--> |
---|
44 | <!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) || in_array($arrTree[cnt].category_id, $root_parent_id)}--> |
---|
45 | <!--{if $level == 1}--> |
---|
46 | <dl><dt class="onmark"> |
---|
47 | <!--{else}--> |
---|
48 | <dd> |
---|
49 | <!--{/if}--> |
---|
50 | |
---|
51 | <!--{* 未選択カテゴリ *}--> |
---|
52 | <!--{else}--> |
---|
53 | <!--{if $level == 1}--> |
---|
54 | <dl><dt> |
---|
55 | <!--{else}--> |
---|
56 | <dd> |
---|
57 | <!--{/if}--> |
---|
58 | <!--{/if}--> |
---|
59 | |
---|
60 | <!--{* 選択したカテゴリ *}--> |
---|
61 | <!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> |
---|
62 | <a href="<!--{$smarty.const.URL_DIR}-->products/list.php?category_id=<!--{$arrTree[cnt].category_id}-->" class="onlink"><!--{$disp_name|sfCutString:20|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a> |
---|
63 | |
---|
64 | <!--{* 未選択カテゴリ *}--> |
---|
65 | <!--{else}--> |
---|
66 | <a href="<!--{$smarty.const.URL_DIR}-->products/list.php?category_id=<!--{$arrTree[cnt].category_id}-->"><!--{$disp_name|sfCutString:20|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a> |
---|
67 | <!--{/if}--> |
---|
68 | |
---|
69 | <!--{if $level == 1}--> |
---|
70 | </dt> |
---|
71 | <!--{else}--> |
---|
72 | </dd> |
---|
73 | <!--{/if}--> |
---|
74 | |
---|
75 | <!--{/if}--> |
---|
76 | |
---|
77 | <!--{* 最後に閉じるリスト終了タグ *}--> |
---|
78 | <!--{if $smarty.section.cnt.last}--> |
---|
79 | </dl> |
---|
80 | <!--{/if}--> |
---|
81 | |
---|
82 | <!--{/section}--> |
---|
83 | </div> |
---|
84 | <!--商品カテゴリーここまで--> |
---|