labelAttributeAdd.zml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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="labelAttributeInsert.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
  39. <table class="z-table z-bordered z-pd6 z-bg-white">
  40. <tr>
  41. <td width="40%">标签行业:(请选择)</td>
  42. <td width="*">
  43. <select name="industryId" id="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}" onchange="doIndustryCatQuery()">
  44. <#for item : indList>
  45. <option value="${item.getIndustryId()}">${item.getIndustryName()}</option>
  46. </#for>
  47. </select> <font color=red>&nbsp;*</font>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td> 属性:(请选择)</td>
  52. <td>
  53. <span id="attributeCat"></span><font color=red>&nbsp;*</font>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td>属性值:(逗号隔开)</td>
  58. <td><textarea name="attributeName" class="z-textarea z-w60p ${zmr_color_class}" cols=60 rows=4 size="30" maxlength="5000"></textarea><font color=red>&nbsp;*</font></td>
  59. </tr>
  60. </table>
  61. ${zhiqim_manager_submit()}
  62. </form>
  63. </div>