<@s.m "global.position"/>: <@s.m "shop.function.product"/> - <@s.m "product.function"/> - <@s.m "global.edit"/>
<#include "/common/image_upload.html"/>
<@p.form id="jvForm" action="o_update.do" labelWidth="12" enctype="multipart/form-data">
<#assign count=0/>
<#list itemList as item>
<#if !item.single><#assign count=count+1/>#if>
<#if !item.custom>
<#if item.field=="name">
<@p.text label=item.propertyName name=item.field value=product.name size="40" required="true" class="required" maxlength="150" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="categoryId">
<@p.select label=item.propertyName name=item.field value=product.category.id list=categoryList listKey="id" listValue="name" listDeep="deep" required="true" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="brandId">
<@p.select label=item.propertyName name=item.field list=category.brands value=((product.brand!).id!) listKey="id" listValue="name" headerKey="" headerValue="global.none" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="price">
<#if !category.colorsize>
<@p.td label=item.propertyName required="true" colspan=item.single?string("2","1") width="${item.single?string(100,50)}">
<@s.m "product.marketPrice"/>: <@p.text name="marketPrice" value=product.marketPrice style="width:50px" class="required number"/>
<@s.m "product.salePrice"/>: <@p.text name="salePrice" value=product.salePrice style="width:50px" class="required number"/>
<@s.m "product.costPrice"/>: <@p.text name="costPrice" value=product.costPrice style="width:50px" class="required number"/>
@p.td> <#if count%2==0><@p.tr/>#if>
#if>
<#elseif item.field="stockCount">
<#if !category.colorsize>
<@p.text label=item.propertyName id=item.field name=item.field value=product.stockCount size="10" required="true" class="required digits" maxlength="10" help="" helpPosition="2" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
#if>
<#elseif item.field="attr">
<@p.td label=item.propertyName colspan=item.single?string("2","1") width="${item.single?string(100,50)}">
@p.td><#if count%2==0><@p.tr/>#if>
<#elseif item.field="productKeywords">
<@p.text label=item.propertyName name="productKeywords" value=productKeywords! maxlength="255" help="product.keywords.help" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="weight">
<@p.text label=item.propertyName name="weight" value=product.weight! size="10" help="product.weight.help" class="digits" maxlength="10" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="score">
<@p.text label=item.propertyName name="score" value=product.score maxlength="10" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="alertInventory">
<@p.text label=item.propertyName name="alertInventory" value=product.alertInventory maxlength="10" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="tagIds">
<@p.checkboxlist label=item.propertyName name="tagIds" valueList=product.tagIds list=tagList listKey="id" listValue="name" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="coverImg">
<@p.td label=item.propertyName colspan="1" width="50" noHeight="true" required="true">
<@p.text id="uploadImgPath100" name="coverImg" value=product.productExt.coverImg size="30" class="required"/>
" onclick="clearImg(100);"/>
" onclick="upload(100);"/>
@p.td>
<@p.td colspan="1" width="50">
![<@s.m]()
160*160" src="${product.productExt.coverImg!}" style="width:100px;height:100px;background-color:#CCCCCC;border:1px solid #333"/>
@p.td><#if count%2==0><@p.tr/>#if>
<#elseif item.field="productstyle">
| *商品款式集: |
<#list product.pictures as pic>
#list>
|
<#list map?keys as mykey>
<#assign mapUser=map[mykey]>
<#assign st=map1[mykey] >
<#if st.dataType==1>
<@p.select name="exended_${st.field}" value=map2[st.field] label=st.name list=mapUser listKey="id" listValue="name" colspan="2" width="100" headerKey="" headerValue="global.none"/><@p.tr/>
<#else>
<@p.radio name="exended_${st.field}" value=map2[st.field] label=st.name list=mapUser listKey="id" listValue="name" colspan="2" width="100" /><@p.tr/>
#if>
#list>
<#if category.colorsize>
| *规格: |
<#list standardTypeList as standardType>
- class="curr3"<#else>class="normaltab3"#if> id="tb_1${standardType_index+1}" onclick="HoverLi(1,'${standardType_index+1}','${standardTypeList?size}');">${standardType.name}
#list>
<#list standardTypeList as standardType>
class="dis"<#else>class="undis"#if>>
<#list standardType.standardSet as standard>
<#if standard.id==ps.standard.id>checked="checked"#if>
#list>
/>
${standard.name!}
#list>
#list>
|
<#list standardTypeList as standardType>
<#if standardType.dataType>
| ${standardType.name} |
|
<#else>
| ${standardType.name} |
<#list psList as ps>
<#if standardType.id=ps.type.id>
${ps.standard.name}
#if>
#list>
|
#if>
#list>
|
|
#if>
<#elseif item.field="shareContent">
<@p.textarea label=item.propertyName name="shareContent" value=product.shareContent! rows="3" cols="70" maxlength="255" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="mtitle">
<@p.text label=item.propertyName name="mtitle" value=product.mtitle! size="30" maxlength="255" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="mkeywords">
<@p.text label=item.propertyName name="mkeywords" value=product.mkeywords! size="30" maxlength="255" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="mdescription">
<@p.text label=item.propertyName name="mdescription" value=product.mdescription! size="60" maxlength="255" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="islimitTime">
<@p.radio label=item.propertyName name="islimitTime" value=product.productExt.islimitTime! list={"true":"是","false":"否"} onclick="seeTime(this.value);" id="limTime" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/>#if>
<#elseif item.field="timeLimit">
<@p.td label=item.propertyName colspan=item.single?string("2","1") width="${item.single?string(100,50)}">
<#if isLimit??&&isLimit>