jformhead.ftl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. <#--update-start--Author:luobaoli Date:20150614 for:表单(主表/单表)属性中增加了扩展参数 ${po.extend_json?if_exists}-->
  2. <div class="con-wrapper" id="con-wrapper0" style="display: none;">
  3. <input type="hidden" name="tableName" value="${tableName?if_exists?html}" >
  4. <input type="hidden" name="id" value="${data['${tableName}']['id']?if_exists?html}" >
  5. <#list columnhidden as po>
  6. <input type="hidden" id="${po.field_name}" name="${po.field_name}" value="${data['${tableName}']['${po.field_name}']?if_exists?html}" >
  7. </#list>
  8. <!-- tab内容 -->
  9. <div class="row">
  10. <div class="row form-wrapper">
  11. <#list columns as po>
  12. <#if po_index%2==0>
  13. <div class="row show-grid">
  14. </#if>
  15. <div class="col-xs-3 text-center">
  16. <b>${po.content}:</b>
  17. </div>
  18. <div class="col-xs-3">
  19. <#if head.isTree=='Y' && head.treeParentIdFieldName==po.field_name>
  20. <!--如果为树形菜单,父id输入框设置为select-->
  21. <input id="${po.field_name}" ${po.extend_json?if_exists} name="${po.field_name}" type="text"
  22. class="form-control easyui-combotree" value="${data['${tableName}']['${po.field_name}']?if_exists?html}"
  23. <#if po.operationCodesReadOnly?exists> readonly = "readonly"</#if>
  24. <#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  25. <#if po.file_must_input??><#if po.file_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"</#if><#elseif po.is_null != 'Y'> ignore="checked"<#else>ignore="ignore"</#if>
  26. <#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  27. <#if po.field_valid_type?if_exists?html != ''>
  28. datatype="${po.field_valid_type?if_exists?html}"
  29. <#else>
  30. <#if po.type == 'int'>
  31. datatype="n"
  32. <#elseif po.type=='double'>
  33. datatype="/^(-?\d+)(\.\d+)?$/"
  34. <#else>
  35. <#if po.is_null != 'Y'>datatype="*"</#if>
  36. </#if>
  37. </#if>
  38. data-options="
  39. panelHeight:'220',
  40. url: '${basePath}/cgAutoListController.do?datagrid&configId=${tableName?if_exists?html}&field=id,${head.treeFieldname}',
  41. loadFilter: function(data) {
  42. var rows = data.rows || data;
  43. var win = frameElement.api.opener;
  44. var listRows = win.getDataGrid().treegrid('getData');
  45. joinTreeChildren(rows, listRows);
  46. convertTreeData(rows, '${head.treeFieldname}');
  47. return rows;
  48. },
  49. onLoadSuccess: function() {
  50. var win = frameElement.api.opener;
  51. var currRow = win.getDataGrid().treegrid('getSelected');
  52. if(!'${id?if_exists?html}') {
  53. //增加时,选择当前父菜单
  54. if(currRow) {
  55. $('#${po.field_name}').combotree('setValue', currRow.id);
  56. }
  57. }else {
  58. //编辑时,选择当前父菜单
  59. if(currRow) {
  60. $('#${po.field_name}').combotree('setValue', currRow._parentId);
  61. }
  62. }
  63. }
  64. ">
  65. <#--update-end--Author:钟世云 Date:20150610 for:online支持树配置-->
  66. <#elseif po.show_type=='text'>
  67. <input id="${po.field_name}" ${po.extend_json?if_exists} name="${po.field_name}" type="text"
  68. class="form-control" value="${data['${tableName}']['${po.field_name}']?if_exists?html}"
  69. <#if po.operationCodesReadOnly?exists> readonly = "readonly"</#if>
  70. <#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  71. <#if po.file_must_input??><#if po.file_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"</#if><#elseif po.is_null != 'Y'> ignore="checked"<#else>ignore="ignore"</#if>
  72. <#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  73. <#if po.field_valid_type?if_exists?html != ''>
  74. datatype="${po.field_valid_type?if_exists?html}"
  75. <#else>
  76. <#if po.type == 'int'>
  77. datatype="n"
  78. <#elseif po.type=='double'>
  79. datatype="/^(-?\d+)(\.\d+)?$/"
  80. <#else>
  81. <#if po.is_null != 'Y'>datatype="*"</#if>
  82. </#if>
  83. </#if>>
  84. <#elseif po.show_type=='password'>
  85. <input id="${po.field_name}" ${po.extend_json?if_exists} name="${po.field_name}" type="password"
  86. class="form-control" value="${data['${tableName}']['${po.field_name}']?if_exists?html}"
  87. <#if po.operationCodesReadOnly?if_exists> readonly = "readonly"</#if>
  88. <#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  89. <#if po.file_must_input??><#if po.file_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"</#if><#elseif po.is_null != 'Y'> ignore="checked"<#else>ignore="ignore"</#if>
  90. <#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  91. <#if po.field_valid_type?if_exists?html != ''>
  92. datatype="${po.field_valid_type?if_exists?html}"
  93. <#else>
  94. <#if po.is_null != 'Y'>datatype="*"</#if>
  95. </#if>>
  96. <#elseif po.show_type=='radio'>
  97. <@DictData name="${po.dict_field?if_exists?html}" text="${po.dict_text?if_exists?html}" tablename="${po.dict_table?if_exists?html}" var="dataList">
  98. <#list dataList as dictdata>
  99. <input value="${dictdata.typecode?if_exists?html}" ${po.extend_json?if_exists} name="${po.field_name}" type="radio"
  100. <#-- update--begin--author:zhangjiaqiang Date:20170512 for:TASK #1910 【Online 校验】radio\checkbox\select 存在问题,没有根据选择校验规则校验 -->
  101. <#if dictdata_index==0>
  102. <#if po.field_valid_type?if_exists?html != ''>
  103. datatype="${po.field_valid_type?if_exists?html}"
  104. <#elseif po.is_null != 'Y'>
  105. datatype="*"
  106. </#if>
  107. <#if po.field_must_input?if_exists?html != ''><#if po.field_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"</#if><#elseif po.is_null != 'Y'> ignore="checked"<#else>ignore="ignore"</#if>
  108. </#if>
  109. <#-- update--end--author:zhangjiaqiang Date:20170512 for:TASK #1910 【Online 校验】radio\checkbox\select 存在问题,没有根据选择校验规则校验 -->
  110. <#if po.operationCodesReadOnly?if_exists>onclick="return false;"</#if>
  111. <#if dictdata.typecode?if_exists?html=="${data['${tableName}']['${po.field_name}']?if_exists?html}"> checked="true" </#if>>
  112. ${dictdata.typename?if_exists?html}
  113. </#list>
  114. </@DictData>
  115. <#elseif po.show_type=='checkbox'>
  116. <#assign checkboxstr>${data['${tableName}']['${po.field_name}']?if_exists?html}</#assign>
  117. <#assign checkboxlist=checkboxstr?split(",")>
  118. <@DictData name="${po.dict_field?if_exists?html}" text="${po.dict_text?if_exists?html}" tablename="${po.dict_table?if_exists?html}" var="dataList">
  119. <#list dataList as dictdata>
  120. <input value="${dictdata.typecode?if_exists?html}" ${po.extend_json?if_exists} name="${po.field_name}" type="checkbox"
  121. <#if po.operationCodesReadOnly?if_exists>onclick="return false;"</#if>
  122. <#-- update--begin--author:zhangjiaqiang Date:20170512 for:TASK #1910 【Online 校验】radio\checkbox\select 存在问题,没有根据选择校验规则校验 -->
  123. <#if dictdata_index==0>
  124. <#if po.field_valid_type?if_exists?html != ''>
  125. datatype="${po.field_valid_type?if_exists?html}"
  126. <#elseif po.is_null != 'Y'>
  127. datatype="*"
  128. </#if>
  129. <#if po.field_must_input?if_exists?html != ''><#if po.field_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"</#if><#elseif po.is_null != 'Y'> ignore="checked"<#else>ignore="ignore"</#if>
  130. </#if>
  131. <#-- update--end--author:zhangjiaqiang Date:20170512 for:TASK #1910 【Online 校验】radio\checkbox\select 存在问题,没有根据选择校验规则校验 -->
  132. <#list checkboxlist as x >
  133. <#if dictdata.typecode?if_exists?html=="${x?if_exists?html}"> checked="true" </#if></#list>>
  134. ${dictdata.typename?if_exists?html}
  135. </#list>
  136. </@DictData>
  137. <#elseif po.show_type=='list'>
  138. <@DictData name="${po.dict_field?if_exists?html}" text="${po.dict_text?if_exists?html}" tablename="${po.dict_table?if_exists?html}" var="dataList">
  139. <select id="${po.field_name}" ${po.extend_json?if_exists} class="form-control" name="${po.field_name}" <#if po.operationCodesReadOnly?if_exists>onfocus="this.defOpt=this.selectedIndex" onchange="this.selectedIndex=this.defOpt;"</#if>
  140. <#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  141. <#if po.field_must_input??><#if po.field_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"</#if></#if>
  142. <#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  143. <#-- update--begin--author:zhangjiaqiang Date:20170512 for:TASK #1910 【Online 校验】radio\checkbox\select 存在问题,没有根据选择校验规则校验 -->
  144. <#if po.field_valid_type?if_exists?html != ''>
  145. datatype="${po.field_valid_type?if_exists?html}"
  146. <#elseif po.is_null != 'Y'>
  147. datatype="*"
  148. </#if>>
  149. <#-- update--end--author:zhangjiaqiang Date:20170512 for:TASK #1910 【Online 校验】radio\checkbox\select 存在问题,没有根据选择校验规则校验 -->
  150. <#list dataList as dictdata>
  151. <option value="${dictdata.typecode?if_exists?html}"
  152. <#if dictdata.typecode?if_exists?html=="${data['${tableName}']['${po.field_name}']?if_exists?html}"> selected="selected" </#if>>
  153. ${dictdata.typename?if_exists?html}
  154. </option>
  155. </#list>
  156. </select>
  157. </@DictData>
  158. <#elseif po.show_type=='date'>
  159. <input id="${po.field_name}" ${po.extend_json?if_exists} name="${po.field_name}" type="text"
  160. value="${data['${tableName}']['${po.field_name}']?if_exists?html}"
  161. class="form-control" onClick="WdatePicker({<#if po.operationCodesReadOnly?if_exists> readonly = true</#if>})"
  162. <#if po.operationCodesReadOnly?exists> readonly = "readonly"</#if>
  163. <#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  164. <#if po.file_must_input??><#if po.file_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"</#if><#elseif po.is_null != 'Y'> ignore="checked"<#else>ignore="ignore"</#if>
  165. <#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  166. <#if po.field_valid_type?if_exists?html != ''>
  167. datatype="${po.field_valid_type?if_exists?html}"
  168. <#else>
  169. <#if po.is_null != 'Y'>datatype="*"</#if>
  170. </#if>>
  171. <#elseif po.show_type=='datetime'>
  172. <input id="${po.field_name}" ${po.extend_json?if_exists} name="${po.field_name}" type="text"
  173. value="${data['${tableName}']['${po.field_name}']?if_exists?html}"
  174. class="form-control" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'<#if po.operationCodesReadOnly?if_exists> ,readonly = true</#if>})"
  175. <#if po.operationCodesReadOnly?exists> readonly = "readonly"</#if>
  176. <#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  177. <#if po.file_must_input??><#if po.file_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"</#if><#elseif po.is_null != 'Y'> ignore="checked"<#else>ignore="ignore"</#if>
  178. <#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  179. <#if po.field_valid_type?if_exists?html != ''>
  180. datatype="${po.field_valid_type?if_exists?html}"
  181. <#else>
  182. <#if po.is_null != 'Y'>datatype="*"</#if>
  183. </#if>>
  184. <#elseif po.show_type=='popup'>
  185. <input id="${po.field_name}" ${po.extend_json?if_exists} name="${po.field_name}" type="text"
  186. class="form-control searchbox-inputtext"
  187. value="${data['${tableName}']['${po.field_name}']?if_exists?html}"
  188. <#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  189. <#if po.file_must_input??><#if po.file_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"</#if><#elseif po.is_null != 'Y'> ignore="checked"<#else>ignore="ignore"</#if>
  190. <#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  191. <#if po.operationCodesReadOnly?if_exists> readonly = "readonly"
  192. <#else>
  193. onClick="inputClick(this,'${po.dict_text?if_exists?html}','${po.dict_table?if_exists?html}');"
  194. </#if>
  195. <#if po.field_valid_type?if_exists?html != ''>
  196. datatype="${po.field_valid_type?if_exists?html}"
  197. <#else>
  198. <#if po.is_null != 'Y'>datatype="*"</#if>
  199. </#if>>
  200. <#elseif po.show_type=='file'>
  201. <table>
  202. <#list filesList as fileB>
  203. <#-- update--begin--author:zhangjiaqiang date:20170608 for:修订字段为小写 -->
  204. <#if fileB['field']?lower_case == po.field_name>
  205. <#-- update--end--author:zhangjiaqiang date:20170608 for:修订字段为小写 -->
  206. <tr style="height:34px;">
  207. <td>${fileB['title']}</td>
  208. <td><a href="${basePath}/commonController.do?viewFile&fileid=${fileB['fileKey']}&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity" title="下载">下载</a></td>
  209. <td><a href="javascript:void(0);" onclick="openwindow('预览','${basePath}/commonController.do?openViewFile&fileid=${fileB['fileKey']}&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity','fList',700,500)">预览</a></td>
  210. <td><a href="javascript:void(0)" class="jeecgDetail" onclick="del('${basePath}/cgUploadController.do?delFile&id=${fileB['fileKey']}',this)">删除</a></td>
  211. </tr>
  212. </#if>
  213. </#list>
  214. </table>
  215. <#if !(po.operationCodesReadOnly ??)>
  216. <div class="form jeecgDetail">
  217. <script type="text/javascript">
  218. var serverMsg="";
  219. var m = new Map();
  220. $(function(){$('#${po.field_name}').uploadify(
  221. {buttonText:'添加文件',
  222. auto:false,
  223. progressData:'speed',
  224. multi:true,
  225. height:25,
  226. overrideEvents:['onDialogClose'],
  227. fileTypeDesc:'文件格式:',
  228. queueID:'filediv_${po.field_name}',
  229. <#-- fileTypeExts:'*.rar;*.zip;*.doc;*.docx;*.txt;*.ppt;*.xls;*.xlsx;*.html;*.htm;*.pdf;*.jpg;*.gif;*.png', 页面弹出很慢解决 20170317 scott -->
  230. fileSizeLimit:'15MB',swf:'${basePath}/plug-in/uploadify/uploadify.swf',
  231. uploader:'${basePath}/cgUploadController.do?saveFiles&jsessionid='+$("#sessionUID").val()+'',
  232. onUploadStart : function(file) {
  233. var cgFormId=$("input[name='id']").val();
  234. $('#${po.field_name}').uploadify("settings", "formData", {'cgFormId':cgFormId,'cgFormName':'${tableName?if_exists?html}','cgFormField':'${po.field_name}'});} ,
  235. onQueueComplete : function(queueData) {
  236. var win = frameElement.api.opener;
  237. win.reloadTable();
  238. win.tip(serverMsg);
  239. frameElement.api.close();},
  240. onUploadSuccess : function(file, data, response) {var d=$.parseJSON(data);if(d.success){var win = frameElement.api.opener;serverMsg = d.msg;}},onFallback : function(){tip("您未安装FLASH控件,无法上传图片!请安装FLASH控件后再试")},onSelectError : function(file, errorCode, errorMsg){switch(errorCode) {case -100:tip("上传的文件数量已经超出系统限制的"+$('#${po.field_name}').uploadify('settings','queueSizeLimit')+"个文件!");break;case -110:tip("文件 ["+file.name+"] 大小超出系统限制的"+$('#${po.field_name}').uploadify('settings','fileSizeLimit')+"大小!");break;case -120:tip("文件 ["+file.name+"] 大小异常!");break;case -130:tip("文件 ["+file.name+"] 类型不正确!");break;}},
  241. onUploadProgress : function(file, bytesUploaded, bytesTotal, totalBytesUploaded, totalBytesTotal) { }});});
  242. </script><span id="file_uploadspan"><input type="file" name="${po.field_name}" id="${po.field_name}" /></span>
  243. </div>
  244. <div class="form" id="filediv_${po.field_name}"> </div>
  245. </#if>
  246. <#-- update--begin--author:zhangjiaqiang date:20170607 for:增加图片格式的上传 -->
  247. <#elseif po.show_type=='image'>
  248. <table>
  249. <#-- update--begin--author:zhangjiaqiang date:20170519 for:修订资源预览关联错误 -->
  250. <#list imageList as imageB>
  251. <#-- update--begin--author:zhangjiaqiang date:20170608 for:修订字段为小写 -->
  252. <#if imageB['field']?lower_case == po.field_name>
  253. <#-- update--end--author:zhangjiaqiang date:20170608 for:修订字段为小写 -->
  254. <tr style="height:34px;">
  255. <td>${imageB['title']}</td>
  256. <td><a href="${basePath}/commonController.do?viewFile&fileid=${imageB['fileKey']}&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity" title="下载">下载</a></td>
  257. <td><a href="javascript:void(0);" onclick="openwindow('预览','${basePath}/commonController.do?openViewFile&fileid=${imageB['fileKey']}&subclassname=org.jeecgframework.web.cgform.entity.upload.CgUploadEntity','fList',700,500)">预览</a></td>
  258. <td><a href="javascript:void(0)" class="jeecgDetail" onclick="del('${basePath}/cgUploadController.do?delFile&id=${imageB['fileKey']}',this)">删除</a></td>
  259. </tr>
  260. </#if>
  261. </#list>
  262. <#-- update--end--author:zhangjiaqiang date:20170519 for:修订资源预览关联错误 -->
  263. </table>
  264. <#if !(po.operationCodesReadOnly ??)>
  265. <div class="form jeecgDetail">
  266. <script type="text/javascript">
  267. var serverMsg="";
  268. var m = new Map();
  269. $(function(){$('#${po.field_name}').uploadify(
  270. {buttonText:'添加图片',
  271. auto:false,
  272. progressData:'speed',
  273. multi:true,
  274. height:25,
  275. overrideEvents:['onDialogClose'],
  276. fileTypeDesc:'图片格式:',
  277. queueID:'imagediv_${po.field_name}',
  278. fileTypeExts:'*.jpg;*.jpeg;*.gif;*.png;*.bmp',
  279. fileSizeLimit:'15MB',swf:'${basePath}/plug-in/uploadify/uploadify.swf',
  280. uploader:'${basePath}/cgUploadController.do?saveFiles&jsessionid='+$("#sessionUID").val()+'',
  281. onUploadStart : function(file) {
  282. var cgFormId=$("input[name='id']").val();
  283. $('#${po.field_name}').uploadify("settings", "formData", {'cgFormId':cgFormId,'cgFormName':'${tableName?if_exists?html}','cgFormField':'${po.field_name}'});} ,
  284. onQueueComplete : function(queueData) {
  285. var win = frameElement.api.opener;
  286. win.reloadTable();
  287. win.tip(serverMsg);
  288. frameElement.api.close();},
  289. onUploadSuccess : function(file, data, response) {var d=$.parseJSON(data);if(d.success){var win = frameElement.api.opener;serverMsg = d.msg;}},onFallback : function(){tip("您未安装FLASH控件,无法上传图片!请安装FLASH控件后再试")},onSelectError : function(file, errorCode, errorMsg){switch(errorCode) {case -100:tip("上传的文件数量已经超出系统限制的"+$('#${po.field_name}').uploadify('settings','queueSizeLimit')+"个文件!");break;case -110:tip("文件 ["+file.name+"] 大小超出系统限制的"+$('#${po.field_name}').uploadify('settings','fileSizeLimit')+"大小!");break;case -120:tip("文件 ["+file.name+"] 大小异常!");break;case -130:tip("文件 ["+file.name+"] 类型不正确!");break;}},
  290. onUploadProgress : function(file, bytesUploaded, bytesTotal, totalBytesUploaded, totalBytesTotal) { }});});
  291. </script><span id="image_uploadspan"><input type="file" name="${po.field_name}" id="${po.field_name}" /></span>
  292. </div>
  293. <div class="form" id="imagediv_${po.field_name}"> </div>
  294. </#if>
  295. <#-- update--end--author:zhangjiaqiang date:20170607 for:增加图片格式的上传 -->
  296. <#else>
  297. <input id="${po.field_name}" ${po.extend_json?if_exists} name="${po.field_name}" type="text"
  298. class="form-control" value="${data['${tableName}']['${po.field_name}']?if_exists?html}"
  299. <#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  300. <#if po.file_must_input??><#if po.file_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"</#if><#elseif po.is_null != 'Y'> ignore="checked"<#else>ignore="ignore"</#if>
  301. <#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  302. <#if po.field_valid_type?if_exists?html != ''>
  303. datatype="${po.field_valid_type?if_exists?html}"
  304. <#else>
  305. <#if po.type == 'int'>
  306. datatype="n"
  307. <#elseif po.type=='double'>
  308. datatype="/^(-?\d+)(\.\d+)?$/"
  309. <#else>
  310. <#if po.is_null != 'Y'>datatype="*"</#if>
  311. </#if>
  312. </#if>>
  313. </#if>
  314. <span class="Validform_checktip" style="float:left;height:0px;"></span>
  315. <label class="Validform_label" style="display: none">${po.content?if_exists?html}</label>
  316. </div>
  317. <#if (po_index%2==0)&&(!po_has_next)>
  318. <div class="col-xs-2 text-center"><b></b></div>
  319. <div class="col-xs-4"></div>
  320. </#if>
  321. <#if (po_index%2!=0)||(!po_has_next)>
  322. </div>
  323. </#if>
  324. </#list>
  325. <#list columnsarea as po>
  326. <div class="row show-grid">
  327. <div class="col-xs-3 text-center"><b>${po.content}:</b></div>
  328. <div class="col-xs-3">
  329. <textarea id="${po.field_name}" ${po.extend_json?if_exists} name="${po.field_name}"
  330. style="width: 600px;height:150px" <#if po.show_type!='umeditor'>class="form-control"</#if> rows="6"
  331. <#if po.operationCodesReadOnly?if_exists> readonly = "readonly"</#if>
  332. <#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  333. <#if po.file_must_input??><#if po.file_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"</#if></#if>
  334. <#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
  335. <#if po.field_valid_type?if_exists?html != ''>
  336. datatype="${po.field_valid_type?if_exists?html}"
  337. <#else>
  338. <#if po.is_null != 'Y'>datatype="*"</#if>
  339. </#if>>${data['${tableName}']['${po.field_name}']?if_exists?html}</textarea>
  340. <span class="Validform_checktip"></span>
  341. <label class="Validform_label" style="display: none;">${po.content?if_exists?html}</label>
  342. <#if po.show_type=='umeditor'>
  343. <script type="text/javascript">
  344. //实例化编辑器
  345. var ${po.field_name}_ue = UE.getEditor('${po.field_name}',{initialFrameWidth:${po.field_length}}).setHeight(260);
  346. </script>
  347. </#if>
  348. </div>
  349. </div>
  350. </#list>
  351. </div>
  352. </div>
  353. </div>
  354. <#--update-end--Author:luobaoli Date:20150614 for:表单(主表/单表)属性中增加了扩展参数 ${po.extend_json?if_exists}-->