<#include "/jeecms_sys/head.html"/>
<#include "/common/image_upload.html"/>
<@s.m "global.position"/>: <@s.m "channel.function"/> - <@s.m "global.edit"/>
" onclick="$('#root').val('${(channel.parent.id)!}');this.form.action='v_list.do';" class="return-button"/>
<@p.form id="jvForm" action="o_update.do" labelWidth="10"> <@p.td colspan="1" width="50" label="channel.parent"> <@p.select name="parentId" list=channelList value=(channel.parent.id)! listKey="id" listValue="name" listDeep="deep" headerKey="" headerValue="channel.top"/> <#--<#if channel.parent??>${channel.parent.name}<#else><@s.m "channel.top"/>--> <@p.td colspan="1" width="50" label="channel.model">${channel.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=channel.name 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=channel.path 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=channel.title 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=channel.keywords 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=channel.description 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=tplChannel 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=tplContent 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"> checked="checked"/><@s.m "channel.staticOn"/> checked="checked"/><@s.m "channel.accessByDir"/> checked="checked"/><@s.m "channel.listChild"/> <@s.m "channel.pageSize"/>: <@p.tr/> <#elseif item.field=="contentStatic"> <@p.td label=item.label colspan="2" width="100"> checked="checked"/><@s.m "channel.staticOn"/> <@p.tr/> <#elseif item.field=="priority"> <@p.text value=channel.priority 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=channel.display list={"true":"global.true","false":"global.false"} name=item.field /> checked="checked"/><@s.m "channel.blank"/> <#if count%2==0><@p.tr/> <#elseif item.field=="docImg"> <@p.td label="channel.docTitleImg" colspan="1" width="50"> checked="checked"/><@s.m "global.have"/> style="display:none"> <@s.m "global.width"/>: <@s.m "global.height"/>: <@p.td label="channel.docContentImg" colspan="1" width="50"> checked="checked"/><@s.m "global.have"/> style="display:none"> <@s.m "global.width"/>: <@s.m "global.height"/>: <@p.tr/> <#elseif item.field=="finalStep"> <#assign h><#if item.help??>${item.help}<#else><@s.m "channel."+item.field+".help"/> <@p.text value=channel.finalStep 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=channel.afterCheck 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=channel.commentControl 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=channel.allowUpdown 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=channel.link 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" value=channel.titleImg style="width:220px"/> " onclick="previewImg(1);" class="preview-button"/>
<@s.m "imageupload.mark"/> " 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"> " 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" value=channel.contentImg style="width:220px"/> " onclick="previewImg(2);" class="preview-button"/>
<@s.m "imageupload.mark"/> " 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"> " style="width:100px;height:70px;background-color:#CCCCCC;border:1px solid #333"/> <@p.tr/> <#elseif item.field=="txt"> <@p.editor value=channel.txt colspan="2" help=item.help helpPosition="${item.helpPosition!1}" label=item.label name=item.field/><@p.tr/> <#elseif item.field=="txt1"> <@p.editor value=channel.txt1 colspan="2" help=item.help helpPosition="${item.helpPosition!1}" label=item.label name=item.field/><@p.tr/> <#elseif item.field=="txt2"> <@p.editor value=channel.txt2 colspan="2" help=item.help helpPosition="${item.helpPosition!1}" label=item.label name=item.field/><@p.tr/> <#elseif item.field=="txt3"> <@p.editor value=channel.txt3 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=channel.attr[item.field] 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.hidden name="root" value=root!(channel.parent.id)!/> <@p.hidden name="id" value=channel.id/> <@p.submit code="global.submit"/> <@p.reset code="global.reset"/>