Changeset 15814
- Timestamp:
- 2007/09/21 00:00:18 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/Smarty/templates/default/bloc/category.tpl
r15782 r15814 4 4 * http://www.lockon.co.jp/ 5 5 *}--> 6 <!--▼商品カテゴリーここから--> 7 <table width="166" border="0" cellspacing="0" cellpadding="0" summary=" "> 8 <tr> 9 <td colspan="3"><img src="<!--{$TPL_DIR}-->img/side/title_cat.jpg" width="166" height="35" alt="商品カテゴリー"></td> 10 </tr> 11 <tr> 12 <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> 6 <!--商品カテゴリーここから--> 7 <h2> 8 <img src="<!--{$TPL_DIR}-->/img/side/title_cat.jpg" width="166" height="35" alt="商品カテゴリー" /> 9 </h2> 10 <div id="categoryarea"> 11 <!--{section name=cnt loop=$arrTree}--> 13 12 14 <td align="center" bgcolor="#fff1e3"> 15 <table width="146" border="0" cellspacing="0" cellpadding="0" summary=" "> 16 <tr> 17 <td height="10"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="15" height="1" alt=""></td> 18 <td><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="131" height="1" alt=""></td> 19 </tr> 20 21 <!--{section name=cnt loop=$arrTree}--> 22 <!--{assign var=level value="`$arrTree[cnt].level`}--> 23 24 <!--{* 区切り線表示 *}--> 25 <!--{if $level == 1 && !$smarty.section.cnt.first}--> 26 <tr><td colspan="2" height="15"><img src="<!--{$TPL_DIR}-->img/side/line_146.gif" width="146" height="1" alt=""></td></tr> 27 <!--{/if}--> 28 <!--{* カテゴリ名表示 *}--> 29 <!--{assign var=disp_name value="`$arrTree[cnt].category_name`"}--> 30 <!--{if $arrTree[cnt].display == 1}--> 31 <tr> 32 <td colspan="2" class="fs12"> 33 <!--{if $tpl_category_id == $arrTree[cnt].category_id || $root_parent_id == $arrTree[cnt].category_id}--> 34 <!--{section name=n loop=`$level-1`}--> <!--{/section}--><!--{if $level == 1}--><img src="<!--{$TPL_DIR}-->img/common/arrow_red.gif" width="11" height="14" alt=""><!--{/if}--> 35 <!--{else}--> 36 <!--{section name=n loop=`$level-1`}--> <!--{/section}--><!--{if $level == 1}--><img src="<!--{$TPL_DIR}-->img/common/arrow_blue.gif" width="11" height="14" alt=""><!--{/if}--> 37 <!--{/if}--> 38 <!--{if $tpl_category_id == $arrTree[cnt].category_id }--> 39 <a href="<!--{$smarty.const.URL_DIR}-->products/list.php?category_id=<!--{$arrTree[cnt].category_id}-->"><span class="redst"><!--{$disp_name|sfCutString:20|escape}-->(<!--{$arrTree[cnt].product_count|default:0}-->)</span></a> 40 <!--{else}--> 41 <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> 42 <!--{/if}--> 43 </td> 44 </tr> 45 <!--{/if}--> 46 <!--{/section}--> 47 </table> 48 </td> 49 <td bgcolor="#cccccc"><img src="<!--{$TPL_DIR}-->img/common/_.gif" width="1" height="10" alt=""></td> 50 </tr> 51 <tr> 52 <td colspan="3"><img src="<!--{$TPL_DIR}-->img/side/flame_bottom02.gif" width="166" height="15" alt=""></td> 53 </tr> 54 <tr><td height="10"></td></tr> 55 </table> 56 <!--▲商品カテゴリーここまで--> 13 <!--{* 階層を level へ *}--> 14 <!--{assign var=level value="`$arrTree[cnt].level`}--> 15 16 <!--{* 最上位階層のリスト終了タグ *}--> 17 <!--{if $level == 1 && !$smarty.section.cnt.first}--> 18 </dl> 19 <!--{/if}--> 20 21 <!--{* カテゴリ名を disp_name へ *}--> 22 <!--{assign var=disp_name value="`$arrTree[cnt].category_name`"}--> 23 24 <!--{* 表示カテゴリのみ *}--> 25 <!--{if $arrTree[cnt].display == 1}--> 26 27 <!--{* 選択したカテゴリ *}--> 28 <!--{if $tpl_category_id == $arrTree[cnt].category_id || $root_parent_id == $arrTree[cnt].category_id}--> 29 <!--{if $level == 1}--> 30 <dl><dt class="onmark"> 31 <!--{else}--> 32 <dd> 33 <!--{/if}--> 34 35 <!--{* 未選択カテゴリ *}--> 36 <!--{else}--> 37 <!--{if $level == 1}--> 38 <dl><dt> 39 <!--{else}--> 40 <dd> 41 <!--{/if}--> 42 <!--{/if}--> 43 44 <!--{* 選択したカテゴリ *}--> 45 <!--{if $tpl_category_id == $arrTree[cnt].category_id }--> 46 <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> 47 48 <!--{* 未選択カテゴリ *}--> 49 <!--{else}--> 50 <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> 51 <!--{/if}--> 52 53 <!--{if $level == 1}--> 54 </dt> 55 <!--{else}--> 56 </dd> 57 <!--{/if}--> 58 59 <!--{/if}--> 60 61 <!--{* 最後に閉じるリスト終了タグ *}--> 62 <!--{if $smarty.section.cnt.last}--> 63 </dl> 64 <!--{/if}--> 65 66 <!--{/section}--> 67 </div> 68 <!--商品カテゴリーここまで-->
Note: See TracChangeset
for help on using the changeset viewer.