templateAudit.zml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <#def designatedPath="/allTemplate.htm"/>
  2. <script>
  3. Z.onload(function()
  4. {//定义搜索框
  5. doTemplateSearch("1");
  6. })
  7. function doTemplateSearch(page)
  8. {
  9. var templateType = Z("#searchTemplateType").val();
  10. if(!templateType){
  11. templateType = 20;
  12. }
  13. var ajax = new Z.Ajax();
  14. ajax.setClassName("TemplatePresenter");
  15. ajax.setMethodName("doTemplateAuditSearch");
  16. ajax.addParam("page", page);
  17. ajax.addParam("urlParam", "AUDIT");
  18. ajax.addParam("typeId", Z("#typeId").val());
  19. ajax.addParam("industryId", Z("#industryId").val());
  20. ajax.addParam("templateType", templateType);
  21. ajax.setCallback("resultWrap");
  22. ajax.setLoading("resultWrap");
  23. ajax.execute();
  24. }
  25. function bestConfirmItemAdd(e, value, type)
  26. {//确认
  27. Z.E.forbidden(e);
  28. var ajax = new Z.Ajax();
  29. ajax.setClassName("TemplatePresenter");
  30. ajax.setMethodName("doTemplateBestAudit");
  31. ajax.addParam(value)
  32. ajax.addParam(type);
  33. ajax.setFailureAlert();
  34. ajax.setSuccess(function(){doTemplateSearch("1");});
  35. ajax.execute();
  36. }
  37. function templateConfirmItemAdd(e, value, type)
  38. {//确认
  39. Z.E.forbidden(e);
  40. var ajax = new Z.Ajax();
  41. ajax.setClassName("TemplatePresenter");
  42. ajax.setMethodName("doTemplateAudit");
  43. ajax.addParam(value)
  44. ajax.addParam(type);
  45. ajax.setFailureAlert();
  46. ajax.setSuccess(function(){ doTemplateSearch("1");});
  47. ajax.execute();
  48. }
  49. function bestCancelItemAdd(e, value, type)
  50. {//取消
  51. Z.E.forbidden(e);
  52. var ajax = new Z.Ajax();
  53. ajax.setClassName("TemplatePresenter");
  54. ajax.setMethodName("doTemplateBestAudit");
  55. ajax.addParam(value)
  56. ajax.addParam(type);
  57. ajax.setFailureAlert();
  58. ajax.setSuccess(function(){doTemplateSearch("1");});
  59. ajax.execute();
  60. }
  61. function templateCancelItemAdd(e, value, type)
  62. {//取消
  63. Z.E.forbidden(e);
  64. var ajax = new Z.Ajax();
  65. ajax.setClassName("TemplatePresenter");
  66. ajax.setMethodName("doTemplateAudit");
  67. ajax.addParam(value)
  68. ajax.addParam(type);
  69. ajax.setFailureAlert();
  70. ajax.setSuccess(function(){doTemplateSearch("1");});
  71. ajax.execute();
  72. }
  73. </script>
  74. ${Styles.src("/zinc/css/design_2018102301.css")}
  75. ${Scripts.src("/zinc/js/design_2018102301.js")}
  76. ${zhiqim_manager_breadcrumb_parent("/templateMy.htm", "我的模板", "模板审核")}
  77. ${zhiqim_manager_content()}
  78. <#-- 导航栏 -->
  79. <div class="z-tabnav-main z-blue z-mg-b20">
  80. <nav>
  81. <ul>
  82. <li onclick="Z.Location.href('templateDraftMy.htm');">我的订单草稿</li>
  83. <li onclick="Z.Location.href('templateOrderMy.htm');">我的订单模板</li>
  84. <li onclick="Z.Location.href('templateMy.htm');">我的模板</li>
  85. <li onclick="Z.Location.href('templateCollect.htm');">我收藏的</li>
  86. <li onclick="Z.Location.href('templateShare.htm');">分享给我的</li>
  87. <li onclick="Z.Location.href('allTemplate.htm');">所有模板</li>
  88. <!-- <li onclick="Z.Location.href('bestTemplate.htm');">精品模板</li> -->
  89. <#if ZmrPathRule.check(request, "/templateAudit.htm")><li class="z-active">模板审核</li></#if>
  90. <!-- <#if ZmrPathRule.check(request, "/templateBestAudit.htm")><li onclick="Z.Location.href('templateBestAudit.htm');">精品审核</li></#if> -->
  91. <#if ZmrPathRule.check(request, "/desTemplateLogList.htm")><li onclick="Z.Location.href('desTemplateLogList.htm');">模版日志</li></#if>
  92. </ul>
  93. </nav>
  94. </div>
  95. <table class="z-table z-bordered z-pd6">
  96. <input type="hidden" id="typeId" name="typeId" value="">
  97. <input type="hidden" id="industryId" name="industryId" value="">
  98. <input type="hidden" id="searchTemplateType" name="searchTemplateType" value="">
  99. <tr class="z-h40" bgcolor="${oddColor}">
  100. <td width="5%">类型:${typeId}</td>
  101. <td width="*">
  102. <button type="button" data-options="group:typeId" class="z-button z-large z-bordered z-blue-bd z-hover <#if typeId == -1 || Validates.isEmpty(typeId)>z-active</#if>" onclick="{Z(this).toggleClass('z-active');Z('#typeId').val('');};doTemplateSearch('1');">全部</button>
  103. <#for item : DesignTypeDao.list()>
  104. <button type="button" data-options="group:typeId" class="z-button z-large z-bordered z-blue-bd z-hover z-mg-t3 <#if item.getTypeId() == typeId>z-active</#if>" onclick="{Z(this).toggleClass('z-active');Z('#typeId').val(${item.getTypeId()});};doTemplateSearch('1');">${item.getTypeName()}</button>
  105. </#for>
  106. </td>
  107. </tr>
  108. <tr class="z-h40" bgcolor="#FFFFFF">
  109. <td>行业:</td>
  110. <td>
  111. <button type="button" data-options="group:industryId" class="z-button z-large z-bordered z-blue-bd z-hover <#if industryId == -1 || Validates.isEmpty(industryId)>z-active</#if>" onclick="{Z(this).toggleClass('z-active');Z('#industryId').val('');};doTemplateSearch('1');">全部</button>
  112. <#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
  113. <button type="button" data-options="group:industryId" class="z-button z-large z-bordered z-blue-bd z-hover z-mg-t3 <#if item.getIndustryId() == industryId>z-active</#if>" onclick="{Z(this).toggleClass('z-active');Z('#industryId').val(${item.getIndustryId()});};doTemplateSearch('1');">${item.getIndustryName()}</button>
  114. </#for>
  115. </td>
  116. </tr>
  117. <tr class="z-h40" bgcolor="#FFFFFF">
  118. <td>审核类型:</td>
  119. <td>
  120. <button type="button" data-options="group:searchTemplateType" class="z-button z-large z-bordered z-blue-bd z-hover z-active" onclick="{Z(this).toggleClass('z-active');Z('#searchTemplateType').val(20);};doTemplateSearch('1');">普通审核</button>
  121. <button type="button" data-options="group:searchTemplateType" class="z-button z-large z-bordered z-blue-bd z-hover z-mg-t3" onclick="{Z(this).toggleClass('z-active');Z('#searchTemplateType').val(100);};doTemplateSearch('1');">精品审核</button>
  122. </td>
  123. </tr>
  124. </table>
  125. <div id="resultWrap"></div>
  126. ${zhiqim_manager_content_end()}