function.zml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <#var list = new FArrayListS()/>
  2. @{list.add("11111")}
  3. @{list.add("222222")}
  4. <#function showList(list)>
  5. <table border="1">
  6. <#for item : list>
  7. ${showChild(item)}
  8. </#for>
  9. </table>
  10. </#function>
  11. <#function showChild(item)>
  12. <tr>
  13. <td>${item}</td>
  14. </tr>
  15. </#function>
  16. <!DOCTYPE html>
  17. <html>
  18. <head>
  19. <title>${name}</title>
  20. <meta charset="UTF-8">
  21. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  22. ${name}
  23. ${Styles.src("/service/res/fadfox_2016100801.css")}
  24. ${Scripts.src("/service/res/fadfox_2016100801.min.js")}
  25. ${Styles.htmlOverflowHidden()}
  26. <#function abc()>
  27. dass
  28. dddf
  29. </#function>
  30. <script>
  31. <!--
  32. function doRefreshVcode()
  33. {
  34. F("#vcode").attr("src", "/service/vcode.jpg?time=" + new Date().getTime());
  35. }
  36. function doRememberCode(rememberPass)
  37. {
  38. if (rememberPass.checked)
  39. {
  40. F("#check").checked = true;
  41. F("[data-id=check]").addClass("f-active");
  42. }
  43. }
  44. //-->
  45. </script>
  46. ${abc()}
  47. </head>
  48. ${abc()}333
  49. <body onload="theForm.operatorCode.focus()" style="background-color:#dce2f1;">
  50. ${showList()}
  51. <table class="f-table f-float-center fi-w500" style="margin-top:100px;">
  52. <tr>
  53. <td>
  54. <form name="theForm" method="post" action="${loginUrl}" onsubmit="return validateForm(this);">
  55. <input type="password" style="display:none">
  56. <table class=" f-table f-bordered f-px14 f-float-center f-pd6" style="background-color:#f1f3f5">
  57. <tr>
  58. <th colspan="2" height="40" class="f-bold f-text-white fi-px20" style="border:1px solid #4455aa;border-bottom:none;background-color:#4455aa">${name}</th>
  59. </tr>
  60. <tr>
  61. <td width="150" align="right">登录名:</td>
  62. <td width="*">
  63. <input name="operatorCode" type="text" class="f-input f-large ${styleColor}" value="${operatorCode}" maxlength="32"<#if !hasAutoComplete> autocomplete="off"</#if>>&nbsp;&nbsp;
  64. <input data-role="f-checkbox" data-class="f-blue" id="check" type="checkbox" name="rememberCode" <#if Validates.isNotEmpty(operatorCode)>checked</#if>>&nbsp;&nbsp;记住用户名
  65. </td>
  66. </tr>
  67. <tr>
  68. <td align="right">密&nbsp;&nbsp;&nbsp;码:</td>
  69. <td>
  70. <input name="operatorPass" type="password" class="f-input f-large ${styleColor}" value="${operatorPass}" maxlength="32"<#if !hasAutoComplete> autocomplete="off"</#if>>&nbsp;&nbsp;
  71. <input data-role="f-checkbox" data-class="f-blue" type="checkbox" name="rememberPass" onclick="doRememberCode(this);" <#if Validates.isNotEmpty(operatorPass)>checked</#if>/>&nbsp;&nbsp;记住密码
  72. </td>
  73. </tr>
  74. <tr class="f-h50">
  75. <td colspan="2" align="center" bgcolor="#ffffff"><button type="submit" class="f-button f-blue f-w200 f-h40"><span class="f-px16">登录</span></button></td>
  76. </tr>
  77. </table>
  78. </form>
  79. </td>
  80. </tr>
  81. </table>
  82. </body>
  83. </html>