industrySelect.zml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <script>
  2. function doSelect()
  3. {
  4. var industryId = Z("#parentIndustryId").val();
  5. var industryName = Z("#parentIndustryName").val();
  6. parent.doShowSubIndustry(industryId, industryName);
  7. parent.doShowSubAttribute(industryId, industryName);
  8. parent.Z.Dialog.close();
  9. }
  10. function doSearchIndustry(industryKeywords)
  11. {
  12. var ajax = new Z.Ajax();
  13. ajax.setClassName("WorksPresenter");
  14. ajax.setMethodName("doSearchIndustry");
  15. ajax.addParam("industryKeywords", industryKeywords);
  16. ajax.setFailureAlert();
  17. ajax.setSuccess(function(responseText)
  18. {
  19. Z("#industry").html(responseText);
  20. });
  21. ajax.execute();
  22. }
  23. </script>
  24. <#-- 查询 -->
  25. <form action="industrySelect.htm" method="post">
  26. <div class="z-absolute z-w100p z-h55 z-bg-gray z-pd10" style="top:0;left:0">
  27. <input id="industryKeywords" name="industryKeywords" style="width:250px" class="z-input fi-h35 fi-bd-r-none" placeholder="行业关键字查找" value="${industryKeywords}" maxlength="20" onkeyup="doSearchIndustry(this.value);"><button type="submit" class="z-button z-w60 z-h35 fi-bd-rd0 ${zmr_color_class}"><i class="z-font z-query"></i></button>
  28. </div>
  29. </form>
  30. <#-- 列表 -->
  31. <input type="hidden" id="parentIndustryId" value="">
  32. <input type="hidden" id="parentIndustryName" value="">
  33. <div id="industry">
  34. <div class="z-pd10 z-overflow-auto" style="margin-top:55px;height:285px;">
  35. <table class="z-table z-bordered z-h40 z-bg-white">
  36. <tr class="z-text-center z-h40 z-bg-gray">
  37. <td width="20%">选择</td>
  38. <td class="z-pd6" width="30%">行业名称</td>
  39. </tr>
  40. <#for item : searchIndustryList>
  41. <tr class="z-text-center z-h40">
  42. <td><input type="radio" name="parentIndustry" data-class="${zmr_color_class}" data-role="z-radio" data-class="z-blue" onclick="Z('#parentIndustryId').val(this.value);Z('#parentIndustryName').val('${item.getIndustryName()}')" value="${item.getIndustryId()}"></td>
  43. <td>${item.getIndustryName()}</td>
  44. </tr>
  45. </#for>
  46. </tale>
  47. </div>
  48. <#-- 操作 -->
  49. <div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
  50. <button type="button" class="z-button z-large z-w120 z-blue" onclick="doSelect();">选择</button>
  51. <button type="button" class="z-button z-large z-w100 z-mg-l10" onclick="parent.Z.Dialog.close(location.hash);">取消</button>
  52. </div>
  53. </div>