<{foreach item=item from=$num }>
- 第<{$item}>件商品
<{/foreach}>

<{foreach item=item key=key from=$num }>
<{if $giftpackage.type!=1}> <{input type="object" default_id="gift-package-{$key}" filter=$filter select="checkbox" object=goods name="goods" app=b2c cols="name" return_url="{$return_url}" hanld="aaa" callback='_callback' cols="name,spec_info" value=$giftpackage.goods[$key] textcol="name" view="b2c:admin/goods/rows.html"}> <{else}> <{input type="object" default_id="gift-package-{$key}" filter=$filter select="checkbox" object=goods name="goods" app=b2c cols="name" return_url="{$return_url}" hanld="aaa" callback='_callback' cols="name,spec_info" value='' textcol="name" view="b2c:admin/goods/rows.html"}> <{/if}>
<{if $giftpackage['type']!=1}> <{foreach item=html key=index from=$goods.html}> <{if $key==$index}> <{$html}><{break;}> <{/if}> <{/foreach}> <{/if}>
<{/foreach}>