<#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.add"/>
" onclick="this.form.action='v_list.do';"/>
<@p.form id="jvForm" action="o_save.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 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 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=brandId! 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 colspan=item.single?string("2","1") required="true" width="${item.single?string(100,50)}"> <@s.m "product.salePrice"/>: <@p.text name="salePrice" value="0" style="width:50px" class="required number"/> <@s.m "product.marketPrice"/>: <@p.text name="marketPrice" value="0" style="width:50px" class="required number"/> <@s.m "product.costPrice"/>: <@p.text name="costPrice" value="0" 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 size="10" value="0" 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)}"> <@s.m "product.onSale"/> <@s.m "product.recommend"/> <@s.m "product.special"/> <@s.m "product.hotsale"/> <@s.m "product.newProduct"/> <#if count%2==0><@p.tr/> <#elseif item.field="productKeywords"> <@p.text label=item.propertyName name="productKeywords" maxlength="255" size="60" 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" 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" 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" 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" 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" size="30" class="required"/> " onclick="clearImg(100);"/>
" onclick="upload(100);"/>
<@p.td colspan="1" width="50"> 160*160" style="width:100px;height:100px;background-color:#CCCCCC;border:1px solid #333"/> <#if count%2==0><@p.tr/> <#elseif item.field="productstyle">
*商品款式集:

切换图片预览60*60 | 大图片预览380*380 | 放大图片预览600*600
* | * | *

<#list map?keys as mykey> <#assign mapUser=map[mykey]> <#assign st=map1[mykey] > <#if st.dataType==1> <@p.select name="exended_${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}" label=st.name list=mapUser listKey="id" listValue="name" colspan="2" width="100" /><@p.tr/> <#if category.colorsize>
*规格:
<#list standardTypeList as standardType> <#if standardType.dataType>
${standardType.name}

<#else>
${standardType.name}

默认款式 <#list standardTypeList as standardType> | ${standardType.name} | 商品库存 | 销售价 | 市场价 | 成本价 | 移除
--- | --- | --- | --- | --- | --- | ---

<#elseif item.field="shareContent"> <@p.textarea label=item.propertyName name="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" 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" 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" 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="text"> <@p.editor label=item.propertyName name="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" 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=item.defValue 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/> value="true"<#else>value="false" /> <@p.reset code="global.reset"/>
<#include "/common/alert_message.html"/> <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" class="required"/> <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>