Files
ziqim/Yangcai365_design/manage/zview/label/labelAttributeAdd.zml
T
2025-02-20 14:58:55 +08:00

68 line
2.3 KiB
Plaintext

<script>
Z.onload(function()
{
doIndustryCatQuery();
});
function doIndustryCatQuery()
{//获取标签属性分类
var industryId = Z("#industryId").val();
if(industryId == null || industryId == undefined)
return;
var ajax = new Z.Ajax();
ajax.setClassName("LabelPresenter");
ajax.setMethodName("doIndustryCatQuery");
ajax.addParam(industryId);
ajax.setFailureAlert();
ajax.setSuccess(function()
{
var labels = Z.Jsons.toObject(this.responseText);
var html = "";
var data_color = "${zmr_color_class}";
html += "<select name='attributeCatId' id='attributeCatId' class='z-select z-w200' data-role='z-select' data-class='"+data_color+"'>";
for(var i=0; i<labels.length; i++)
{
var label = labels[i];
html += "<option value=" + label.attributeCatId +">"+ label.attributeCatName +"</option>";
}
html += "</select>";
Z("#attributeCat").html(html);
});
ajax.execute();
}
</script>
${zhiqim_manager_history("/labelAttribute.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelAttribute.htm", "标签属性值", "增加标签属性值")}
<div class="content">
${zhiqim_manager_title("新增标签属性值")}
<form name="theForm" action="labelAttributeInsert.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="40%">标签行业:(请选择)</td>
<td width="*">
<select name="industryId" id="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}" onchange="doIndustryCatQuery()">
<#for item : indList>
<option value="${item.getIndustryId()}">${item.getIndustryName()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td> 属性:(请选择)</td>
<td>
<span id="attributeCat"></span><font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td>属性值:(逗号隔开)</td>
<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>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>