jspDivTemplate.ftl 1.6 KB

12345678910111213141516171819202122
  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="div" action="${entityName?uncap_first}Controller.do?save">
  11. <input id="id" name="id" type="hidden" value="${'$'}{${entityName?uncap_first}Page.id }">
  12. <fieldset class="step">
  13. <#list columns as po>
  14. <div class="form">
  15. <label class="Validform_label">${po.filedComment}:</label>
  16. <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> />
  17. <span class="Validform_checktip"></span>
  18. </div>
  19. </#list>
  20. </fieldset>
  21. </t:formvalid>
  22. </body>