bestTemplate.zml 5.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <#def designatedPath="/allTemplate.htm"/>
  2. <script>
  3. <!--
  4. Z.onload(function()
  5. {
  6. doTemplateSearch("1");
  7. })
  8. function doTemplateSearch(page)
  9. {
  10. // 关键词搜索
  11. var keyword = Z("#searchinput").val() || "";
  12. var ajax = new Z.Ajax();
  13. ajax.setClassName("TemplatePresenter");
  14. ajax.setMethodName("doTemplateSearch");
  15. ajax.addParam("page", page);
  16. ajax.addParam("urlParam", "BEST");
  17. ajax.addParam("typeId", Z("#typeId").val());
  18. ajax.addParam("industryId", Z("#industryId").val());
  19. ajax.addParam("fileType", Z("#fileType").val());
  20. ajax.addParam("keyword", keyword);
  21. ajax.setCallback("resultWrap");
  22. ajax.setLoading("resultWrap");
  23. ajax.execute();
  24. }
  25. -->
  26. </script>
  27. ${Styles.src("/zinc/css/design_2018102301.css")}
  28. ${Scripts.src("/zinc/js/design_2018102301.js")}
  29. ${zhiqim_manager_breadcrumb_parent("/templateMy.htm", "我的模板", "精品模板")}
  30. ${zhiqim_manager_content()}
  31. <#-- 导航栏 -->
  32. <div class="z-tabnav-main z-blue z-mg-b20">
  33. <nav>
  34. <ul>
  35. <li onclick="Z.Location.href('templateMy.htm');">我的草稿模板</li>
  36. <li onclick="Z.Location.href('templateMy.htm');">我的订单模板</li>
  37. <li onclick="Z.Location.href('templateMy.htm');">我的模板</li>
  38. <li onclick="Z.Location.href('templateCollect.htm');">我收藏的</li>
  39. <li onclick="Z.Location.href('templateShare.htm');">分享给我的</li>
  40. <li onclick="Z.Location.href('allTemplate.htm');">所有模板</li>
  41. <li class="z-active">精品模板</li>
  42. <#if ZmrPathRule.check(request, "/templateAudit.htm")><li onclick="Z.Location.href('templateAudit.htm');">模板审核</li></#if>
  43. <#if ZmrPathRule.check(request, "/templateBestAudit.htm")><li onclick="Z.Location.href('templateBestAudit.htm');">精品审核</li></#if>
  44. <#if ZmrPathRule.check(request, "/desTemplateLogList.htm")><li onclick="Z.Location.href('desTemplateLogList.htm');">模版日志</li></#if>
  45. </ul>
  46. </nav>
  47. </div>
  48. <div class="z-mg-t20 z-h1 z-text-center" id="searchDiv">
  49. <span style="float:center;">
  50. <input id="searchinput" class="z-input z-w600 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="" maxlength="60"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="doTemplateSearch('1');"><i class="z-font z-query"></i>搜索</button>
  51. </span>
  52. </div>
  53. <table class="z-table z-bordered z-pd6">
  54. <input type="hidden" id="typeId" name="typeId" value="">
  55. <input type="hidden" id="industryId" name="industryId" value="">
  56. <input type="hidden" id="fileType" name="fileType" value="">
  57. <tr class="z-h40" bgcolor="${oddColor}">
  58. <td width="5%">类型:</td>
  59. <td width="*">
  60. <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>
  61. <#for item : DesignTypeDao.list()>
  62. <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>
  63. </#for>
  64. </td>
  65. </tr>
  66. <tr class="z-h40" bgcolor="#FFFFFF">
  67. <td>行业:</td>
  68. <td>
  69. <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>
  70. <#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
  71. <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>
  72. </#for>
  73. </td>
  74. </tr>
  75. <tr class="z-h40" bgcolor="${oddColor}">
  76. <td width="5%">文件格式:</td>
  77. <td width="*">
  78. <button type="button" data-options="group:fileType" class="z-button z-large z-bordered z-blue-bd z-hover z-active" onclick="Z.EL.toggleClass(this,'z-active');Z('#fileType').val('');doTemplateSearch('1');">全部</button>
  79. <button type="button" data-options="group:fileType" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#fileType').val('CDR');doTemplateSearch('1');">CDR</button>
  80. <button type="button" data-options="group:fileType" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#fileType').val('PSD');doTemplateSearch('1');">PSD</button>
  81. <button type="button" data-options="group:fileType" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#fileType').val('AI');doTemplateSearch('1');">AI</button>
  82. <button type="button" data-options="group:fileType" class="z-button z-large z-bordered z-blue-bd z-hover" onclick="Z.EL.toggleClass(this,'z-active');Z('#fileType').val('PDF');doTemplateSearch('1');">PDF</button>
  83. </td>
  84. </tr>
  85. </table>
  86. <div id="resultWrap"></div>
  87. ${zhiqim_manager_content_end()}