twoColumn.ftl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <script>
  2. function handRowEvent(ev,table){
  3. $("td.tdNo",table).each(function(i){
  4. $(this).text(i+1);
  5. });
  6. }
  7. </script><#setting number_format="0">
  8. <#function getFieldList fieldList>
  9. <#assign rtn>
  10. <#assign index=0>
  11. <#list fieldList as field>
  12. <#if field.isHidden == 0 && field.controlType!= 2
  13. && field.controlType != 9 && field.controlType != 10
  14. && field.controlType != 12 && field.controlType != 20
  15. && field.controlType != 21 && field.controlType != 22>
  16. <#if index % 2 == 0>
  17. <tr>
  18. </#if>
  19. <td align="right" style="width:15%;" class="formTitle" nowrap="nowarp"><span>${field.fieldDesc}</span>:</td>
  20. <td style="width:35%;" class="formInput">
  21. <@input field=field/>
  22. </td>
  23. <#if index % 2 == 0 && !field_has_next>
  24. <td style="width:15%;" class="formTitle"></td>
  25. <td style="width:35%;" class="formInput"></td>
  26. </#if>
  27. <#if index % 2 == 1 || !field_has_next>
  28. </tr>
  29. </#if>
  30. <#assign index=index+1>
  31. </#if>
  32. </#list>
  33. <#--保持一行:多行文本框(2)、文件上传(9)、富文本框editor(10)、Office控件(12)、流程引用(20)、WebSign签章控件(21)、图片展示控件(22)-->
  34. <#list fieldList as field>
  35. <#if field.controlType == 2 || field.controlType == 9
  36. || field.controlType == 10 || field.controlType == 12
  37. || field.controlType == 20 || field.controlType == 21
  38. || field.controlType == 22>
  39. <tr>
  40. <td align="right" style="width:15%;" class="formTitle" nowrap="nowarp"><span>${field.fieldDesc}</span></td>
  41. <td style="width:35%;" class="formInput" colspan="3">
  42. <@input field=field/>
  43. </td>
  44. </tr>
  45. </#if>
  46. </#list>
  47. </#assign>
  48. <#return rtn>
  49. </#function>
  50. <#function setTeamField teams>
  51. <#assign rtn>
  52. <#list teams as team>
  53. <tr>
  54. <td colspan="4" class="teamHead">${team.teamName}</td>
  55. </tr>
  56. ${getFieldList(team.teamFields)}
  57. </#list>
  58. </#assign>
  59. <#return rtn>
  60. </#function>
  61. <br />
  62. <table cellpadding="2" cellspacing="0" border="1" class="formTable">
  63. <tr>
  64. <td colspan="4" class="formHead" >${table.tableDesc }</td>
  65. </tr>
  66. <#if teamFields??>
  67. <#if isShow>
  68. <#if showPosition == 1>
  69. ${setTeamField(teamFields)}
  70. ${getFieldList(fields)}
  71. <#else>
  72. ${getFieldList(fields)}
  73. ${setTeamField(teamFields)}
  74. </#if>
  75. <#else>
  76. ${setTeamField(teamFields)}
  77. </#if>
  78. <#else>
  79. ${getFieldList(fields)}
  80. </#if>
  81. </table>
  82. <br />