desTemplateLogList.zml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <script>
  2. function validateForm(form)
  3. {
  4. if (Z.V.isEmpty(form.mediaId.value))
  5. {
  6. Z.tips({text:"请输入模版号", width: 150});
  7. return false;
  8. }
  9. return true;
  10. }
  11. function doTemplateCopy(mediaId)
  12. {//复制
  13. var ajax = new Z.Ajax();
  14. ajax.setClassName("TemplatePresenter");
  15. ajax.setMethodName("doTemplateCopy");
  16. ajax.addParam("mediaId", mediaId);
  17. ajax.setFailureAlert();
  18. ajax.setSuccess(function(){
  19. Z.tips("复制成功");
  20. });
  21. ajax.setLoading(document, true);
  22. ajax.execute();
  23. }
  24. </script>
  25. ${zhiqim_manager_breadcrumb("模版日志")}
  26. ${zhiqim_manager_content()}
  27. <#-- 导航 -->
  28. <div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
  29. <nav>
  30. <ul>
  31. <li onclick="Z.Location.href('templateDraftMy.htm');">我的草稿模板</li>
  32. <li onclick="Z.Location.href('templateOrderMy.htm');">我的订单模板</li>
  33. <li onclick="Z.Location.href('templateMy.htm');">我的模板</li>
  34. <li onclick="Z.Location.href('templateCollect.htm');">我收藏的</li>
  35. <li onclick="Z.Location.href('templateShare.htm');">分享给我的</li>
  36. <li onclick="Z.Location.href('allTemplate.htm');">所有模板</li>
  37. <!-- <li onclick="Z.Location.href('bestTemplate.htm');">精品模板</li> -->
  38. <#if ZmrPathRule.check(request, "/templateAudit.htm")><li onclick="Z.Location.href('templateAudit.htm');">模板审核</li></#if>
  39. <!-- <#if ZmrPathRule.check(request, "/templateBestAudit.htm")><li onclick="Z.Location.href('templateBestAudit.htm');">精品审核</li></#if> -->
  40. <#if ZmrPathRule.check(request, "/desTemplateLogList.htm")><li class="z-active">模版日志</li></#if>
  41. </ul>
  42. </nav>
  43. </div>
  44. <#-- 查询条件 -->
  45. ${zhiqim_manager_title("模版日志查询")}
  46. <form name="theForm" method="post" onsubmit="return validateForm(this);">
  47. <table class="z-table z-bordered z-bg-white z-pd6">
  48. <tr>
  49. <td>
  50. <select name="queryType" class="z-select z-w180" data-role="z-select" data-class="${zmr_color_class}">
  51. <option value="0" <#if queryType == 0>selected</#if>>审核日志</option>
  52. <option value="1" <#if queryType == 1>selected</#if>>模板查询</option>
  53. </select>
  54. &nbsp;&nbsp;模版号:<input class="z-input ${zmr_color_class} z-w200" name="mediaId" value="${mediaId}" maxlength="20" placeholder="模版号">
  55. <button type="submit" class="z-button z-large z-w120 z-mg-l20 z-mg-r15 ${zmr_color_class}">查询</button><button class="z-button z-large" type="button" onclick="Z.FM.clearForm(this.form);">清空</button>
  56. </td>
  57. </tr>
  58. </table>
  59. </form>
  60. <#-- 列表 -->
  61. <table class="z-table z-bordered z-h40-tr zi-bd z-pd5 z-bg-white z-text-center z-mg-t20" >
  62. <tr bgcolor="${zmr_thead_bgcolor}">
  63. <td width="20%">模版号</td>
  64. <td width="20%">审核人</td>
  65. <td width="*">描述</td>
  66. <td width="20%">操作时间</td>
  67. </tr>
  68. ${zhiqim_manager_tr_no_record(pageResult, 4, "暂时没有模版日志信息")}
  69. <#for item : pageResult.list()>
  70. <tr ${zhiqim_manager_tr_onmouse()}>
  71. <td>${item.getMediaId()}</td>
  72. <td>${item.getOperatorCode()}</td>
  73. <td>${item.getLogDesc()}</td>
  74. <td><#if queryType == 0>${Sqls.toDateTimeString(item.getCreateTime())}<#else><button type="button" class="z-button z-blue" onclick="doTemplateCopy('${item.getMediaId()}')">复制模板</button></#if></td>
  75. </tr>
  76. </#for>
  77. </table>
  78. ${zhiqim_manager_paging(pageResult, "desTemplateLogList.htm")}
  79. ${zhiqim_manager_content_end()}