{inc: include("shop/index_header.php");/} {sta:if(!$status)[exc]}
{echo:lp{i_location};/}:{echo:lp{i_index};/} > {echo:lp{i_goodsheader_category};/}
{sta:$i=0;/} {sta: foreach($CATEGORY[0] as $cat) { $i++;/} {sta:if($i%2)[exc]}

{echo: $cat['cat_name'];/}({echo: $cat['goods_num'];/})

{sta: } else [exc]}

{echo: $cat['cat_name'];/}({echo: $cat['goods_num'];/})

{end:if/}
{sta: if($CATEGORY[$cat['cat_id']]) { foreach($CATEGORY[$cat['cat_id']] as $subcat) [loop]}
{echo: $subcat['cat_name'];/}({echo: $subcat['goods_num'];/})
{sta: } if/}
{end:if/}
{sta: } else [exc]}
{echo:lp{i_location};/}:{echo:lp{i_index};/} > {echo:lp{i_keywords};/}“{echo: $k;/}”
{sta: if($CATEGORY[$cat_id]) [exc]}

{echo:lp{i_category_toselect_goods};/}

{sta: foreach($CATEGORY[$cat_id] as $value)[loop]}
{echo: $value['cat_name'];/}({echo: $value['goods_num'];/})
{end:foreach/}
{end:if/}
{echo: str_replace("{num}",$result['countnum'],lp{i_page_num});/}{echo: lp{i_page_first};/}{echo: lp{i_page_pre};/}{echo: lp{i_page_next};/}{echo: lp{i_page_last};/}{echo: lp{i_page_now};/}{echo: $result['page'];/}/{echo: $result['countpage'];/}{echo: str_replace("{num}",$result['countpage'],lp{i_page_count});/}
{end:if/} {inc: require("shop/index_footer.php");/}