<#if newExtFields?? && (newExtFields?size>0) && oldExtFields?? && (oldExtFields?size>0)>
<label style="width:120px!important;margin-left:100px;" for="linkUrlLabel">扩展字段:</label> <#if newExtFields?size gt oldExtFields?size> <#list newExtFields as newField> <p><label for="">${newField.fieldName}:</label><input type="text" id="wordExt${newField_index+1}" name="${newField.fieldName}" value="${newField.fieldValue}" /></p> </#list> <#else> <#assign neixunhuandNum = 0> <#assign waixunhuanNum = 0> <#list oldExtFields as oldField> <#assign isExist = 0> <#list newExtFields as newField> <#if newField.fieldName==oldField.fieldName> <#assign isExist = 1> <#assign neixunhuandNum = neixunhuandNum + 1> <p><label for="">${newField.fieldName}:</label><input type="text" id="wordExt${newField_index+1+waixunhuanNum}" name="${newField.fieldName}" value="${newField.fieldValue}" /></p> <#break> </#if> </#list> <#if isExist==0> <p><label for="">${oldField.fieldName}:</label><input type="text" id="wordExt${waixunhuanNum+neixunhuandNum+1}" name="${oldField.fieldName}" value="" /></p> <#assign waixunhuanNum = waixunhuanNum + 1> </#if> </#list> </#if> </#if>