<#include "/jeecms_sys/head.html"/> <#include "/common/image_upload.html"/>
<@s.m "global.position"/>: <@s.m "channel.function"/> - <@s.m "global.add"/>
" onclick="this.form.action='v_list.do';" class="return-button"/>
<@p.form id="jvForm" action="o_save.do" labelWidth="10"> <@p.td colspan="1" width="50" label="channel.parent"><#if parent??>${parent.name}<#else><@s.m "channel.top"/> <@p.td colspan="1" width="50" label="channel.model">${model.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 value="${item.defValue!}" required="true" class="required" maxlength="100" size="${item.size!}" help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="path"> <@p.text value="${item.defValue!}" required="true" class="required" maxlength="30" size="${item.size!}" help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="title"> <@p.text value="${item.defValue!}" maxlength="255" size="${item.size!35}" help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="keywords"> <@p.text value="${item.defValue!}" maxlength="255" size="${item.size!35}" help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="description"> <@p.textarea value="${item.defValue!}" maxlength="255" rows="${item.rows!3}" cols="${item.cols!70}" help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="tplChannel"> <@p.select value="${item.defValue!}" headerKey="" headerValue="global.default" list=channelTplList help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="tplContent"> <@p.select value="${item.defValue!}" headerKey="" headerValue="global.default" list=contentTplList help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="channelStatic"> <@p.td label=item.label colspan="2" width="100">  <@s.m "channel.pageSize"/>: <@p.tr/> <#elseif item.field=="contentStatic"> <@p.td label=item.label colspan="2" width="100"> <@p.tr/> <#elseif item.field=="priority"> <@p.text value="${item.defValue!10}" required="true" class="reuqired digits" maxlength="255" size="${item.size!10}" help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0> <@p.tr/> <#elseif item.field=="display"> <@p.td required="true" help=item.help helpPosition="${item.helpPosition!2}" label=item.label colspan=item.single?string("2","1") width="${item.single?string(100,50)}"> <@p.radio value="true" list={"true":"global.true","false":"global.false"} name=item.field />   <#if count%2==0><@p.tr/> <#elseif item.field=="docImg"> <@p.td label="channel.docTitleImg" colspan="1" width="50"> <@p.td label="channel.docContentImg" colspan="1" width="50"> <@p.tr/> <#elseif item.field=="finalStep"> <#assign h><#if item.help??>${item.help}<#else><@s.m "channel."+item.field+".help"/> <@p.text value=item.defValue maxlength="5" size="${item.size!12}" help="${h}" helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="afterCheck"> < @p.select value=item.defValue headerKey="" headerValue="global.default" list={"1":"cmsSite.afterCheck.1","2":"cmsSite.afterCheck.2","3":"cmsSite.afterCheck.3"} help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="commentControl"> <@p.radio value="0" list={"0":"channel.commentControl.0","1":"channel.commentControl.1","2":"channel.commentControl.2"} help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0> <@p.tr/> <#elseif item.field=="allowUpdown"> <@p.radio value="true" list={"true":"global.allow","false":"global.notAllow"} help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="viewGroupIds"> <@p.checkboxlist valueList=viewGroupIds list=viewGroups listKey="id" listValue="name" help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="contriGroupIds"> <@p.checkboxlist valueList=contriGroupIds list=contriGroups listKey="id" listValue="name" help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="userIds" && users?size gt 0> <@p.checkboxlist valueList=userIds list=users listKey="id" listValue="username" help=item.help helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="link"> <#assign h><#if item.help??>${item.help}<#else><@s.m "content."+item.field+".help"/> <@p.text value=item.defValue maxlength="255" size="${item.size!35}" help="${h}" helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/><#if count%2==0><@p.tr/> <#elseif item.field=="titleImg"> <@p.td label=item.label colspan="1" width="50" noHeight="true"> <@p.text id="uploadImgPath1" name="titleImg" style="width:220px"/> " onclick="previewImg(1);" class="preview-button"/>
" onclick="upload(1);" class="upload-button"/>
<@s.m "global.width"/>: <@s.m "global.height"/>: " onclick="imgCut(1);" class="cut-button"/> <@p.td colspan="1" width="50"> <@s.m " style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/> <@p.tr/> <#elseif item.field=="contentImg"> <@p.td label=item.label colspan="1" width="50" noHeight="true"> <@p.text id="uploadImgPath2" name="contentImg" style="width:220px"/> " onclick="previewImg(2);" class="preview-button"/>
" onclick="upload(2);" class="upload-button"/>
<@s.m "global.width"/>: <@s.m "global.height"/>: " onclick="imgCut(2);" class="cut-button"/> <@p.td colspan="1" width="50"> <@s.m " style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/> <@p.tr/> <#elseif item.field=="txt"> <@p.editor value=item.defValue colspan="2" help=item.help helpPosition="${item.helpPosition!1}" label=item.label name=item.field/><@p.tr/> <#elseif item.field=="txt1"> <@p.editor value=item.defValue colspan="2" help=item.help helpPosition="${item.helpPosition!1}" label=item.label name=item.field/><@p.tr/> <#elseif item.field=="txt2"> <@p.editor value=item.defValue colspan="2" help=item.help helpPosition="${item.helpPosition!1}" label=item.label name=item.field/><@p.tr/> <#elseif item.field=="txt3"> <@p.editor value=item.defValue colspan="2" help=item.help helpPosition="${item.helpPosition!1}" label=item.label name=item.field/><@p.tr/> <#else> < @p.selfDefineWidget name="attr_${item.field}" value=item.defValue size="${item.size!}" list="${item.optValue!}" help=item.help helpPosition="${item.helpPosition!2}" rows="${item.rows!}" cols="${item.cols!}" label=item.label 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"/>