templateCollect.zml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <#def designatedPath="/allTemplate.htm"/>
  2. <script>
  3. <!--
  4. Z.onload(function()
  5. {
  6. doTemplateSearch("1");
  7. })
  8. function doTemplateSearch(page)
  9. {
  10. var ajax = new Z.Ajax();
  11. ajax.setClassName("TemplatePresenter");
  12. ajax.setMethodName("doTemplateSearch");
  13. ajax.addParam("page", page);
  14. ajax.addParam("urlParam", "COLLECT");
  15. ajax.addParam("typeId", Z("#typeId").val());
  16. ajax.addParam("industryId", Z("#industryId").val());
  17. ajax.setCallback("resultWrap");
  18. ajax.setLoading("resultWrap");
  19. ajax.execute();
  20. }
  21. -->
  22. </script>
  23. ${Styles.src("/zinc/css/design_2018102301.css")}
  24. ${Scripts.src("/zinc/js/design_2018102301.js")}
  25. ${zhiqim_manager_breadcrumb("我的模板")}
  26. ${zhiqim_manager_content()}
  27. <#-- 导航栏 -->
  28. <div class="z-tabnav-main z-blue z-mg-b20">
  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 class="z-active">我收藏的</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 onclick="Z.Location.href('desTemplateLogList.htm');">模版日志</li></#if>
  41. </ul>
  42. </nav>
  43. </div>
  44. <table class="z-table z-bordered z-pd6">
  45. <input type="hidden" id="typeId" name="typeId" value="">
  46. <input type="hidden" id="industryId" name="industryId" value="">
  47. <tr class="z-h40" bgcolor="${oddColor}">
  48. <td width="5%">类型:${typeId}</td>
  49. <td width="*">
  50. <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>
  51. <#for item : DesignTypeDao.listTemmplate()>
  52. <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>
  53. </#for>
  54. </td>
  55. </tr>
  56. <tr class="z-h40" bgcolor="#FFFFFF">
  57. <td>行业:</td>
  58. <td>
  59. <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>
  60. <#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
  61. <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>
  62. </#for>
  63. </td>
  64. </tr>
  65. </table>
  66. <div id="resultWrap"></div>
  67. ${zhiqim_manager_content_end()}