*<{t}>规格名称：<{/t}> | <{input type="text" name="spec[spec_name]" vtype="required" value=$spec.spec_name maxlength='20'}>
<{t}>规格备注：<{/t}> | <{input type="text" name="spec[spec_memo]" value=$spec.spec_memo}>
<{t}>规格别名：<{/t}> | <{input type="text" name="spec[alias]" value=$spec.alias}> <{t}>用 | 分割<{/t}>
<{t}>显示类型：<{/t}> | <{t}>文字<{/t}> <{t}>图片<{/t}>
<{t}>显示方式：<{/t}> | <{t}>平铺显示<{/t}>

<{button app="desktop" label=$___b2c="添加规格值"|t:'b2c' class="addspec" id="addspec" icon="btn_add.gif" }>

<{t}>规格值名称<{/t}> | <{t}>规格值别名<{/t}> | <{t}>规格图片<{/t}> | <{t}>操作<{/t}>
--- | --- | --- | ---
<{foreach from=$spec.spec_value item=items key=key}>
<{input type="text" name="spec[spec_value][{$key}][spec_value]" value=$items.spec_value style='width:150px;' maxlength='20' vtype='required'}> | <{input type="text" name="spec[spec_value][{$key}][alias]" value=$items.alias style='width:150px;' maxlength='20' }> | <{assign var=name_spec_image value="spec[spec_value][{$key}][spec_image]"}> <{input type='image' name=$name_spec_image value=$items.spec_image}> | <{img app=desktop src='bundle/icon_asc.gif' class='asc' title=$___b2c='向上移动'|t:'b2c' style="cursor:pointer;"}> <{img app=desktop src='bundle/icon_desc.gif' class='desc' title=$___b2c='向下移动'|t:'b2c' style="cursor:pointer; width:13px; height:12px; margin-top:10px"}> <{img app=desktop src='bundle/delete.gif' class='delete' title=$___b2c='删除'|t:'b2c' style="cursor:pointer;" }>
<{/foreach}>

<{button label=$___b2c="保存"|t:'b2c' type="submit" class="btn-primary"}>