<#include "/jeecms_sys/head.html"/>
<@s.m "global.position"/>: <@s.m "content.function"/> - <@s.m "global.edit"/>
" onclick="this.form.action='v_list.do';" class="return-button"/> <#list .data_model?keys as pkey> <#if pkey?starts_with('query')><#t/>
<#include "/common/image_upload.html"/> <#include "attachment_upload.html"/> <#include "media_upload.html"/> <@p.form id="jvForm" action="o_update.do" labelWidth="10"> <#assign count=0/> <#list itemList as item> <#if !item.single><#assign count=count+1/> <#if !item.custom> <#if item.field=="channelId"> <#assign h><#if item.help??>${item.help}<#else><@s.m "content."+item.field+".help"/> <@p.td required="true" label=item.label colspan=item.single?string("2","1") width="${item.single?string(100,50)}">
"/> ${h}
<#list content.channelsWithoutMain as c>
<#list c.nodeList as node>${node.name}<#if node_has_next> > <@s.m "global.delete"/>
<@s.m "content.topicIds"/>: <@p.checkboxlist valueList=topicIds list=topicList listKey="id" listValue="sname" name="topicIds"/>
<#elseif item.field=="title"> <@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.text value=content.title class="required" maxlength="150" size="${item.size!70}" name=item.field/> checked="checked"/><@s.m "content.link"/>
style="display:none">url:
<#elseif item.field=="shortTitle"> <#assign h><#if item.help??>${item.help}<#else><@s.m "content."+item.field+".help"/> <@p.text value=content.shortTitle class="pn-fruler" maxlength="150" size="${item.size!35}" help="${h}" helpPosition="${item.helpPosition!3}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/> <#elseif item.field=="titleColor"> <#assign h><#if item.help??>${item.help}<#else><@s.m "content."+item.field+".help"/> <@p.td help="${h}" helpPosition="${item.helpPosition!3}" label=item.label colspan=item.single?string("2","1") width="${item.single?string(100,50)}"> checked="checked"/><@s.m "content.bold"/> <#elseif item.field=="tagStr"> <#assign h><#if item.help??>${item.help}<#else><@s.m "content."+item.field+".help"/> <@p.text value=content.tagStr maxlength="50" 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)}"/> <#elseif item.field=="description"> <@p.textarea value=content.description cols="${item.cols!70}" rows="${item.rows!3}" maxlength="255" 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)}"/> <#elseif item.field=="author"> <@p.td help=item.help helpPosition="${item.helpPosition!2}" label=item.label colspan=item.single?string("2","1") width="${item.single?string(100,50)}"> <@p.text name=item.field value=content.author maxlength="100" size="${item.size!}"/> <#elseif item.field=="origin"> <@p.td help=item.help helpPosition="${item.helpPosition!2}" label=item.label colspan=item.single?string("2","1") width="${item.single?string(100,50)}"> <@p.text name=item.field value=content.origin maxlength="100" style="width:70px"/> <@s.m "content.originUrl"/>: <#elseif item.field=="viewGroupIds"> <#assign h><#if item.help??>${item.help}<#else><@s.m "content."+item.field+".help"/> <@p.checkboxlist list=groupList valueList=groupIds listKey="id" listValue="name" help="${h}" helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/> <#elseif item.field=="topLevel"> <@p.td help=item.help helpPosition="${item.helpPosition!2}" label=item.label colspan=item.single?string("2","1") width="${item.single?string(100,50)}"> <@p.select value=content.topLevel list={"0":"content.topLevel.0","1":"content.topLevel.1","2":"content.topLevel.2","3":"content.topLevel.3","4":"content.topLevel.4","5":"content.topLevel.5","6":"content.topLevel.6"} name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/> <@s.m "content.sortDate"/>: <@p.text name="sortDate" value=content.sortDate style="width:140px" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate"/> <#elseif item.field=="releaseDate"> <#assign h><#if item.help??>${item.help}<#else><@s.m "content."+item.field+".help"/> <@p.text value=content.releaseDate style="width:140px" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="Wdate" help="${h!}" helpPosition="${item.helpPosition!2}" label=item.label name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/> <#elseif item.field=="typeId"> <@p.td help=item.help helpPosition="${item.helpPosition!2}" label=item.label colspan=item.single?string("2","1") width="${item.single?string(100,50)}"> <@p.select value=content.type.id list=typeList listKey="id" listValue="name" onchange="typeChange(this.selectedIndex)" name=item.field colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/> checked="checked"/><@s.m "content.recommend"/> checked="checked"/><@s.m "content.draft"/> <#elseif item.field=="tplContent"> <#assign h><#if item.help??>${item.help}<#else><@s.m "content."+item.field+".help"/> <@p.select value=tplContent list=tplList headerKey="" headerValue="global.default" name=item.field help="${h}" helpPosition="${item.helpPosition!2}" label=item.label colspan=item.single?string("2","1") width="${item.single?string(100,50)}"/> <#elseif item.field=="typeImg"> <@p.td id="typeImg" label=item.label colspan="1" width="50" noHeight="true"> <@p.text id="uploadImgPath0" name="typeImg" value=content.typeImg style="width:220px"/> " onclick="previewImg(0);" class="preview-button"/>
<@s.m "imageupload.mark"/> " onclick="upload(0);" class="upload-button"/>
<@s.m "global.width"/>: <@s.m "global.height"/>: " onclick="imgCut(0);" class="cut-button"/> <@p.td colspan="1" width="50"> " style="width:100px;height:70px;background-color:#ccc;border:1px solid #333"/> <#elseif item.field=="titleImg" && (channel.hasTitleImg)!true> <@p.td id="titleImg" label=item.label colspan="1" width="50" noHeight="true"> <@p.text id="uploadImgPath1" name="titleImg" value=content.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:#ccc;border:1px solid #333"/> <#elseif item.field=="contentImg" && (channel.hasContentImg)!true> <@p.td id="contentImg" label=item.label colspan="1" width="50" noHeight="true"> <@p.text id="uploadImgPath2" name="contentImg" value=content.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:#ccc;border:1px solid #333"/> <#elseif item.field=="attachments"> <@p.td label=item.label colspan="2" noHeight="true">

