config.zml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <#-------------------------------------------------------------------------->
  2. <#-----知启蒙全局变量定义(统一使用zhiqim前缀)--------------------------------->
  3. <#-------------------------------------------------------------------------->
  4. <#var zhiqim.css = context.getRootPath("/service/res/zhiqim_v1.5.0.r2019010101.css")/>
  5. <#var zhiqim.js = new ZmrCdnRuntime(context, "/service/res/zhiqim_v1.5.0.r2019010101.min.js")/>
  6. <#var zhiqim.mobile.css= context.getRootPath("/service/res/zhiqim.mobile_v1.5.0.r2019010101.css")/>
  7. <#var zhiqim.mobile.js= new ZmrCdnRuntime(context, "/service/res/zhiqim.mobile_v1.5.0.r2019010101.min.js")/>
  8. <#var zhiqim_iframenav.js = new ZmrCdnRuntime(context, "/ztmpl/zhiqim_manager/zhiqim_iframenav_v1.5.0.r2019010101.js")/>
  9. <#var jsencrypt.js = new ZmrCdnRuntime(context, "/ztmpl/zhiqim_manager/jsencrypt.js")/>
  10. <#-------------------------------------------------------------------------->
  11. <#-----知启蒙管理台变量定义(统一使用zmr前缀)---------------------------------->
  12. <#-------------------------------------------------------------------------->
  13. <#--分页显示默认条数-->
  14. <#var zmr_page_size = 20/>
  15. <#--脚注标注-->
  16. <#var zmr_copyname = "2021&nbsp;秒绘科技"/>
  17. <#var zmr_copyright = "Copyright&nbsp;&nbsp;&copy;&nbsp;"+zmr_copyname+"&nbsp;All&nbsp;Rights&nbsp;Reserved"/>
  18. <#-------------------------------------------------------------------------->
  19. <#-------知启蒙管理台函数定义(统一使用zhiqim_manager前缀)--------------------->
  20. <#-------------------------------------------------------------------------->
  21. <#--头部定义返回历史连接-->
  22. <#function zhiqim_manager_history(url)>
  23. <script>
  24. function returnHistory()
  25. {
  26. window.location.href = "${url}";
  27. }
  28. </script>
  29. </#function>
  30. <#--主体内容-->
  31. <#function zhiqim_manager_content()>
  32. <div class="content">
  33. </#function>
  34. <#--主体内容结束-->
  35. <#function zhiqim_manager_content_end()>
  36. </div>
  37. </#function>
  38. <#--显示标题-->
  39. <#function zhiqim_manager_title(name)>
  40. <table class="z-table z-bordered zi-bd-b-none z-pd10">
  41. <tr class="z-h40" style="background-color:${zmr_title_bgcolor}">
  42. <td class="z-bold z-px15">${name}</td>
  43. </tr>
  44. </table>
  45. </#function>
  46. <#--显示无记录信息-->
  47. <#function zhiqim_manager_no_record(colspan, desc)>
  48. <tr class="zi-h60 zi-text-center z-bg-white">
  49. <td colspan="${colspan}">${desc}</td>
  50. </tr>
  51. </#function>
  52. <#--显示无记录信息-->
  53. <#function zhiqim_manager_tr_no_record(result, colspan, desc)>
  54. <#if result.isEmpty()>
  55. <tr class="zi-h60 z-bg-white z-text-center">
  56. <td colspan="${colspan}">${desc}</td>
  57. </tr>
  58. </#if>
  59. </#function>
  60. <#--显示tr标题-->
  61. <#function zhiqim_manager_tr_title(colspan, name)>
  62. <tr class="zi-h40">
  63. <td class="z-bold z-px15 zi-pd-l5 z-text-left" colspan="${colspan}">${name}</td>
  64. </tr>
  65. </#function>
  66. <#--判断列表背景分隔颜色-->
  67. <#function zhiqim_manager_tr_bg(index)>
  68. <#if index % 2 == 0>${zmr_tr_odd_bgcolor}<#else>${zmr_tr_even_bgcolor}</#if>
  69. </#function>
  70. <#--列表行移入移出颜色变化-->
  71. <#function zhiqim_manager_tr_onmouse()>
  72. onmouseover="Z(this).css('background-color', '${zmr_tr_over_bgcolor}')" onmouseout="Z(this).css('background-color', '${zmr_tr_even_bgcolor}')"
  73. </#function>
  74. <#--列表行点击选中单选按钮-->
  75. <#function zhiqim_manager_tr_click_radio()>
  76. onclick="Z(this).find('td:first-child > zcover > i.z-radio').click();"
  77. </#function>
  78. <#--列表行点击选中多选按钮-->
  79. <#function zhiqim_manager_tr_click_checkbox()>
  80. onclick="Z(this).find('td:first-child > zcover > i.z-checkbox').click();"
  81. </#function>
  82. <#--显示记录脚注-->
  83. <#function zhiqim_manager_list(size)>
  84. <table class="z-table z-bordered zi-bd-t-none z-bg-white">
  85. <tr class="z-h40">
  86. <td class="zi-pd-r10 z-text-right">共&nbsp;<span class="z-color-red">${size}</span>&nbsp;条数据</td>
  87. </tr>
  88. </table>
  89. </#function>
  90. <#--显示返回上一页-->
  91. <#function zhiqim_manager_return()>
  92. <table class="z-table z-bordered zi-bd-t-none z-pd10 z-bg-white">
  93. <tr class="z-h60">
  94. <td><a href="javascript:returnHistory();">返回上一页</a></td>
  95. </tr>
  96. </table>
  97. </#function>
  98. <#--显示返回上一页和提交-->
  99. <#function zhiqim_manager_submit()>
  100. <table class="z-table zi-bd zi-bd-t-none z-pd10 z-bg-white">
  101. <tr class="z-h80">
  102. <td width="40%"><a href="javascript:returnHistory();">返回上一页</a></td>
  103. <td width="*"><button type="submit" class="z-button z-large z-w150 ${zmr_color_class}">提交</button></td>
  104. </tr>
  105. </table>
  106. </#function>
  107. <#--显示返回上一页和提交带参数-->
  108. <#function zhiqim_manager_submit_onclick(onclick)>
  109. <table class="z-table zi-bd zi-bd-t-none z-pd10 z-bg-white">
  110. <tr class="z-h80">
  111. <td width="40%"><a href="javascript:returnHistory();">返回上一页</a></td>
  112. <td width="*"><button type="button" class="z-button z-large z-w150 ${zmr_color_class}" onclick="${onclick}">提交</button></td>
  113. </tr>
  114. </table>
  115. </#function>
  116. <#-------------------------------------------------------------------------->
  117. <#-------知启蒙管理台预定义函数定义------------------------------------------->
  118. <#-------------------------------------------------------------------------->
  119. <#--topnav左边区域自定义块-->
  120. <#function zhiqim_manager_topnav_left_defined()>
  121. </#function>
  122. <#--topnav右边区域自定义块-->
  123. <#function zhiqim_manager_topnav_right_defined()>
  124. </#function>