<{if $prototype.setting.use_props}>

<{t}>商品属性<{/t}>

<{if $prototype.setting.use_props}> <{foreach from=$prototype.props key=key item=aProp}> <{assign var="p_id" value=$aProp.taobao_id}> <{assign var="p_col" value="p_{$key}"}> <{if $aProp.must eq 1}> <{assign var="req" value="true"}> <{else}> <{assign var="req" value="false"}> <{/if}> <{/foreach}> <{/if}>
<{$aProp.name}>: id="pid_<{$p_id}>"<{/if}> > <{if $aProp.type eq 'select'}> <{if $aProp.iskey == 1}> <{input id="pid_{$p_id}" name="taobao[{$p_col}]" required=$req type="select" iskey=$key onchange="getprops(this)" nulloption="1" options=$aProp.options value=$taobao.goods[$p_col] }> <{else}> <{input id="pid_{$p_id}" name="taobao[{$p_col}]" required=$req type="select" nulloption="1" options=$aProp.options value=$taobao.goods[$p_col] }> <{/if}> <{elseif $aProp.type eq 'multi'}> <{foreach from=$aProp.options item=props_value key="props_key"}> <{if in_array($props_key,$taobao.goods[$p_col])}> <{assign var="checked" value="checked"}> <{else}> <{assign var="checked" value=""}> <{/if}> /><{$props_value}> <{/foreach}> <{else}> <{input type="text" name="taobao[{$p_col}]" maxlength="25" value=$taobao.goods[$p_col]}> <{/if}> <{if $aProp.must eq 1}>* <{/if}>
<{if $prototype.setting.use_spec==1}>

<{t}>商品销售属性<{/t}>

增加一行
<{foreach from=$spec_array item=varname key=key name="spec_iteration"}> <{/foreach}> <{if $goods_products_rows}> <{$goods_products_rows}> <{/if}> <{foreach from=$specs item=spec_cols key=id}> <{foreach from=$spec_cols item=spec_value_id key=spec_id}> <{assign var=spec_row value=$spec_array[$spec_id][options][$spec_value_id]}> <{/foreach}> <{/foreach}>
货号<{$varname.spec_name}><{if $varname.spec_type == 'image' && $varname.spec_type == 'text'}> class="x-define-prop" src="./images/savetolist.gif"><{/if}> 库存 销售价 操作
<{if $spec_row.spec_image}> <{else}> <{if $spec_row.spec_value}><{$spec_row.spec_value}><{else}>请点击选择<{/if}> <{/if}> <{input type="positive" size=10 name="taobao[sku][price][]" value=$taobao.goods.price[$id]}> <{input type="hidden" name="disabled[]" value=$goods.products[$id].disabled }> 删除
<{/if}> <{/if}> <{if $is_b_seller}> <{/if}>