templateBestAudit.zml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <#def designatedPath="/allTemplate.htm"/>
  2. <script>
  3. Z.onload(function()
  4. {//定义搜索框
  5. doTemplateSearch("1");
  6. })
  7. function doTemplateSearch(page)
  8. {
  9. var ajax = new Z.Ajax();
  10. ajax.setClassName("TemplatePresenter");
  11. ajax.setMethodName("doTemplateAuditSearch");
  12. ajax.addParam("page", page);
  13. ajax.addParam("urlParam", "BEST_AUDIT");
  14. ajax.addParam("typeId", Z("#typeId").val());
  15. ajax.addParam("industryId", Z("#industryId").val());
  16. ajax.setCallback("resultWrap");
  17. ajax.setLoading("resultWrap");
  18. ajax.execute();
  19. }
  20. function confirmItemAdd(e, value, type)
  21. {//确认
  22. Z.E.forbidden(e);
  23. var ajax = new Z.Ajax();
  24. ajax.setClassName("TemplatePresenter");
  25. ajax.setMethodName("doTemplateBestAudit");
  26. ajax.addParam(value)
  27. ajax.addParam(type);
  28. ajax.setFailureAlert();
  29. ajax.setSuccess(function(){doTemplateSearch("1");});
  30. ajax.execute();
  31. }
  32. function cancelItemAdd(e, value, type)
  33. {//取消
  34. Z.E.forbidden(e);
  35. var ajax = new Z.Ajax();
  36. ajax.setClassName("TemplatePresenter");
  37. ajax.setMethodName("doTemplateBestAudit");
  38. ajax.addParam(value)
  39. ajax.addParam(type);
  40. ajax.setFailureAlert();
  41. ajax.setSuccess(function(){doTemplateSearch("1");});
  42. ajax.execute();
  43. }
  44. </script>
  45. ${Styles.src("/zinc/css/design_2018102301.css")}
  46. ${Scripts.src("/zinc/js/design_2018102301.js")}
  47. ${zhiqim_manager_breadcrumb_parent("/templateMy.htm", "我的模板", "精品审核")}
  48. ${zhiqim_manager_content()}
  49. <#-- 导航栏 -->
  50. <div class="z-tabnav-main z-blue z-mg-b20">
  51. <nav>
  52. <ul>
  53. <li onclick="Z.Location.href('templateDraftMy.htm');">我的订单草稿</li>
  54. <li onclick="Z.Location.href('templateOrderMy.htm');">我的订单模板</li>
  55. <li onclick="Z.Location.href('templateMy.htm');">我的模板</li>
  56. <li onclick="Z.Location.href('templateCollect.htm');">我收藏的</li>
  57. <li onclick="Z.Location.href('templateShare.htm');">分享给我的</li>
  58. <li onclick="Z.Location.href('allTemplate.htm');">所有模板</li>
  59. <li onclick="Z.Location.href('bestTemplate.htm');">精品模板</li>
  60. <#if ZmrPathRule.check(request, "/templateAudit.htm")><li onclick="Z.Location.href('templateAudit.htm');">模板审核</li></#if>
  61. <#if ZmrPathRule.check(request, "/templateBestAudit.htm")><li class="z-active">精品审核</li></#if>
  62. <#if ZmrPathRule.check(request, "/desTemplateLogList.htm")><li onclick="Z.Location.href('desTemplateLogList.htm');">模版日志</li></#if>
  63. </ul>
  64. </nav>
  65. </div>
  66. <table class="z-table z-bordered z-pd6">
  67. <input type="hidden" id="typeId" name="typeId" value="">
  68. <input type="hidden" id="industryId" name="industryId" value="">
  69. <tr class="z-h40" bgcolor="${oddColor}">
  70. <td width="5%">类型:</td>
  71. <td width="*">
  72. <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>
  73. <#for item : DesignTypeDao.list()>
  74. <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>
  75. </#for>
  76. </td>
  77. </tr>
  78. <tr class="z-h40" bgcolor="#FFFFFF">
  79. <td>行业:</td>
  80. <td>
  81. <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>
  82. <#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
  83. <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>
  84. </#for>
  85. </td>
  86. </tr>
  87. </table>
  88. <div id="resultWrap"></div>
  89. ${zhiqim_manager_content_end()}