labelAttributeModify.zml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <script>
  2. Z.onload(function()
  3. {
  4. doIndustryCatQuery();
  5. });
  6. function doIndustryCatQuery()
  7. {//获取标签属性分类
  8. var industryId = Z("#industryId").val();
  9. if (industryId == null || industryId == undefined)
  10. return;
  11. var ajax = new Z.Ajax();
  12. ajax.setClassName("LabelPresenter");
  13. ajax.setMethodName("doIndustryCatQuery");
  14. ajax.addParam(industryId);
  15. ajax.setFailureAlert();
  16. ajax.setSuccess(function()
  17. {
  18. var labels = Z.Jsons.toObject(this.responseText);
  19. var html = "";
  20. var data_color = "${zmr_color_class}";
  21. html += "<select name='attributeCatId' id='attributeCatId' class='z-select z-w200' data-role='z-select' data-class='"+data_color+"'>";
  22. for(var i=0; i<labels.length; i++)
  23. {
  24. var label = labels[i];
  25. html += "<option value=" + label.attributeCatId +">"+ label.attributeCatName +"</option>";
  26. }
  27. html += "</select>";
  28. Z("#attributeCat").html(html);
  29. });
  30. ajax.execute();
  31. }
  32. </script>
  33. ${zhiqim_manager_history("/labelAttribute.htm")}
  34. ${request.getValidateScript()}
  35. ${zhiqim_manager_breadcrumb_parent("/labelAttribute.htm", "标签属性值", "修改标签属性值")}
  36. <div class="content">
  37. ${zhiqim_manager_title("修改标签属性值")}
  38. <form name="theForm" action="labelAttributeUpdate.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
  39. <input name="attributeId" type="hidden" value="${attr.getAttributeId()}">
  40. <table class="z-table z-bordered z-pd6 z-bg-white">
  41. <tr>
  42. <td width="40%">标签分类:(请选择)</td>
  43. <td width="*">
  44. <select name="industryId" id="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}" onchange="doIndustryCatQuery()">
  45. <#for item : indList>
  46. <option value="${item.getIndustryId()}" <#if item.getIndustryId() == attr.getIndustryId()>selected </#if>>${item.getIndustryName()}</option>
  47. </#for>
  48. </select> <font color=red>&nbsp;*</font>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td> 属性:(请选择)</td>
  53. <td>
  54. <span id="attributeCat"></span><font color=red>&nbsp;*</font>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td>属性值名称:(64位不定长字符)</td>
  59. <td><input name="attributeName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" maxlength="64" value="${attr.getAttributeName()}"/><font color=red>&nbsp;*</font></td>
  60. </tr>
  61. </table>
  62. ${zhiqim_manager_submit()}
  63. </form>
  64. </div>