{extend name="base" /} {block name="content"}
{foreach $res2 as $cat}
{$cat.name}
{/foreach}
{$siteinfo.gonggao}
{if condition="$siteinfo.indexmode eq '1'"}

商品标题 | 单价 | 库存 | 操作
--- | --- | --- | ---
{foreach $res2 as $cat}
{$cat.name}
{foreach $res as $good} {if condition="$good.abridge eq $cat.abridge"}
{$good.name} | {$good.price}元 | {$good.kucun}件 | 购买
{/if} {/foreach} {/foreach}

{elseif condition="$siteinfo.indexmode eq '0'"}
{foreach $res2 as $cat}

{$cat.name}
{/foreach}
{elseif condition="$siteinfo.indexmode eq '2'"}
{foreach $res as $good}
已售{$good.sales}单
¥{$good.price} 库存{$good.kucun}单

{$good.name}

{/foreach}
{/if}
友情链接
{foreach $link as $vo}
{$vo.sitename}
{/foreach}

{$siteinfo.tongji}
{/block}