source: tmp/version-2_5-test/data/Smarty/templates/default/bloc/category.tpl @ 18609

Revision 18609, 2.8 KB checked in by kajiwara, 14 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<!--商品カテゴリーここから-->
23<h2>
24    <img src="<!--{$TPL_DIR}-->/img/side/title_cat.jpg" width="166" height="35" alt="商品カテゴリー" />
25</h2>
26<div id="categoryarea">
27<!--{strip}-->
28    <ul id="categorytree">
29    <!--{assign var=preLev value=1}-->
30    <!--{assign var=firstdone value=0}-->
31    <!--{section name=cnt loop=$arrTree}-->
32        <!--{* 表示フラグがTRUEなら表示 *}-->
33        <!--{if $arrTree[cnt].display == 1}-->
34        <!--{assign var=level value=`$arrTree[cnt].level`}-->
35        <!--{assign var=levdiff value=`$level-$preLev`}-->
36            <!--{if $levdiff > 0}-->
37                <ul>
38            <!--{elseif $levdiff == 0 && $firstdone == 1}-->
39                </li>
40            <!--{elseif $levdiff < 0}-->
41                <!--{section name=d loop=`$levdiff*-1`}-->
42                        </li>
43                    </ul>
44                <!--{/section}-->
45                </li>
46            <!--{/if}-->
47        <li class="level<!--{$level}--><!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> onmark<!--{/if}-->"><a href="<!--{$smarty.const.URL_DIR}-->products/list.php?category_id=<!--{$arrTree[cnt].category_id}-->"<!--{if in_array($arrTree[cnt].category_id, $tpl_category_id) }--> class="onlink"<!--{/if}-->><!--{$arrTree[cnt].category_name|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</a>
48        <!--{if $firstdone == 0}--><!--{assign var=firstdone value=1}--><!--{/if}-->
49        <!--{assign var=preLev value=`$level`}-->
50        <!--{/if}-->
51        <!--{* セクションの最後に閉じタグを追加 *}-->
52        <!--{if $smarty.section.cnt.last}-->
53            <!--{if $preLev-1 > 0 }-->
54                <!--{section name=d loop=`$preLev-1`}-->
55                    </li>
56                </ul>
57                <!--{/section}-->
58                </li>
59            <!--{else}-->
60                </li>
61            <!--{/if}-->
62        <!--{/if}-->
63    <!--{/section}-->
64    </ul>
65<!--{/strip}-->
66</div>
67<!--商品カテゴリーここまで-->
Note: See TracBrowser for help on using the repository browser.