⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subcategories.tpl

📁 NetGou商城购物系统是一款功能强大完善、操作界面友好、可扩展性好、专门针对个人和企业进行网上销售而开发的一套商城购物系统。 它具有完善的商品管理、订单管理、销售统计、新闻管理、结算系统、税率系统、
💻 TPL
字号:
{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu ne "Y"}
<P>
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}
<P>
{if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace:"/[\n]/":"<BR>"}<P>{/if}
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=cat_num loop=$subcategories}
{if $subcategories[cat_num].category}{assign var="tmp" value="1"}{/if}
{/section}
{if $subcategories}
{if $tmp} <IMG src="{if $current_category.icon_url}{$current_category.icon_url}{else}{$NetGou_web_dir}/icon.php?categoryid={$cat}{/if}" align="left"> {/if}

<TABLE border="0" width="90%" cellpadding="1" cellspacing="1">
{assign var="config.Appearance.categorys_per_row" value="3"}
{math equation="floor(100/x)" x=$config.Appearance.categorys_per_row assign="width"}

{section name=cat_no loop=$subcategories}
{if %cat_no.index% is div by $config.Appearance.categorys_per_row}
<TR>
{assign var="cell_counter" value=0}
{/if}
{math equation="x+1" x=$cell_counter assign="cell_counter" }

<TD valign="top" width="{$width}%" class="DialogBox"><img src="{$ImagesDir}/caticon.gif">
<A href="default.php?cat={ $subcategories[cat_no].categoryid }"><FONT class="ItemsList">{ $subcategories[cat_no].category|escape }</FONT></A>
</TD>
{capture name=prod_index}
{math equation="index+x+1" index=%cat_no.index% x=$config.Appearance.categorys_per_row}
{/capture}
{if $smarty.capture.prod_index is div by $config.Appearance.categorys_per_row }
</TR>
{/if}

{/section}

{if $cell_counter lt $config.Appearance.categorys_per_row}
{section name=rest_cells loop=$config.Appearance.categorys_per_row start=$cell_counter}
<TD class="DialogBox">&nbsp;</TD>
{/section}
</TR>
{/if}
</TABLE>

{/if}
{if $tmp and $products ne "" }
<HR size="1" noshade>
{/if}
{if $products}
{if $sort_fields}
<DIV align="right">{include file="main/search_sort_by.tpl" sort_fields=$sort_fields selected=$search_prefilled.sort_field direction=$search_prefilled.sort_direction url="default.php?cat=`$cat`&"}</DIV>
<BR>
{ include file="customer/main/navigation.tpl" }
<BR>
{/if}
{include file="customer/main/products.tpl" products=$products}
{/if}
{if $products eq "" and $tmp eq "0"}
{$lng.txt_no_products_in_man}
{/if}
{/capture}
{include file="dialog.tpl" title=$current_category.category content=$smarty.capture.dialog extra="width=100%"}
{if $products eq ""}
{if $f_products ne ""}
<P>
{include file="customer/main/featured.tpl"}
{/if}
{/if}
{ include file="customer/main/navigation.tpl" }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -