<#if (formStyle!)=='2'> <#assign filelistindex=0> <#assign fixWidth=85><#--普通样式,和OA样式,需要的宽度比例不一样-->
style="width:700px;height:100%;margin:0 auto;" <#assign fixWidth=90> <#else> style="width:100%;height:100%;margin:0 auto;" class="<#if (formStyle!)=='2'>oaform">
<#list form.panels as panel> <#if panel.labelAlign??> <#if panel.paneltype == '5'&&(!(form.isdetail==false&&panel.hideWhenEdit==true))>
${panel.content!}
<#--生成表单--> <#if panel.paneltype == '0'>
<#list panel.hiddenitems as hiddenitem> <#if form.formname??&&form.showTitle>
${form.formname!}
<#list 1..panel.colsize as i> <#if (formStyle!)=='2'> <#if (formStyle!)!='2'> <#assign colindex=0> <#assign newrow=true> <#assign colnum=panel.colsize> <#list panel.showitems as item> <#if item.isdetail&&(item.itemtype)!='26'> <#if newrow> <#if (item.itemtype)!='26'><#--如果是分组标题不新增行--> <#if item.singlerow><#--如果是单行显示的表单项--> <#if newrow==false><#--之前已经有内容 且tr没有结束--> <#if colindex!=colnum> <#if (item.itemtype)=='-1'><#--引用面板--> <#--引用面板,标签文字为空,就合并单元格--> <#if item.label?? && item.label != ''> <#else> <#include "FormItems/${item.ftlname}.html"> <#assign newrow=true> <#assign colindex=0> <#else> <#if (item.itemtype)=='-1'><#--引用面板--> <#--引用面板,标签文字为空,就合并单元格--> <#if item.label?? && item.label != ''> <#else> <#include "FormItems/${item.ftlname!'textbox'}.html"> <#if (item.itemtype)!='26'><#--如果是分组标题不占用列宽--> <#if item.itemcol??><#--动态列宽--> <#assign colindex=colindex+(item.itemcol+1)/2> <#else> <#assign colindex=colindex+1> <#assign newrow=false> <#else> <#assign colindex=panel.colsize> <#if colindex==colnum><#--到达指定的列数择要换行--> <#assign newrow=true> <#assign colindex=0>
colspan="${colnum*2-1}" style="width: ${73/panel.colsize}%;" > <#else> colspan="${colnum*2}" style="padding: 1px;width: ${100/panel.colsize}%;" > <#if !(form.isdetail==false&&panel.hideWhenEdit==true)> <#if item.panel.paneltype == '1'||item.panel.paneltype == '2'>
<#include "FormItems/filelist.html">
<#elseif item.panel.paneltype == '4'||item.panel.paneltype == '5'>
${item.panel.content!}
<#elseif item.panel.paneltype == '8'||item.panel.paneltype == '9'>
<#include "FormItems/stagefilelist.html">
<#elseif item.panel.paneltype == '6'||item.panel.paneltype == '7'>
<#include "FormItems/billfilelist.html">
colspan="${colnum*2-1}" style="width: ${73/panel.colsize}%;" > <#else> colspan="${colnum*2}" style="width: ${100/panel.colsize}%;" > <#if !(form.isdetail==false&&panel.hideWhenEdit==true)> <#if item.panel.paneltype == '1'||item.panel.paneltype == '2'>
<#include "FormItems/filelist.html">
<#elseif item.panel.paneltype == '4'||item.panel.paneltype == '5'>
${item.panel.content!}
<#elseif item.panel.paneltype == '8'||item.panel.paneltype == '9'>
<#include "FormItems/stagefilelist.html">
<#elseif item.panel.paneltype == '6'||item.panel.paneltype == '7'>
<#include "FormItems/billfilelist.html">
<#--生成附件列表--> <#if !(form.isdetail==false&&panel.hideWhenEdit==true)> <#if panel.paneltype == '1'>
<#include "FormItems/filelist.html">
<#elseif panel.paneltype == '8'>
<#include "FormItems/stagefilelist.html">
<#elseif panel.paneltype == '7'>
<#include "FormItems/billfilelist.html">
<#--生成tab页--> <#if form.formtype == '2'> <#list form.groupIds?keys as groupId> <#if groupId??&&form.groupIds[groupId!]??>
${form.groupIds[groupId!]!}:
<#list form.panels as panel> <#if panel.panelgorupid! == groupId!> <#if !(form.isdetail==false&&panel.hideWhenEdit==true)> <#if panel.paneltype == '2'>
<#include "FormItems/filelist.html">
<#elseif panel.paneltype == '9'>
<#include "FormItems/stagefilelist.html">
<#elseif panel.paneltype == '4'>
${panel.content!}
<#elseif panel.paneltype == '6'>
<#include "FormItems/billfilelist.html">
<#include "Form_Script.html">