jspTableTemplate.ftl 1.8 KB

12345678910111213141516171819202122232425262728
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>${ftl_description}</title>
  7. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  8. </head>
  9. <body style="overflow-y: hidden" scroll="no">
  10. <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="${entityName?uncap_first}Controller.do?save">
  11. <input id="id" name="id" type="hidden" value="${'$'}{${entityName?uncap_first}Page.id }">
  12. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  13. <#list columns as po>
  14. <tr>
  15. <td align="right">
  16. <label class="Validform_label">
  17. ${po.filedComment}:
  18. </label>
  19. </td>
  20. <td class="value">
  21. <input <#if po.classType=='easyui-datetimebox'>class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width: 150px"<#elseif po.classType=='easyui-datebox'>class="Wdate" onClick="WdatePicker()" style="width: 150px"<#else>class="${po.classType}"</#if> id="${po.fieldName}" name="${po.fieldName}" <#if po.nullable == 'Y'>ignore="ignore"</#if> <#if po.fieldType?index_of("time")!=-1> value="<fmt:formatDate value='${'$'}{${entityName?uncap_first}Page.${po.fieldName}}' type="date" pattern="yyyy-MM-dd hh:mm:ss"/>"<#else><#if po.fieldType?index_of("date")!=-1>value="<fmt:formatDate value='${'$'}{${entityName?uncap_first}Page.${po.fieldName}}' type="date" pattern="yyyy-MM-dd"/>"<#else>value="${'$'}{${entityName?uncap_first}Page.${po.fieldName}}"</#if></#if><#if po.optionType?trim?length !=0> datatype="${po.optionType}"</#if> />
  22. <span class="Validform_checktip"></span>
  23. </td>
  24. </tr>
  25. </#list>
  26. </table>
  27. </t:formvalid>
  28. </body>