templateDraftMy.zml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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("doSearchOrderTemplate");
  13. ajax.addParam("page", page);
  14. ajax.addParam("urlParam", "DRAFT");
  15. ajax.addParam("typeId", Z("#typeId").val());
  16. ajax.addParam("industryId", Z("#industryId").val());
  17. ajax.addParam("q", Z("#q").val());
  18. ajax.setCallback("resultWrap");
  19. ajax.setLoading("resultWrap");
  20. ajax.execute();
  21. }
  22. -->
  23. </script>
  24. ${Styles.src("/zinc/css/design_2018102301.css")}
  25. ${Scripts.src("/zinc/js/design_2018102301.js")}
  26. ${zhiqim_manager_breadcrumb_parent("/templateMy.htm", "我的模板", " 我的订单草稿")}
  27. ${zhiqim_manager_content()}
  28. <#-- 导航栏 -->
  29. <div class="z-tabnav-main z-blue z-mg-b20">
  30. <nav>
  31. <ul>
  32. <li class="z-active">我的订单草稿</li>
  33. <li onclick="Z.Location.href('templateOrderMy.htm');">我的订单模板</li>
  34. <li onclick="Z.Location.href('templateMy.htm');">我的模板</li>
  35. <li onclick="Z.Location.href('templateCollect.htm');">我收藏的</li>
  36. <li onclick="Z.Location.href('templateShare.htm');">分享给我的</li>
  37. <li onclick="Z.Location.href('allTemplate.htm');">所有模板</li>
  38. <!-- <li onclick="Z.Location.href('bestTemplate.htm');">精品模板</li> -->
  39. <#if ZmrPathRule.check(request, "/templateAudit.htm")><li onclick="Z.Location.href('templateAudit.htm');">模板审核</li></#if>
  40. <!-- <#if ZmrPathRule.check(request, "/templateBestAudit.htm")><li onclick="Z.Location.href('templateBestAudit.htm');">精品审核</li></#if> -->
  41. <#if ZmrPathRule.check(request, "/desTemplateLogList.htm")><li onclick="Z.Location.href('desTemplateLogList.htm');">模版日志</li></#if>
  42. </ul>
  43. </nav>
  44. </div>
  45. <#-- 订单搜索 -->
  46. <div class="z-mg-t20 z-h1 z-text-center">
  47. <input type="hidden" id="typeId" name="typeId" value="">
  48. <input type="hidden" id="industryId" name="industryId" value="">
  49. <span style="float:center;">
  50. <input id="q" class="z-input z-w400 zi-h40 zi-bd-r-none" placeholder="请输入订单号" value="" maxlength="60"><button type="button" class="z-button z-w70 z-h40 zi-bd-rd0 z-blue" 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. <tr class="z-h40" bgcolor="${oddColor}">
  55. <td width="5%">类型:</td>
  56. <td width="*">
  57. <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>
  58. <#for item : DesignTypeDao.list()>
  59. <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>
  60. </#for>
  61. </td>
  62. </tr>
  63. <tr class="z-h40" bgcolor="#FFFFFF">
  64. <td>行业:</td>
  65. <td>
  66. <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>
  67. <#for item : Global.get(DesignIndustryCache.class).getIndustryList()>
  68. <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>
  69. </#for>
  70. </td>
  71. </tr>
  72. </table>
  73. <div id="resultWrap"></div>
  74. ${zhiqim_manager_content_end()}