page.ftl 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <#--后台的UI界面通用区域定义-->
  2. <#macro html5 width="100%" style="">
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <#include "/include/macro.ftl"/>
  7. <#include "/include/meta.ftl"/>
  8. </head>
  9. <body>
  10. <div class="ms-content">
  11. <div class="ms-content-body" style="width:${width};${style}">
  12. <#nested/>
  13. <div class='notifications ms-notifications top-right'></div>
  14. </div>
  15. </div>
  16. </body>
  17. </html>
  18. </#macro>
  19. <#macro nav title="板块名称" back=false style="">
  20. <div class="ms-content-body-title" style="${style}">
  21. <strong>${title}</strong>
  22. <#nested/>
  23. <#if back>
  24. <@ms.backButton/>
  25. </#if>
  26. </div>
  27. </#macro>
  28. <#--面板-->
  29. <#macro panel style="">
  30. <div class="ms-content-body-panel" style="${style}">
  31. <#nested/>
  32. </div>
  33. </#macro>
  34. <#--面板导航-->
  35. <#macro panelNav empty=false>
  36. <div class="ms-content-body-panel-nav" <#if empty>style=" padding: 0;"</#if>>
  37. <#nested/>
  38. </div>
  39. </#macro>
  40. <#--提示-->
  41. <#macro notify msg="提示信息" type="warning">
  42. $('.ms-notifications').offset({top:43}).notify({
  43. type:'${type}',
  44. message: { text:'${msg}' }
  45. }).show();
  46. </#macro>