"/> | <@s.m "content.attachmentName"/> | <@s.m "content.attachmentPath"/> | <@s.m "content.fileUpload"/>
<#list content.attachments as attach>
<@s.m "content.attachmentDelLine"/> |  |  | " onclick="uploadAttachment(${attach_index});" class="upload-button"/>

<tr id="attachTr{0}"> <td align="center"><a onclick="$('#attachTr{0}').remove();" href="javascript:void(0);" class="pn-opt"><@s.m "content.attachmentDelLine"/></a></td> <td align="center"><input type="text" id="attachmentNames{0}" name="attachmentNames"/></td> <td align="center"><input type="text" id="attachmentPaths{0}" name="attachmentPaths"/></td> <td align="center"> <span id="afc{0}" style="position:relative;display:block;width:300px;*width:300px;"> <input type='text' id='attachmentText{0}'/> <input class="browse" type='button' value='<@s.m "global.browse"/>'/> <input onchange="$('#attachmentText{0}').val(this.value)" size="19" type="file" name="attachmentFile" id="attachmentFile{0}" class="file-button-other"/> <input type="button" value="<@s.m "content.fileUpload"/>" onclick="uploadAttachment({0});"/ class="upload-button"> </span> <input type="hidden" id="attachmentFilenames{0}" name="attachmentFilenames"/> </td> </tr>
<#elseif item.field=="media"> <@p.td label=item.label colspan="1" width="50" noHeight="true">
" onclick="uploadMedia();" class="upload-button"/>
<@p.td colspan="1" width="50" label="content.mediaType"> <@p.radio name="mediaType" value=content.mediaType list=["WM","REAL","FLV","FLASH"]/>
<#elseif item.field=="txt"> <@p.editor value=content.txt colspan="2" help=item.help helpPosition="${item.helpPosition!}" label=item.label name=item.field/> <#elseif item.field=="txt1"> <@p.editor value=content.txt1 colspan="2" help=item.help helpPosition="${item.helpPosition!}" label=item.label name=item.field/> <#elseif item.field=="txt2"> <@p.editor value=content.txt2 colspan="2" help=item.help helpPosition="${item.helpPosition!}" label=item.label name=item.field/> <#elseif item.field=="txt3"> <@p.editor value=content.txt3 colspan="2" help=item.help helpPosition="${item.helpPosition!}" label=item.label name=item.field/> <#elseif item.field=="pictures"> <@p.td label=item.label colspan="2" noHeight="true">
"/>
<#list content.pictures as p>

<@s.m "content.picturesDel"/> " onclick="upload(${p_index+3});" class="upload-button"/> ${p.description!} | " noResize="true" style="width:110px;height:110px;background-color:#ccc;border:1px solid #333"/>

<table id="picTable{0}" border="0" style="float:left;"> <tr> <td> <div><input type="text" id="uploadImgPath{0}" name="picPaths" style="width:160px"/> <a href="javascript:void(0);" onclick="$('#picTable{0}').remove();" class="pn-opt"><@s.m "content.picturesDel"/></a></div> <div> <span id="ufc{0}" style="position:relative"> <input type='text' id='uploadFileText{0}' size="10"/> <input class="browse" type='button' value='<@s.m "global.browse"/>'/> <input onchange="$('#uploadFileText{0}').val(this.value)" size="10" type="file" id="uploadFile{0}" class="file-button"/> </span> <input type="button" value="<@s.m "content.fileUpload"/>" onclick="upload({0});" class="upload-button"/> </div> <div><textarea style="width:200px;height:60px;" name="picDescs" maxlength="255"></textarea></div> </td> <td><img id="preImg{0}" alt="<@s.m "imageupload.preview"/>" noResize="true" style="width:110px;height:110px;background-color:#ccc;border:1px solid #333"/></td> </tr> </table>
<#else> <@p.selfDefineWidget name="attr_${item.field}" value=content.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><#assign f=itemList[item_index+1].field/> id="tr-${f}"<#if (f=="typeImg" && !typeList[0].hasImage) || (f=="titleImg" && (!channel?? || !channel.hasTitleImg) || (f=="contentImg" && (!channel?? || !channel.hasContentImg)))> style="display:none"> <@p.td colspan="2"> <@p.hidden name="id" value=content.id/> <@p.submit code="global.submit"/> <@p.reset code="global.reset"/> <#list .data_model?keys as pkey> <#if pkey?starts_with('query')><#t/>
" style="display:none;">