<#include "/jspgou_sys/head.html"/>
<#include "/common/image_upload.html"/>
<@s.m "global.position"/>: <@s.m "category.function"/> - <@s.m "global.add"/>
" onclick="this.form.action='v_list.do';"/>
<#assign errorPathExist><@s.m "category.path.pathExist"/> <@p.form id="jvForm" action="o_save.do" labelWidth="12"> <@p.td colspan="1" width="50" label="category.parent"><#if parent??>${parent.name}<#else>顶级栏目 <@p.td colspan="1" width="50" label="category.type">${type.name}<@p.tr/> <#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="${item.defValue!}" required="true" class="required" colspan=item.single?string("2","1") width="${item.single?string(100,50)}" maxlength="100"/><#if count%2==0><@p.tr/> <#elseif item.field=="path"> <@p.text label=item.propertyName name=item.field value="${item.defValue!}" required="true" maxlength="30" vld="{required:true,maxlength:100,path:true,remote:'v_checkPath.do',messages:{remote:'${errorPathExist}'}}" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="tplChannel"> <@p.select label=item.propertyName name=item.field value="${item.defValue!}" list=channelTpls headerKey="" headerValue="global.default" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="tplContent"> <@p.select label=item.propertyName name=item.field value="${item.defValue!}" list=contentTpls headerKey="" headerValue="global.default" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="priority"> <@p.text label=item.propertyName name=item.field value="${item.defValue!10}" required="true" class="required digits" maxlength="10" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="image"> <@p.td label="category.image" colspan="1" width="50" noHeight="true"> <@p.text id="uploadImgPath1" name="imagePath" size="30"/> " onclick="clearImg(1);"/>
" onclick="upload(1);"/>
<@s.m "global.width"/>: <@s.m "global.height"/>: " onclick="imgCut(1);"/> <@p.td colspan="1" width="50"> " style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/> <@p.tr/> <#elseif item.field=="title"> <@p.text label=item.propertyName name=item.field value="${item.defValue!}" size="70" maxlength="255" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="keywords"> <@p.text label=item.propertyName name=item.field value="${item.defValue!}" size="70" maxlength="255" colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="description"> <@p.textarea label=item.propertyName name=item.field value="${item.defValue!}" rows="5" 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=="refBrand"> <@p.checkboxlist label=item.propertyName list=brandList name="brandIds" 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=="colorsize"> <@p.td label="规格" colspan=item.single?string("2","1") width="${item.single?string(100,50)}" noHeight="true"> 开启规格 <@p.tr/>
<#list standardTypeList as standardType> ${standardType.name!}[${standardType.remark!}]
<#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.submit code="global.submit"/> <@p.reset code="global.reset"/>