first commit

This commit is contained in:
2025-02-20 14:58:55 +08:00
parent 687bda5ead
commit d7be84fac6
1158 changed files with 127232 additions and 0 deletions
@@ -0,0 +1,64 @@
${zhiqim_manager_breadcrumb("标签属性")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li onclick="Z.Location.href('labelIndustry.htm');">标签行业</li>
<li onclick="Z.Location.href('labelAttributeCat.htm');">标签属性</li>
<li class="z-active">标签属性值</li>
<!--
<li onclick="Z.Location.href('labelBrand.htm');">标签品牌</li>
-->
</ul>
<div class="z-float-left z-mg10 z-lh30">
<form name="theForm">
<select name="industryId" id="industryId" class="z-select z-w100 z-float-left" data-role="z-select" data-class="${zmr_color_class}" onchange="Z.L.href('/labelAttribute.htm?industryId=' + this.value)">
<option value="">全部</option>
<#for item : industryList>
<option value="${item.getIndustryId()}" <#if item.getIndustryId() == industryId>selected </#if>>${item.getIndustryName()}</option>
</#for>
</select>
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>&nbsp;&nbsp;
</form>
</div>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="Z.Location.href('labelAttributeAdd.htm');"><i class="z-font z-add"></i>添加标签属性值</button>
<button class="z-button ${zmr_color_class}" onclick="Z.Location.check('labelAttributeModify.htm', 'attributeId');"><i class="z-font z-modify"></i>修改标签属性值</button>
<button class="z-button z-red" onclick="Z.Location.confirm('labelAttributeDelete.htm', '确认要删除该标签吗?', 'attributeId');"><i class="z-font z-delete"></i>删除标签属性值</button>
</div>
</nav>
</div>
<table class="z-table z-bordered z-bg-white z-pd6">
<tr>
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="4">&nbsp;标签属性值列表</td>
</tr>
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="5%">选择</td>
<td width="20%">行业名称</td>
<td width="20%">属性名称</td>
<td width="20%">属性值名称</td>
<td width="15%">创建时间</td>
</tr>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(4 "暂时没有标签属性信息")}
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="attributeId" id="attributeId" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getAttributeId()}"></td>
<td>
<#for industry : industryList>
<#if item.getIndustryId() == industry.getIndustryId()>${industry.getIndustryName()} </#if>
</#for>
</td>
<td>${LabelPresenter.doAttributeCatName(item.getAttributeCatId())}</td>
<td>${item.getAttributeName()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/labelAttribute.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,68 @@
<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>
@@ -0,0 +1,61 @@
${zhiqim_manager_breadcrumb("标签属性分类")}
${zhiqim_manager_content()}
<#-- 属性分类栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li onclick="Z.Location.href('labelIndustry.htm');">标签行业</li>
<li class="z-active">标签属性</li>
<li onclick="Z.Location.href('labelAttribute.htm');">标签属性值</li>
<!--
<li onclick="Z.Location.href('labelBrand.htm');">标签品牌</li>
-->
</ul>
<div class="z-float-left z-mg10 z-lh30">
<form name="theForm">
<select name="industryId" id="industryId" class="z-select z-w100 z-float-left" data-role="z-select" data-class="${zmr_color_class}" onchange="Z.L.href('/labelAttributeCat.htm?industryId=' + this.value)">
<option value="">全部</option>
<#for item : industryList>
<option value="${item.getIndustryId()}" <#if item.getIndustryId() == industryId>selected </#if>>${item.getIndustryName()}</option>
</#for>
</select>
<button class="z-float-left z-button z-w80 zi-bd-rd0 z-blue"><i class="z-font z-query"></i>查询</button>&nbsp;&nbsp;
</form>
</div>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="Z.Location.href('/labelAttributeCatAdd.htm');"><i class="z-font z-add"></i>增加标签属性</button>
<button class="z-button ${zmr_color_class}" onclick="Z.Location.check('/labelAttributeCatModify.htm', 'attributeCatId');"><i class="z-font z-modify"></i>修改标签属性</button>
<button class="z-button z-red" onclick="Z.Location.confirm('/labelAttributeCatDelete.htm', '确认要删除标签属性分类?', 'attributeCatId');"><i class="z-font z-delete"></i>删除标签属性</button>
</div>
</nav>
</div>
<table class="z-table z-bordered z-bg-white z-pd6">
<tr>
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="4">&nbsp;标签属性列表</td>
</tr>
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="5%">选择</td>
<td width="20%">行业名称</td>
<td width="20%">属性名称</td>
<td width="5%">创建时间 </td>
</tr>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(4 "暂时没有标签属性信息")}
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="attributeCatId" id="attributeCatId" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getAttributeCatId()}"></td>
<td>
<#for industry : industryList>
<#if item.getIndustryId() == industry.getIndustryId()>${industry.getIndustryName()} </#if>
</#for>
</td>
<td>${item.getAttributeCatName()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/labelAttributeCat.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,25 @@
${zhiqim_manager_history("/labelAttributeCat.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelAttributeCat.htm", "标签属性", "增加标签属性")}
<div class="content">
${zhiqim_manager_title("新增标签属性")}
<form name="theForm" action="labelAttributeCatInsert.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" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : indList>
<option value="${item.getIndustryId()}">${item.getIndustryName()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td>标签属性名称:(64位不定长字符)</td>
<td><input name="attributeCatName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" value="" maxlength="64"><font color=red>&nbsp;*</font></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,26 @@
${zhiqim_manager_history("/labelAttributeCat.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelAttributeCat.htm", "标签属性", "修改标签属性")}
<div class="content">
${zhiqim_manager_title("修改标签属性")}
<form name="theForm" action="labelAttributeCatUpdate.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
<input name="attributeCatId" type="hidden" value="${cat.getAttributeCatId()}"/>
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="40%">标签行业:(请选择)</td>
<td width="*">
<select name="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : indList>
<option value="${item.getIndustryId()}" <#if item.getIndustryId() == attr.getIndustryId()>selected </#if>>${item.getIndustryName()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td>标签属性名称:(64位不定长字符)</td>
<td><input name="attributeCatName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" value="${cat.getAttributeCatName()}" maxlength="64"><font color=red>&nbsp;*</font></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,69 @@
<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="labelAttributeUpdate.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<input name="attributeId" type="hidden" value="${attr.getAttributeId()}">
<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()}" <#if item.getIndustryId() == attr.getIndustryId()>selected </#if>>${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>属性值名称:(64位不定长字符)</td>
<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>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,47 @@
${zhiqim_manager_breadcrumb("标签品牌")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li onclick="Z.Location.href('labelIndustry.htm');">标签行业</li>
<li onclick="Z.Location.href('labelAttributeCat.htm');">标签属性</li>
<li onclick="Z.Location.href('labelAttribute.htm');">标签属性值</li>
<li class="z-active">标签品牌</li>
</ul>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="Z.Location.href('labelBrandAdd.htm');"><i class="z-font z-add"></i>添加标签品牌</button>
<button class="z-button ${zmr_color_class}" onclick="Z.Location.check('labelBrandModify.htm', 'brandId');"><i class="z-font z-modify"></i>修改标签品牌</button>
<button class="z-button z-red" onclick="Z.Location.confirm('labelBrandDelete.htm', '确认要删除该标签吗?', 'brandId');"><i class="z-font z-delete"></i>删除标签品牌</button>
</div>
</nav>
</div>
<table class="z-table z-bordered z-bg-white z-pd6">
<tr>
<td class="z-h40 z-text-left z-bold z-px14 z-bg-white" colspan="6">&nbsp;标签品牌列表</td>
</tr>
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width=8%>选择</td>
<td width=10%>排序</td>
<td width=15%>品牌ID</td>
<td width=25%>品牌名称</td>
<td width=15%>产品类型</td>
<td width=8%>状态</td>
</tr>
<#if pageResult.total() == 0>
${zhiqim_manager_no_record(6 "暂时没有标签品牌信息")}
</#if>
<#for item : pageResult.list()>
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="brandId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getBrandId()}"></td>
<td>${item.getBrandSeq()}</td>
<td>${item.getBrandId()}</td>
<td>${item.getBrandName()}</td>
<td>${Global.get(ProductTypeCache.class).getName(item.getTypeId())}</td>
<td><#if item.getBrandStatus() == 0>有效<#else><font class="z-color-red">已停用</font></#if></td>
</tr>
</#for>
</table>
${zhiqim_manager_paging(pageResult, "/labelBrand.htm")}
${zhiqim_manager_content_end()}
@@ -0,0 +1,38 @@
${zhiqim_manager_history("/labelBrand.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelBrand.htm", "标签品牌", "增加标签品牌")}
<div class="content">
${zhiqim_manager_title("新增标签品牌")}
<form name="theForm" action="labelBrandInsert.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="40%">标签分类:(请选择)</td>
<td width="*">
<select name="typeId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : DesignTypeDao.list()>
<option value="${item.getTypeId()}" title="${item.getTypeName()}">${item.getTypeName()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<tr bgcolor="${evenColor}" class="z-h40">
<td>标签品牌名称:(64位不定长字符)</td>
<td><input name="brandName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" value="" maxlength="64"><font color=red>&nbsp;*</font></td>
</tr>
<tr class="z-h40">
<td>序号:</td>
<td><input name="brandSeq" class="z-input z-w200 ${zmr_color_class}" type="text" value="" maxlength="6" data-options="type:Decimal;paste:true;"></td>
</tr>
<tr bgcolor="${evenColor}" class="z-h40">
<td>行业状态:(有效|停用)</td>
<td>
<select name="brandStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="0">有效</option>
<option value="1">停用</option>
</select>
<font class="z-color-red">&nbsp;*</font></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,39 @@
${zhiqim_manager_history("/labelBrand.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelBrand.htm", "标签品牌", "修改标签品牌")}
<div class="content">
${zhiqim_manager_title("修改标签品牌")}
<form name="theForm" action="labelBrandUpdate.htm" method="post" onsubmit="return validateForm(this);" data-role="z-call-frame">
<input name="brandId" type="hidden" value="${brand.getBrandId()}">
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr class="z-h40">
<td width="40%">标签分类:(请选择)</td>
<td width="*">
<select name="typeId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : DesignTypeDao.list()>
<option value="${item.getTypeId()}" <#if brand.getDesignType() == item.getTypeId()>selected</#if> title="${item.getTypeName()}">${item.getTypeName()}</option>
</#for>
</select> <font color=red>&nbsp;*</font>
</td>
</tr>
<tr bgcolor="${oddColor}" class="z-h40">
<td>标签品牌名称:(64位不定长字符)</td>
<td><input name="brandName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" value="${brand.getBrandName()}" maxlength="64"><font color=red>&nbsp;*</font></td>
</tr>
<tr class="z-h40">
<td>序号:</td>
<td><input name="brandSeq" class="z-input z-w200 ${zmr_color_class}" type="text" value="${brand.getBrandSeq()}" maxlength="6" data-options="type:Decimal;paste:true;"></td>
</tr>
<tr bgcolor="${oddColor}" class="z-h40">
<td>品牌状态:(有效|停用)</td>
<td>
<select name="brandStatus" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<option value="1" <#if brand.getBrandStatus()= 1>selected</#if>>停用</option>
<option value="0" <#if brand.getBrandStatus()= 0>selected</#if>>有效</option>
</select><font class="z-color-red">&nbsp;*</font>
</td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,56 @@
<script>
Z.onload(function()
{
var industryId = '${industryId}';
if (industryId != -1)
doIndustrySubQuery(industryId);
});
function doIndustrySubQuery(industryId)
{
var ajax = new Z.Ajax();
ajax.setClassName("LabelPresenter");
ajax.setMethodName("doIndustrySubQuery");
ajax.addParam(industryId);
ajax.setCallback("result");
ajax.setLoading("result");
ajax.execute();
}
</script>
${zhiqim_manager_breadcrumb("标签行业")}
${zhiqim_manager_content()}
<#-- 导航栏 -->
<div class="z-tabnav-main z-blue z-mg-b20">
<nav>
<ul>
<li class="z-active">标签行业</li>
<li onclick="Z.Location.href('labelAttributeCat.htm');">标签属性</li>
<li onclick="Z.Location.href('labelAttribute.htm');">标签属性值</li>
</ul>
<div class="z-text-right z-mg-t10 z-mg-r5">
<button class="z-button ${zmr_color_class}" onclick="Z.Location.href('/labelIndustryAdd.htm');"><i class="z-font z-add"></i>增加标签行业</button>
<button class="z-button ${zmr_color_class}" onclick="Z.Location.check('labelIndustryModify.htm', 'industrySubId');"><i class="z-font z-modify"></i>修改标签行业</button>
<button class="z-button z-red" onclick="Z.Location.confirm('labelIndustryDelete.htm', '确认要删除该标签行业吗?', 'industrySubId');"><i class="z-font z-delete"></i>删除标签行业</button>
</div>
</nav>
</div>
<table class="z-table">
<tr>
<td width="300" valign="top">
<table class="z-table z-bordered z-pd6 z-bg-white z-text-center">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}"><td>标签导航</td></tr>
<#for item : indList>
<tr align="center" class="z-h40" bgcolor="${zhiqim_manager_tr_bg(item_index)}">
<td><a href="javascript:doIndustrySubQuery('${item.getIndustryId()}');">${item.getIndustryName()}</a></td>
</tr>
</#for>
</table>
</td>
<td width="10"></td>
<td width="*" id="result" valign="top">
</td>
</tr>
</table>
${zhiqim_manager_content_end()}
@@ -0,0 +1,25 @@
${zhiqim_manager_history("/labelIndustry.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelIndustry.htm", "标签行业", "增加标签行业")}
<div class="content">
${zhiqim_manager_title("新增标签行业")}
<form name="theForm" action="labelIndustryInsert.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" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : indList>
<option value="${item.getIndustryId()}">${item.getIndustryName()}</option>
</#for>
</select><font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td>子行业名称:(逗号隔开)</td>
<td><textarea name="industrySubName" 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>
@@ -0,0 +1,26 @@
${zhiqim_manager_history("/labelIndustry.htm")}
${request.getValidateScript()}
${zhiqim_manager_breadcrumb_parent("/labelIndustry.htm", "标签行业", "修改标签行业")}
<div class="content">
${zhiqim_manager_title("修改标签行业")}
<form name="theForm" action="labelIndustryUpdate.htm" method="post" onSubmit="return validateForm(this);" data-role="z-call-frame">
<input name="industrySubId" type="hidden" value="${industry.getIndustrySubId()}"/>
<table class="z-table z-bordered z-pd6 z-bg-white">
<tr>
<td width="40%">标签行业:(请选择)</td>
<td width="*">
<select name="industryId" class="z-select z-w200" data-role="z-select" data-class="${zmr_color_class}">
<#for item : indList>
<option value="${item.getIndustryId()}" <#if industry.getIndustryId() == item.getIndustryId() >selected</#if>>${item.getIndustryName()}</option>
</#for>
</select><font color=red>&nbsp;*</font>
</td>
</tr>
<tr>
<td>子行业名称:(5000位不定长字符)</td>
<td><input name="industrySubName" class="z-input ${zmr_color_class} z-w200 z-cyan" type="text" maxlength="64" value="${industry.getIndustrySubName()}"/><font color=red>&nbsp;*</font></td>
</tr>
</table>
${zhiqim_manager_submit()}
</form>
</div>
@@ -0,0 +1,80 @@
<script>
<!--
var indIdarr = Z.AR.toArray("${indIdarr}", ",");
var attrIdarr = Z.AR.toArray("${attrIdarr}", ",");
function doLabelIdSet(type,attaid)
{
if (type == "industry")
{
if (Z.AR.contains(indIdarr, attaid))
Z.AR.remove(indIdarr, attaid);
else
indIdarr.push(attaid);
}
else if (type == "attribute")
{
if(Z.AR.contains(attrIdarr, attaid))
Z.AR.remove(attrIdarr, attaid)
else
attrIdarr.push(attaid);
}
}
function doLabelRelation()
{
var ajax = new Z.Ajax();
ajax.setClassName("WorksPresenter");
ajax.setMethodName("doLabelRelation");
ajax.addParam('${works.getWorksId()}');
ajax.addParam('${works.getDesignType()}');
ajax.addParam('${works.getIndustryId()}');
ajax.addParam(indIdarr);
ajax.addParam(attrIdarr);
ajax.setFailureAlert();
ajax.setSuccess(function(){
Z.success("关联成功", function(){parent.location.reload();})
});
ajax.execute();
}
-->
</script>
<div class="z-w300p">
${zhiqim_manager_title("关联标签行业")}
<table class="z-table z-bordered z-pd6">
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="10%" >产品类型:</td>
<td width="*"> ${Global.get(ProductTypeCache.class).getName(works.getDesignType())}</td>
</tr>
<tr class="z-h40" bgcolor="#FFFFFF">
<td>标签行业:</td>
<td>${Global.get(DesignIndustryCache.class).getIndustryName(works.getIndustryId())}</td>
</tr>
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td>标签子行业:</td>
<td>
<#for item : inSubList>
<button name="subName" id="sub_${item.getIndustrySubId()}" type="button" class="z-button z-large z-bordered z-blue-bd z-hover <#if subsList.contains(item.getIndustrySubId()+"")>z-active</#if>" onclick="Z.EL.toggleClass(this, 'z-active');doLabelIdSet('industry', '${item.getIndustrySubId()}')">${item.getIndustrySubName()}</button>
</#for>
</td>
</tr>
</table><br>
${zhiqim_manager_title("关联标签属性")}
<table class="z-table z-bordered z-pd6">
<#for item : attrCatList>
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="10%">${item.getAttributeCatName()}</td>
<td width="*">
<#for aitem : map.get(item.getAttributeCatId())>
<button name="attrId" id="sub_${aitem.getAttributeId()}" type="button" class="z-button z-large z-bordered z-blue-bd z-hover <#if attrList.contains(aitem.getAttributeId()+"")>z-active</#if>" onclick="Z.EL.toggleClass(this, 'z-active');doLabelIdSet('attribute', '${aitem.getAttributeId()}')">${aitem.getAttributeName()}</button>
</#for>
</td>
</tr>
</#for>
</table>
<div class="z-absolute z-w100p z-h80 z-text-center z-bg-gray" style="bottom:0;left:0">
<button class="z-button ${zmr_color_class} z-w150 z-h50 z-mg-t15 z-mg-l5 z-mg-l20 fi-px22" type="button" onclick="doLabelRelation();">提交</button>
<button class="z-button z-w150 z-h50 z-mg-t15 z-mg-l5 z-mg-l20 fi-px22" type="button" onclick="parent.location.reload();">关闭</button>
</div>
</div>
@@ -0,0 +1,26 @@
<#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
<table class="z-table z-bordered z-pd6 z-bg-white z-text-center">
<tr class="z-h40">
<td align="left" colspan="4" class="z-bold z-px14 fi-pd-l5"><input name="industryId" id="industryId" value="${industryId}" type="hidden"/>[<span class="z-text-blue">${Global.get(DesignIndustryCache.class).getIndustryName(industryId)}</span>] 的子行业信息</td>
</tr>
<tr class="z-text-center z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="5%">选择</td>
<td width="20%">子行业名称</td>
<td width="15%">创建时间</td>
</tr>
<#for item : result>
<tr align="center" class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="industrySubId" id="industrySubId" data-role="z-radio" data-class="${zmr_color_class}" type="radio" value="${item.getIndustrySubId()}"></td>
<td>${item.getIndustrySubName()}</td>
<td>${Sqls.toDateTimeString(item.getCreateTime())}</td>
</tr>
</#for>
<#if result.size() == 0>
${zhiqim_manager_no_record(4 "暂时没有相关信息")}
</#if>
</table>
<table class="z-table z-bordered fi-bd-t-none z-pd6 z-bg-white">
<tr class="z-h40">
<td align="right">共 <font color="red">${result.size()}</font> 条数据</td>
</tr>
</table>
@@ -0,0 +1,26 @@
<#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
<table class="z-table z-bordered z-pd6 z-bg-white z-text-center">
<tr class="z-h40">
<td align="left" colspan="3" class="z-bold z-px14 fi-pd-l5">标签分类 [<span class="z-text-blue">${labelName}</span>] 的属性信息</td>
</tr>
<tr class="z-h40" bgcolor="${zmr_thead_bgcolor}">
<td width="8%">选择</td>
<td width="30%">属性名称</td>
<td width="15%">排序号</td>
</tr>
<#for item : result>
<tr class="z-h40" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
<td><input name="labelId" id="labelId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${item.getLabelId()}"></td>
<td>${item.getLabelName()}</td>
<td>${item.getLabelOrder()}</td>
</tr>
</#for>
<#if result.size() == 0>
${zhiqim_manager_no_record(3 "暂时没有相关信息")}
</#if>
</table>
<table class="z-table z-bordered fi-bd-t-none z-pd6 z-bg-white">
<tr class="z-h40">
<td align="right">共 <font color="red">${result.size()}</font> 条数据</td>
</tr>
</table>