<{$smarty.const._MD_CARTB2B_GOODS}>

<{if $isAdmin}>
[<{$smarty.const._ADD}>]
<{$debstr}> <{/if}> <{if $message}> <{$message}> <{/if}> <{if $ctrl=="edit" || $ctrl=="update" || $ctrl=="addnew" || $ctrl=="insert" }>
<{$smarty.const._MD_CARTB2B_GCID}>
<{$smarty.const._MD_CARTB2B_WEIGHT}>
<{$smarty.const._MD_CARTB2B_VISIBLE}> checked<{/if}> /><{$smarty.const._NO}> checked<{/if}> /><{$smarty.const._YES}>
<{$smarty.const._MD_CARTB2B_ONSALE}> checked<{/if}> /><{$smarty.const._NO}> checked<{/if}> /><{$smarty.const._YES}>
<{$smarty.const._MD_CARTB2B_TAG}>
<{$smarty.const._MD_FORM_LAB}>
<{$smarty.const._MD_CARTB2B_TITLE}>
<{$smarty.const._MD_CARTB2B_STOCK}>
<{$smarty.const._MD_CARTB2B_PRICE}>
<{$smarty.const._MD_CARTB2B_PRICE1}>
<{$smarty.const._MD_CARTB2B_PRICE2}>
<{$smarty.const._MD_CARTB2B_PRICE3}>
<{$smarty.const._MD_CARTB2B_PRICE4}>
<{$smarty.const._MD_CARTB2B_PRICE5}>
<{$smarty.const._MD_CARTB2B_IMAGE}>
<{$smarty.const._MD_CARTB2B_IMAGE1}>
<{$smarty.const._MD_CARTB2B_IMAGE2}>
<{$smarty.const._MD_CARTB2B_IMAGE3}>
<{$smarty.const._MD_CARTB2B_IMAGE4}>
<{$smarty.const._MD_CARTB2B_IMAGE5}>
<{$smarty.const._MD_CARTB2B_CONTENT}>
[<{$smarty.const._VIEW}>]
<{elseif $ctrl=="delete" || $ctrl=="deleteOk" }>
<{$smarty.const._MD_CARTB2B_GCID}><{$records[0].gcid}>
<{$smarty.const._MD_CARTB2B_WEIGHT}><{$records[0].weight}>
<{$smarty.const._MD_CARTB2B_VISIBLE}><{$records[0].visible}>
<{$smarty.const._MD_CARTB2B_ONSALE}><{$records[0].onsale}>
<{$smarty.const._MD_CARTB2B_TAG}><{$records[0].tag}>
<{$smarty.const._MD_CARTB2B_TITLE}><{$records[0].title}>
<{$smarty.const._MD_CARTB2B_STOCK}><{$records[0].stock}>
<{$smarty.const._MD_CARTB2B_PRICE}><{$records[0].price}>
<{$smarty.const._MD_CARTB2B_PRICE1}><{$records[0].price1}>
<{$smarty.const._MD_CARTB2B_PRICE2}><{$records[0].price2}>
<{$smarty.const._MD_CARTB2B_PRICE3}><{$records[0].price3}>
<{$smarty.const._MD_CARTB2B_PRICE4}><{$records[0].price4}>
<{$smarty.const._MD_CARTB2B_PRICE5}><{$records[0].price5}>
<{$smarty.const._MD_CARTB2B_IMAGE}><{$records[0].image}>
<{$smarty.const._MD_CARTB2B_IMAGE1}><{$records[0].image1}>
<{$smarty.const._MD_CARTB2B_IMAGE2}><{$records[0].image2}>
<{$smarty.const._MD_CARTB2B_IMAGE3}><{$records[0].image3}>
<{$smarty.const._MD_CARTB2B_IMAGE4}><{$records[0].image4}>
<{$smarty.const._MD_CARTB2B_IMAGE5}><{$records[0].image5}>
<{$smarty.const._MD_CARTB2B_CONTENT}> <{$records[0].content}>
<{else}>
<{foreach from=$records item=r}>

<{$r.title}>

<{if $ctrl=="viewAllItems"}> <{* list view mode *}>

<{$smarty.const._MD_CARTB2B_SELECT}>

<{else}> <{* single item view mode *}>

<{$r.content}>

<{foreach from=$tag_items item=fm name=item}> <{if preg_match("/^-/", $form.items[$smarty.foreach.item.iteration].label)}> <{if empty($form_continue)}> <{if $fm.attr.check}> require<{/if}>"> <{assign var=form_continue value=0}> <{else}> <{if $fm.attr.check}> require<{/if}>"> <{if $fm.label}> <{/if}> <{/if}> <{/foreach}>
<{$fm.label}> <{assign var=form_continue value=1}> <{/if}> <{$fm.input}><{if $fm.comment}><{$fm.comment}><{/if}> <{else}> <{if !empty($form_continue)}> <{$fm.input}> <{if $fm.comment}><{$fm.comment}><{/if}>
<{$fm.label}><{else}><{/if}><{$fm.input}> <{if $fm.comment}><{$fm.comment}><{/if}>

<{/if}> <{if $isAdmin}>
[<{$smarty.const._DELETE}> |<{$smarty.const._EDIT}>]
<{/if}>
<{/foreach}>
<{/if}>