| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <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>
|