<#include "/jspgou_sys/head.html"/>
<#include "/common/image_switch_upload.html"/> <#include "/common/image_big_upload.html"/> <#include "/common/image_amp_upload.html"/> <#include "/common/image_upload.html"/>
<@s.m "global.position"/>: <@s.m "shop.function.product"/> - <@s.m "product.function"/> - <@s.m "global.edit"/>
" onclick="var f=this.form;f.action='v_list.do';f.submit();"/>
<#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 !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/> <#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/> <#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/> <#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"/> <#if count%2==0><@p.tr/> <#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/> <#elseif item.field="attr"> <@p.td label=item.propertyName colspan=item.single?string("2","1") width="${item.single?string(100,50)}"> checked="checked"/> <@s.m "product.onSale"/> checked="checked"/> <@s.m "product.recommend"/> checked="checked"/> <@s.m "product.special"/> checked="checked"/> <@s.m "product.hotsale"/> checked="checked"/> <@s.m "product.newProduct"/> <#if count%2==0><@p.tr/> <#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/> <#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/> <#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/> <#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/> <#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/> <#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 colspan="1" width="50"> 160*160" src="${product.productExt.coverImg!}" style="width:100px;height:100px;background-color:#CCCCCC;border:1px solid #333"/> <#if count%2==0><@p.tr/> <#elseif item.field="productstyle">
*商品款式集: <#list product.pictures as pic>

<#if pic_index=0>
切换图片预览60*60 | 大图片预览380*380 | 放大图片预览600*600
<#if pic_index!=0> 删除 * | * | *

<#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 category.colorsize>
*规格:

<#list standardTypeList as standardType>
- class="curr3"<#else>class="normaltab3" id="tb_1${standardType_index+1}" onclick="HoverLi(1,'${standardType_index+1}','${standardTypeList?size}');">${standardType.name}

<#list standardTypeList as standardType>
class="dis"<#else>class="undis"> <#list standardType.standardSet as standard> <#if standard.id==ps.standard.id>checked="checked" /> ${standard.name!}
<#list standardTypeList as standardType> <#if standardType.dataType>
${standardType.name}

<#list psList as ps> <#if standardType.id=ps.type.id> ${ps.standard.name}
<#list psList as ps> <#if standardType.id=ps.type.id>

<#else>
${standardType.name} <#list psList as ps> <#if standardType.id=ps.type.id> ${ps.standard.name}

默认款式 <#list standardTypeList as standardType> | ${standardType.name} | 商品库存 | 销售价 | 市场价 | 成本价 | 移除
--- | --- | --- | --- | --- | --- | ---
<#list product.fashions as fash>
checked/> value="true"<#else>value="false"/> <#list standardTypeList as standardType> | <#list fash.standards as standard> <#if standard.type.id=standardType.id> ${standard.name!} |  |  |  |  |

<#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/> <#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/> <#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/> <#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/> <#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/> <#elseif item.field="timeLimit"> <@p.td label=item.propertyName colspan=item.single?string("2","1") width="${item.single?string(100,50)}"> <#if isLimit??&&isLimit>

<#else>

<#if count%2==0><@p.tr/> <#elseif item.field="isLimit"> <@p.td label=item.propertyName colspan=item.single?string("2","1") width="${item.single?string(100,50)}"> <#if isLimit??&&isLimit>

<#else>

<#if count%2==0><@p.tr/> <#elseif item.field="text"> <@p.editor label=item.propertyName name="text" value=product.text! colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field="text1"> <@p.editor label=item.propertyName name="text1" value=product.text1! colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#else> <@p.selfDefineWidget name="attr_${item.field}" value=product.attr[item.field] list="${item.optValue!}" rows="${item.rows!}" cols="${item.cols!}" label=item.propertyName colspan=item.single?string("2","1") width="${item.single?string(100,50)}" type="${item.dataType}"/><#if count%2==0><@p.tr/> <@p.td colspan="2"> <@p.hidden name="ctgId" value=ctgId!/> <@p.hidden name="id" value=product.id/> value="true"<#else> value="false" /> <@p.reset code="global.reset"/>

<table id="picTable{0}" border="0" style="float: left;"> <tr> <td align="center"> <div> <img id="preSwitchImg{0}" noResize="true" style="overflow:hidden;width:90px;height:90px;background-color:#ccc;border:1px solid #333"/> <br/> <a href="javascript:void(0);" onclick="$('#picTable{0}').remove();" class="pn-opt">删除</a> <input type="text" id="uploadImgPathSwitch{0}" name="fashionSwitchPic" style="width: 160px"/> <a href="javascript:void(0);" onclick="$('#picTable{0}').remove();" class="pn-opt"></a></div> <div><span id="ufcSwitch{0}"><input type="file" id="uploadFileSwitch{0}" size="10" style="width: 150px" /></span> <input type="button" value="上传" onclick="uploadSwitch({0});"/></div> </td> <td align="center"> <div> <img id="preBigImg{0}" noResize="true" style="overflow:hidden;width:90px;height:90px;background-color:#ccc;border:1px solid #333"/> <br/> <input type="text" id="uploadImgPathBig{0}" name="fashionBigPic" style="width: 160px" /> <a href="javascript:void(0);" onclick="$('#picTable{0}').remove();" class="pn-opt"></a></div> <div><span id="ufcBig{0}"><input type="file" id="uploadFileBig{0}" size="10" style="width: 150px" /></span> <input type="button" value="上传" onclick="uploadBig({0});"/></div> </td> <td align="center"> <div> <img id="preAmpImg{0}" noResize="true" style="overflow:hidden;width:90px;height:90px;background-color:#ccc;border:1px solid #333"/> <br/> <input type="text" id="uploadImgPathAmp{0}" name="fashionAmpPic" style="width: 160px"/> <a href="javascript:void(0);" onclick="$('#picTable{0}').remove();" class="pn-opt"></a></div> <div><span id="ufcAmp{0}"><input type="file" id="uploadFileAmp{0}" size="10" style="width: 150px" /></span> <input type="button" value="上传" onclick="uploadAmp({0});"/></div> </td> </tr> </table>