开发过程碰到一个问题,上传图片的时候出发JS修改隐藏域(跟MB的属性绑定),但是后台取值则取不到。
总结原因:MB取一个绑定值的时候需要该值在提交的form表单内,所以把表单外的元素放到表单内。
修改前:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:cms="http://cms.cup.com/cmstags"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:cmsComposite="http://java.sun.com/jsf/composite/compositetags">
<h:body>
<ui:composition template="../../template/CMSManagementTemplate.xhtml">
<ui:define name="template_head">
<ui:include src="../../pages/common/cmsheader.xhtml"></ui:include>
</ui:define>
<ui:define name="template_management">
<script type="text/javascript" src="/cms-web/resources/my97DatePicker/WdatePicker.js"></script>
<h:outputScript type="text/javascript">
<!-- var jcrop_exp; -->
function allchecks(obj){
$(".subcheck").attr("checked", obj.checked);
}
function clickchecks(obj){
if($(".subcheck:checked").size() == 0){
$("#allcheck").attr("checked", false);
}
}
function changeSectionControlWidth(){
var sumWidth = $("#head").css("width").replace("px", "") * 1;
var left1 = $("#subPageControl").css("width").replace("px", "") * 1;
var right1 = sumWidth - left1 - 24;
$("#sectionContent2").css("width", right1 + "px");
document.body.onscroll = function(){
body_onscroll();
}
$(".hiddenDiv").hide();
initBrandId();
<!-- var hideinput = $("input[id$=needCut]").each(function(index, obj){ -->
<!-- if(obj.value == "1"){ -->
<!-- var pix = obj.id; -->
<!-- pix = pix.replace("needCut",""); -->
<!-- initJcrop(pix); -->
<!-- } -->
<!-- }); -->
}
function clearFloat(val){
val = val + "";
return val.split(".")[0];
}
<!-- function initJcrop(pixId){ -->
<!-- var picMaxWidth = $("#" + pixId + "cutW").val(); -->
<!-- var picMaxHeight = $("#" + pixId + "cutH").val(); -->
<!-- //var jcrop_api; -->
<!-- $("#" + pixId + "_ferret").Jcrop({ -->
<!-- onChange: showCoords, -->
<!-- onSelect: showCoords, -->
<!-- allowResize: false, -->
<!-- maxSize: [picMaxWidth, picMaxHeight], -->
<!-- minSize: [picMaxWidth, picMaxHeight] -->
<!-- },function(){ -->
<!-- //jcrop_api = this; -->
<!-- jcrop_exp = this; -->
<!-- this.setSelect([0, 0, picMaxWidth, picMaxHeight]); -->
<!-- }); -->
<!-- function showCoords(c){ -->
<!-- $("#" + pixId + "cutX").val(c.x); -->
<!-- $("#" + pixId + "cutY").val(c.y); -->
<!-- $("#" + pixId + "cutW").val(c.w); -->
<!-- $("#" + pixId + "cutH").val(c.h); -->
<!-- }; -->
<!-- //jcrop_api.setSelect([0, 0, picMaxWidth, picMaxHeight]); -->
<!-- } -->
function chooseUpImgFile(pixId){
$(".upImgDiv").hide();
$(".hiddenDiv").hide();
$("#" + pixId + "_div").show();
$("#" + pixId + "_hidden_div").show();
$("#" + pixId + "_hidden_div").css("height", document.body.scrollHeight + "px");
$("#" + pixId + "_hidden_div").css("width", $("#head").css("width"));
body_onscroll();
}
function body_onscroll(){
var upImgDivTop = 250 + document.body.scrollTop;
$(".upImgDiv").css("top" , upImgDivTop + "px");
}
function beforUpImg(pixId){
var objValue = $("#" + pixId + "_hidden").val();
if(objValue == ""){
return false;
}
var regs = "jpg";
if(!IsExt(objValue, regs)){
alert("提示:请选择一个有效的文件,支持的格式有(" + regs + ")!");
return false;
}
$(".upImgDiv").hide();
$(".hiddenDiv").hide();
$("#" + pixId + "_msg").show();
document.getElementById("currentAssemblyZoneName").value = pixId;
setTimeout('hiddenDiv()', 1000);
return true;
}
//onkeyup="upperCase(this.id)"
function validateNum(x){
//var objValue = $("#" + pixId).val();
var objValue=document.getElementById(x).value;
if(objValue != ""){
if(isNaN(objValue)){
alert("请输入正确的数据格式!");
}
}
}
function upLoadFileClick(pixId){
if(document.getElementById(pixId).value.length == 0){
return;
}
document.getElementById(pixId + '_currentAssemblyZoneName').value = pixId;
document.getElementById(pixId + '_hidden_submit').click();
}
function hiddenUploadFileOnchange(obj, pixId, width, height){
makeUploadImgChange(obj, pixId + "_pic", pixId + "_ferret", width, height);
}
function hideBtn(obj){
$(".upImgDiv").hide();
$(".hiddenDiv").hide();
}
function changeTemplate(){
document.getElementById('chooseTemplate_hidden_submit').click();
}
function showDeployBtn(){
$("#deploy_hidden_div").show();
$("#deploy_hidden_div").css("height", document.body.scrollHeight + "px");
$("#deploy_hidden_div").css("width", $("#head").css("width"));
$("#deploy_show_div").show();
}
function addBrandIds(){
var ids = "";
$(".subcheck:checked").each(function(index, obj){
ids = ids + "_" + obj.value
});
$("#deployBrandIds").val(ids);
if(ids == ""){
alert("请选择发布项!");
return false;
}
return true;
}
function initBrandId(){
var queryBrandId = $("#queryBrandId").val();
if(queryBrandId == "0"){
$("#queryBrandId").val("")
}
}
function IsNum(s){
if (s!=""){
return !isNaN(s);
}
return false;
}
function formatNumber(obj){
var num = obj.text();
var formatNum = (Math.round(num/10))/10;
obj.text(parseFloat(formatNum));
}
$(document).ready(function(){
formatNumber($("#brand_general_grade"));//品牌综合
formatNumber($("#brand_env_grade"));//品牌环境
formatNumber($("#brand_srv_grade"));//品牌服务
formatNumber($("#brand_popular_grade"));//品牌人气
formatNumber($("#brand_taste_grade"));//品牌口味
});
</h:outputScript>
<div id="subPageControl">
<div class="controlTool">
<cms:cmsSubManagementToolBar />
</div>
<div class="leftColumn">
<cms:cmsSubMenu/>
</div>
<p id="splitter03"></p>
</div>
<div id="sectionContent2">
<h:panelGroup id="detailContent">
<div class="content_toolbar">
<ul id="detailContent_btn">
<li> <h:form id="newBrand" prependId="false">
<cms:cmsCommandLink valueKey="mchntPara_btn_to_new" ssoRoles="1" spanClass="ico_Tool03" action="#{BrandManageController.newBrand}"></cms:cmsCommandLink>
</h:form></li>
</ul>
</div>
<div class="prContent">
<div>
<!-- 查询条件开始 -->
<h:form id="queryContentForm" prependId="false">
<table class="queryTable">
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_contentType" />:
</td>
<td>
<h:selectOneMenu value="#{BrandManageBackingBean.selectContentTypeID}">
<c:forEach items="#{BrandManageBackingBean.brandTp}" var="contentType">
<f:selectItem itemLabel="#{contentType.contentTypeName}" itemValue="#{contentType.contentTypeID}" />
</c:forEach>
</h:selectOneMenu>
</td>
<td>
<cms:cmsResourceOutput key="cms.business_status" />:
</td>
<td>
<h:selectOneMenu value="#{BrandManageBackingBean.currentBrandSt}">
<c:forEach items="#{BrandManageBackingBean.brandStList}" var="brandSt">
<f:selectItem itemLabel="#{brandSt.itemName}" itemValue="#{brandSt.itemID}" />
</c:forEach>
</h:selectOneMenu>
</td>
<td>
<cms:cmsCommandButton action="#{BrandManageController.queryList}" valueKey="business_btn_query"></cms:cmsCommandButton>
</td>
</tr>
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_start_date" />:
</td>
<td>
<h:inputText id="queryStartTime" name="queryStartTime" onfocus="new WdatePicker(this,'%Y%M%D',false)"
value="#{BrandManageBackingBean.queryStartTime}">
<f:convertDateTime pattern="yyyyMMdd" />
</h:inputText>
</td>
<td>
<cms:cmsResourceOutput key="cms.business_end_date" />:
</td>
<td>
<h:inputText id="queryEndTime" name="queryEndTime" onfocus="new WdatePicker(this,'%Y%M%D',false)"
value="#{BrandManageBackingBean.queryEndTime}">
<f:convertDateTime pattern="yyyyMMdd" />
</h:inputText>
</td>
<td></td>
</tr>
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_branch" />:
</td>
<td class="branch_select">
<h:selectOneMenu value="#{BrandManageBackingBean.branchCode}">
<c:forEach items="#{BrandManageBackingBean.branchList}" var="branchSt">
<f:selectItem itemLabel="#{branchSt.itemName}" itemValue="#{branchSt.itemID}" />
</c:forEach>
</h:selectOneMenu>
</td>
<td>
<cms:cmsResourceOutput key="cms.business_brand_name" />:
</td>
<td>
<h:inputText id="queryBrandName" name="queryBrandName" value="#{BrandManageBackingBean.queryBrandName}"></h:inputText>
<div style="display:none;">
<cms:cmsResourceOutput key="cms.business_contentTypeGroup" />:
<h:selectOneMenu value="#{BrandManageBackingBean.selectContentTypeGroupID}">
<c:forEach items="#{BrandManageBackingBean.contentTypeGroupList}" var="contentTypeGroup">
<f:selectItem itemLabel="#{contentTypeGroup.contentTypeGroupName}" itemValue="#{contentTypeGroup.contentTypeGroup}" />
</c:forEach>
</h:selectOneMenu>
</div>
</td>
<td>
<cms:cmsCommandButton type="button" ssoRoles="5" onclick="showDeployBtn();" valueKey="business_btn_deploy"></cms:cmsCommandButton>
</td>
</tr>
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_brand_id" />:
</td>
<td>
<h:inputText id="queryBrandId" name="queryBrandId" value="#{BrandManageBackingBean.queryBrandId}" onkeyup="validateNum(this.id)"></h:inputText>
</td>
<td>
<h:inputHidden id="picMaxWidth" name="picMaxWidth" value="#{BrandManageBackingBean.picMaxWidth}"/>
<h:inputHidden id="picMaxHeight" name="picMaxHeight" value="#{BrandManageBackingBean.picMaxHeight}"/>
<h:inputHidden id="accImgType" name="accImgType" value="#{BrandManageBackingBean.accImgType}"/>
</td>
</tr>
</table>
<div class="hiddenDiv" id="deploy_hidden_div"></div>
<div class="upImgDiv" id="deploy_show_div">
<span style="margin-left:70px;"></span>
<!-- <c:if test="#{BrandManageBackingBean.branchCode eq '' or BrandManageBackingBean.branchCode eq '00010000'}"> -->
<!-- <cms:cmsCommandButton id="deploy_hidden_submit" ssoRoles="5" valueKey="business_btn_deploy_all" onclick="hideBtn(this);" action="#{BrandManageController.deployAll}"> -->
<!-- </cms:cmsCommandButton> -->
<!-- <span style="margin-left:15px;"></span> -->
<!-- </c:if> -->
<cms:cmsCommandButton id="deploy_hidden_submit2" ssoRoles="5" valueKey="business_btn_deploy_some" onclick="hideBtn(this);return addBrandIds();" action="#{BrandManageController.deploySome}">
</cms:cmsCommandButton>
<span style="margin-left:15px;"></span>
<cms:cmsCommandButton type="button" valueKey="business_btn_deploy_close" onclick="hideBtn(this);"></cms:cmsCommandButton>
<h:inputHidden id="deployBrandIds" value="#{BrandManageBackingBean.deployBrandIds}"/>
</div>
</h:form>
<!-- 查询条件结束 -->
<hr></hr>
<!-- 列表开始 -->
<h:form id="businessContentListForm" prependId="false">
<h:dataTable value="#{BrandManageBackingBean.brandList}" var="brand"
rowClasses="businessRow1,businessRow2" styleClass="businessTable" headerClass="businessColumn"
columnClasses="businessColumn3, businessColumn0, businessColumn1, businessColumn2">
<h:column>
<!-- 单选框 -->
<f:facet name="header">
<input type="checkbox" id="allcheck" onclick="allchecks(this);"></input>
</f:facet>
<h:panelGroup>
<input type="checkbox" class="subcheck" onclick="clickchecks(this);" value="#{brand.brandId}"></input>
</h:panelGroup>
</h:column>
<h:column>
<!-- 品牌ID -->
<f:facet name="header">
<cms:cmsResourceOutput key="cms.business_brand_id" />
</f:facet>
<h:outputText value="#{brand.brandId}"></h:outputText>
</h:column>
<h:column>
<!-- 品牌名称 -->
<f:facet name="header">
<cms:cmsResourceOutput key="cms.business_brand_name" />
</f:facet>
<h:outputText value="#{brand.brandNm}"></h:outputText>
</h:column>
<h:column>
<!-- 品牌人均 -->
<f:facet name="header">
<cms:cmsResourceOutput key="cms.business_brand_avgconsume" />
</f:facet>
<h:outputText value="#{brand.avgConsume}"></h:outputText>
</h:column>
<h:column>
<!-- 状态 -->
<f:facet name="header">
<cms:cmsResourceOutput key="cms.business_table_brand_st" />
</f:facet>
<h:panelGroup>
<cms:cmsResourceOutput key="cms.business_table_billSt_#{brand.brandSt}" />
</h:panelGroup>
</h:column>
<h:column>
<!-- 操作 -->
<f:facet name="header">
<cms:cmsResourceOutput key="cms.business_table_btn" />
</f:facet>
<h:panelGroup>
<cms:cmsCommandLink styleClass="a_look_#{brand.brandSt}" onclick="changHiddenInputValue(['selectBrandId'], '#{brand.brandId}')" action="#{BrandManageController.changeBrand}" valueKey="business_btn_search"></cms:cmsCommandLink>
<cms:cmsCommandLink ssoRoles="2" styleClass="a_update_0" onclick="changHiddenInputValue(['selectBrandId'], '#{brand.brandId}')" action="#{BrandManageController.toEditBrand}" valueKey="business_btn_update"></cms:cmsCommandLink>
</h:panelGroup>
</h:column>
</h:dataTable>
<h:inputHidden id="selectBrandId" value="#{BrandManageBackingBean.selectBrandId}"/>
</h:form>
<!-- 列表结束 -->
<div class="businessTable">
<cmsComposite:pagination page="#{BrandManageBackingBean.pagination}" render="detailContent" listener="#{BrandManageController}" />
</div>
</div>
<div style="margin-top:80px;">
<div class="subDiv">
<div style="display:none;">
<h:form id="updateHeadForm" prependId="false">
<!-- 模板选择 -->
<c:if test="#{BrandManageBackingBean.accType eq 'insert'}">
<cms:cmsResourceOutput key="cms.business_chooseTemplate" />:
<h:selectOneMenu value="#{BrandManageBackingBean.selectAssemblyID}" onchange="changeTemplate();">
<c:forEach items="#{BrandManageBackingBean.assemblyList}" var="assembly">
<f:selectItem itemLabel="#{assembly.assemblyName}" itemValue="#{assembly.assemblyID}" />
</c:forEach>
</h:selectOneMenu>
<div style="display:none;">
<cms:cmsCommandLink ssoRoles="2" valueKey="business_btn_chooseTemplate" action="#{BrandManageController.toEditBrandDetail}"
id="chooseTemplate_hidden_submit" name="chooseTemplate_hidden_submit"></cms:cmsCommandLink>
</div>
</c:if>
<c:if test="#{BrandManageBackingBean.accType eq 'update'}">
<cms:cmsResourceOutput key="cms.business_chooseTemplate" />:
<h:outputText name="currentAssembly" id="currentAssembly"
value="#{BrandManageBackingBean.currentAssembly.assemblyName}"></h:outputText>
</c:if>
</h:form>
</div>
<h:message for="updateHeadForm" errorClass="errorMessage"/>
<hr></hr>
</div>
<div class="subDiv">
<c:if test="#{BrandManageBackingBean.accType eq 'query'}">
<table style="width:100%">
<c:if test="#{BrandManageBackingBean.deployInf ne ''}">
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_deploy_inf" />:
</td>
<td colspan="3" style="color:red;">
<h:outputText name="deployInf" id="deployInf"
value="#{BrandManageBackingBean.deployInf}"></h:outputText>
</td>
</tr>
</c:if>
<c:if test="#{BrandManageBackingBean.currentBrand.contentId > 0 and BrandManageBackingBean.currentBrand.mchntList != null and BrandManageBackingBean.currentBrand.mchntList[0] != null}">
<div class="mchntListDiv">
<tr><td colspan='4'>品牌对应的商户代码\商户名称</td></tr>
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_cd" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_name" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_city" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_table_mchnt_st" />
</td>
</tr>
<c:forEach items="#{BrandManageBackingBean.currentBrand.mchntList}" var="mchnt">
<tr>
<td>
<h:outputText value="#{mchnt.mchntCd}"></h:outputText>
</td>
<td>
<h:outputText value="#{mchnt.mchntNm}"></h:outputText>
</td>
<td>
<h:outputText value="#{mchnt.city.adminDivisionCnNm}"></h:outputText>
</td>
<td>
<cms:cmsResourceOutput key="cms.business_table_billSt_#{mchnt.mchntSt}" />
</td>
</tr>
</c:forEach>
</div>
</c:if>
<c:if test="#{BrandManageBackingBean.currentBrand.contentId > 0}">
<!-- 品牌所属分公司 -->
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_branch" />:
</td>
<td colspan="3">
<h:outputText name="branchId" id="branchId"
value="#{BrandManageBackingBean.currentBrand.cupBranchInsIdNm}"></h:outputText>
</td>
</tr>
</c:if>
<c:forEach items="#{BrandManageBackingBean.templateControllerList}" var="tempInput">
<c:if test="#{tempInput.input.inputType eq 'text'}">
<c:if test="#{tempInput.input.showType eq 'readOnly' || tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:outputText>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'radio'}">
<c:if test="#{tempInput.input.showType eq 'readOnly' || tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneRadio value="#{tempInput.input.value}" disabled="true" id="#{tempInput.input.assemblyZoneName}">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneRadio>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'select'}">
<c:if test="#{tempInput.input.showType eq 'readOnly' || tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneMenu value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}" disabled="true">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneMenu>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'textarea'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:outputText>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'img'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<img src="#{tempInput.input.imageFileName}" width="#{tempInput.input.imgWidth}" height="#{tempInput.input.imgHight}"/>
</td>
</tr>
<c:if test="#{tempInput.input.needLink == true}">
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_imgLink" />:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}_url" id="#{tempInput.input.assemblyZoneName}_url"
value="#{tempInput.input.urlLink}"></h:outputText>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'pic'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<img src="#{tempInput.input.imageFileName}" width="#{tempInput.input.imgWidth}" height="#{tempInput.input.imgHight}"/>
</td>
</tr>
<c:if test="#{tempInput.input.needLink == true}">
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_imgLink" />:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}_url" id="#{tempInput.input.assemblyZoneName}_url"
value="#{tempInput.input.urlLink}"></h:outputText>
</td>
</tr>
</c:if>
</c:if>
</c:forEach>
</table>
</c:if>
<c:if test="#{BrandManageBackingBean.accType eq 'insert' || BrandManageBackingBean.accType eq 'update'}">
<h:form id="businessContentDetails" prependId="false" enctype="multipart/form-data">
<table>
<c:if test="#{BrandManageBackingBean.deployInf ne ''}">
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_deploy_inf" />:
</td>
<td colspan="3" style="color:red;">
<h:outputText name="deployInf" id="deployInf"
value="#{BrandManageBackingBean.deployInf}"></h:outputText>
</td>
</tr>
</c:if>
<c:if test="#{BrandManageBackingBean.currentBrand.contentId > 0 and BrandManageBackingBean.currentBrand.mchntList != null and BrandManageBackingBean.currentBrand.mchntList[0] != null}">
<div class="mchntListDiv">
<tr><td colspan='4'>品牌对应的商户代码\商户名称</td></tr>
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_cd" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_name" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_city" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_table_mchnt_st" />
</td>
</tr>
<c:forEach items="#{BrandManageBackingBean.currentBrand.mchntList}" var="mchnt">
<tr>
<td>
<h:outputText value="#{mchnt.mchntCd}"></h:outputText>
</td>
<td>
<h:outputText value="#{mchnt.mchntNm}"></h:outputText>
</td>
<td>
<h:outputText value="#{mchnt.city.adminDivisionCnNm}"></h:outputText>
</td>
<td>
<cms:cmsResourceOutput key="cms.business_table_billSt_#{mchnt.mchntSt}" />
</td>
</tr>
</c:forEach>
</div>
</c:if>
<!-- city end -->
<!-- 所属分公司 -->
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_branch" />:
</td>
<td colspan="3">
<h:selectOneMenu id="branchCdModify" name="branchCdModify" value="#{BrandManageBackingBean.currentBrand.cupBranchInsIdCd}" >
<c:forEach items="#{BrandManageBackingBean.branchAddList}" var="branchModify">
<f:selectItem itemLabel="#{branchModify.itemName}" itemValue="#{branchModify.itemID}" />
</c:forEach>
</h:selectOneMenu>
<h:message for="branchCdModify" errorClass="errorMessage"/>
</td>
</tr>
<c:forEach items="#{BrandManageBackingBean.templateControllerList}" var="tempInput">
<c:if test="#{tempInput.input.inputType eq 'text'}">
<c:if test="#{tempInput.input.showType eq 'readOnly'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:outputText>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq 'hidden'}">
<tr style="display:none;">
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:inputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:inputText>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}
<c:if test="#{tempInput.input.required eq 'true'}"><span style="color:red;">(*)</span></c:if>:
</td>
<td colspan="3">
<h:inputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:inputText>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'radio'}">
<c:if test="#{tempInput.input.showType eq 'readOnly'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneRadio value="#{tempInput.input.value}" disabled="true" id="#{tempInput.input.assemblyZoneName}">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneRadio>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq 'hidden'}">
<tr style="display:none;">
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneRadio value="#{tempInput.input.value}" disabled="true" id="#{tempInput.input.assemblyZoneName}">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneRadio>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}
<c:if test="#{tempInput.input.required eq 'true'}"><span style="color:red;">(*)</span></c:if>:
</td>
<td colspan="3">
<h:selectOneRadio value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneRadio>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'select'}">
<c:if test="#{tempInput.input.showType eq 'readOnly'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneMenu value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}" disabled="true">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneMenu>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq 'hidden'}">
<tr style="display:none;">
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneMenu value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}" disabled="true">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneMenu>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}
<c:if test="#{tempInput.input.required eq 'true'}"><span style="color:red;">(*)</span></c:if>:
</td>
<td colspan="3">
<c:if test="#{tempInput.input.changeEvent eq ''}">
<h:selectOneMenu value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneMenu>
</c:if>
<c:if test="#{tempInput.input.changeEvent eq '1'}">
<h:selectOneMenu value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}" onchange="$('#changeSecondSelectsOptions').click();">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneMenu>
</c:if>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'textarea'}">
<c:if test="#{tempInput.input.showType eq 'readOnly'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:outputText>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq 'hidden'}">
<tr style="display:none;">
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:inputTextarea name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}" cols="#{tempInput.input.maxLineLength}" rows="#{tempInput.input.maxLine}"></h:inputTextarea>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}
<c:if test="#{tempInput.input.required eq 'true'}"><span style="color:red;">(*)</span></c:if>:
</td>
<td colspan="3">
<h:inputTextarea name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}" cols="#{tempInput.input.maxLineLength}" rows="#{tempInput.input.maxLine}"></h:inputTextarea>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'pic'}">
<tr class="#{tempInput.input.assemblyZoneName}_pic_tr">
<td class="leftLabel">
#{tempInput.input.labelName}
<c:if test="#{tempInput.input.required eq 'true'}"><span style="color:red;">(*)</span></c:if>:
</td>
<td colspan="2">
<cms:cmsCommandButton type="button" ssoRoles="1" id="#{tempInput.input.assemblyZoneName}_btn" onclick="chooseUpImgFile('#{tempInput.input.assemblyZoneName}');" valueKey="cms.business_chooseFile">
</cms:cmsCommandButton><br/>
<h:message for="#{tempInput.input.assemblyZoneName}_btn" errorClass="errorMessage"/><br/>
<span id="#{tempInput.input.assemblyZoneName}_msg" style="display:none;color:red;">
<cms:cmsResourceOutput key="cms.image_upload_success"/>
</span>
</td>
<td>
<c:if test="#{tempInput.input.imageFileName != null}">
<div class="imageShow" id="#{tempInput.input.assemblyZoneName}_pic" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:#{tempInput.input.imgWidth}px;height:#{tempInput.input.imgHight}px;">
<img src="#{tempInput.input.imageFileName}" id="#{tempInput.input.assemblyZoneName}_ferret" name="#{tempInput.input.assemblyZoneName}_ferret"
width="#{tempInput.input.imgWidth}" height="#{tempInput.input.imgHight}"/>
</div>
</c:if>
<c:if test="#{tempInput.input.imageFileName == null}">
<div class="imageShow" id="#{tempInput.input.assemblyZoneName}_pic" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:#{tempInput.input.imgWidth}px;height:#{tempInput.input.imgHight}px;">
<img id="#{tempInput.input.assemblyZoneName}_ferret" name="#{tempInput.input.assemblyZoneName}_ferret" width="#{tempInput.input.imgWidth}" height="#{tempInput.input.imgHight}"/>
</div>
</c:if>
</td>
</tr>
<c:if test="#{tempInput.input.needLink == true}">
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_imgLink" /><span style="color:red;">(*)</span>:
</td>
<td colspan="3">
<h:inputText name="#{tempInput.input.assemblyZoneName}_url" id="#{tempInput.input.assemblyZoneName}_url"
value="#{tempInput.input.urlLink}"></h:inputText>
</td>
</tr>
</c:if>
</c:if>
</c:forEach>
</table>
<hr></hr>
<div class="subDiv">
<cms:cmsCommandButton ssoRoles="2" action="#{BrandManageController.editBrand}"
valueKey="cms.business_sureUpdate" >
</cms:cmsCommandButton>
<h:inputHidden id="currentAssemblyZoneName" value="#{BrandManageBackingBean.currentAssemblyZoneName}"/>
</div>
<div style="display:none;">
<cms:cmsCommandButton action="#{BrandManageController.changeSecondSelectsOptions}" id="changeSecondSelectsOptions"
valueKey="cms.business_sureUpdate">
</cms:cmsCommandButton>
</div>
</h:form>
<c:forEach items="#{BrandManageBackingBean.templateControllerList}" var="tempInput">
<c:if test="#{tempInput.input.inputType eq 'pic'}">
<div class="hiddenDiv" id="#{tempInput.input.assemblyZoneName}_hidden_div"></div>
<div class="upImgDiv" id="#{tempInput.input.assemblyZoneName}_div">
<h:form target="_iframe" id="#{tempInput.input.assemblyZoneName}_hidden_form" enctype="multipart/form-data" prependId="false">
<t:inputFileUpload name="#{tempInput.input.assemblyZoneName}_hidden" id="#{tempInput.input.assemblyZoneName}_hidden"
value="#{tempInput.pic}" storage="file" styleClass="fileUploadInput" maxlength="200000"
onchange="hiddenUploadFileOnchange(this, '#{tempInput.input.assemblyZoneName}','#{tempInput.input.imgWidth}','#{tempInput.input.imgHight}');"/>
<span style="margin-left:15px;"></span>
<cms:cmsCommandButton id="#{tempInput.input.assemblyZoneName}_hidden_submit" ssoRoles="1" valueKey="cms.business_upLoadFile" onclick="return beforUpImg('#{tempInput.input.assemblyZoneName}');" action="#{BrandManageController.upLoadImageFile}" >
</cms:cmsCommandButton>
<span style="margin-left:15px;"></span>
<h:inputHidden id="#{tempInput.input.assemblyZoneName}_currentAssemblyZoneName" value="#{BrandManageBackingBean.currentAssemblyZoneName}"/>
<cms:cmsCommandButton type="button" valueKey="cms.business_upLoadFile_close" onclick="hideBtn(this);">
</cms:cmsCommandButton>
</h:form>
</div>
</c:if>
</c:forEach>
<iframe style="display:none;" name="_iframe"></iframe>
</c:if>
</div>
</div>
</div>
</h:panelGroup>
</div>
</ui:define>
</ui:composition>
</h:body>
</html>
修改后:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:cms="http://cms.cup.com/cmstags"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:cmsComposite="http://java.sun.com/jsf/composite/compositetags">
<h:body>
<ui:composition template="../../template/CMSManagementTemplate.xhtml">
<ui:define name="template_head">
<ui:include src="../../pages/common/cmsheader.xhtml"></ui:include>
</ui:define>
<ui:define name="template_management">
<script type="text/javascript" src="/cms-web/resources/my97DatePicker/WdatePicker.js"></script>
<h:outputScript type="text/javascript">
<!-- var jcrop_exp; -->
function allchecks(obj){
$(".subcheck").attr("checked", obj.checked);
}
function clickchecks(obj){
if($(".subcheck:checked").size() == 0){
$("#allcheck").attr("checked", false);
}
}
function changeSectionControlWidth(){
var sumWidth = $("#head").css("width").replace("px", "") * 1;
var left1 = $("#subPageControl").css("width").replace("px", "") * 1;
var right1 = sumWidth - left1 - 24;
$("#sectionContent2").css("width", right1 + "px");
document.body.onscroll = function(){
body_onscroll();
}
$(".hiddenDiv").hide();
initBrandId();
<!-- var hideinput = $("input[id$=needCut]").each(function(index, obj){ -->
<!-- if(obj.value == "1"){ -->
<!-- var pix = obj.id; -->
<!-- pix = pix.replace("needCut",""); -->
<!-- initJcrop(pix); -->
<!-- } -->
<!-- }); -->
}
function clearFloat(val){
val = val + "";
return val.split(".")[0];
}
<!-- function initJcrop(pixId){ -->
<!-- var picMaxWidth = $("#" + pixId + "cutW").val(); -->
<!-- var picMaxHeight = $("#" + pixId + "cutH").val(); -->
<!-- //var jcrop_api; -->
<!-- $("#" + pixId + "_ferret").Jcrop({ -->
<!-- onChange: showCoords, -->
<!-- onSelect: showCoords, -->
<!-- allowResize: false, -->
<!-- maxSize: [picMaxWidth, picMaxHeight], -->
<!-- minSize: [picMaxWidth, picMaxHeight] -->
<!-- },function(){ -->
<!-- //jcrop_api = this; -->
<!-- jcrop_exp = this; -->
<!-- this.setSelect([0, 0, picMaxWidth, picMaxHeight]); -->
<!-- }); -->
<!-- function showCoords(c){ -->
<!-- $("#" + pixId + "cutX").val(c.x); -->
<!-- $("#" + pixId + "cutY").val(c.y); -->
<!-- $("#" + pixId + "cutW").val(c.w); -->
<!-- $("#" + pixId + "cutH").val(c.h); -->
<!-- }; -->
<!-- //jcrop_api.setSelect([0, 0, picMaxWidth, picMaxHeight]); -->
<!-- } -->
function chooseUpImgFile(pixId){
$(".upImgDiv").hide();
$(".hiddenDiv").hide();
$("#" + pixId + "_div").show();
$("#" + pixId + "_hidden_div").show();
$("#" + pixId + "_hidden_div").css("height", document.body.scrollHeight + "px");
$("#" + pixId + "_hidden_div").css("width", $("#head").css("width"));
body_onscroll();
}
function body_onscroll(){
var upImgDivTop = 250 + document.body.scrollTop;
$(".upImgDiv").css("top" , upImgDivTop + "px");
}
function beforUpImg(pixId){
var objValue = $("#" + pixId + "_hidden").val();
if(objValue == ""){
return false;
}
var regs = "jpg";
if(!IsExt(objValue, regs)){
alert("提示:请选择一个有效的文件,支持的格式有(" + regs + ")!");
return false;
}
$(".upImgDiv").hide();
$(".hiddenDiv").hide();
$("#" + pixId + "_msg").show();
<span style="color:#ff0000;">document.getElementById(pixId + '_currentAssemblyZoneName').value = pixId;</span>
setTimeout('hiddenDiv()', 1000);
return true;
}
//onkeyup="upperCase(this.id)"
function validateNum(x){
//var objValue = $("#" + pixId).val();
var objValue=document.getElementById(x).value;
if(objValue != ""){
if(isNaN(objValue)){
alert("请输入正确的数据格式!");
}
}
}
function upLoadFileClick(pixId){
if(document.getElementById(pixId).value.length == 0){
return;
}
document.getElementById(pixId + '_currentAssemblyZoneName').value = pixId;
document.getElementById(pixId + '_hidden_submit').click();
}
function hiddenUploadFileOnchange(obj, pixId, width, height){
makeUploadImgChange(obj, pixId + "_pic", pixId + "_ferret", width, height);
}
function hideBtn(obj){
$(".upImgDiv").hide();
$(".hiddenDiv").hide();
}
function changeTemplate(){
document.getElementById('chooseTemplate_hidden_submit').click();
}
function showDeployBtn(){
$("#deploy_hidden_div").show();
$("#deploy_hidden_div").css("height", document.body.scrollHeight + "px");
$("#deploy_hidden_div").css("width", $("#head").css("width"));
$("#deploy_show_div").show();
}
function addBrandIds(){
var ids = "";
$(".subcheck:checked").each(function(index, obj){
ids = ids + "_" + obj.value
});
$("#deployBrandIds").val(ids);
if(ids == ""){
alert("请选择发布项!");
return false;
}
return true;
}
function initBrandId(){
var queryBrandId = $("#queryBrandId").val();
if(queryBrandId == "0"){
$("#queryBrandId").val("")
}
}
function IsNum(s){
if (s!=""){
return !isNaN(s);
}
return false;
}
function formatNumber(obj){
var num = obj.text();
var formatNum = (Math.round(num/10))/10;
obj.text(parseFloat(formatNum));
}
$(document).ready(function(){
formatNumber($("#brand_general_grade"));//品牌综合
formatNumber($("#brand_env_grade"));//品牌环境
formatNumber($("#brand_srv_grade"));//品牌服务
formatNumber($("#brand_popular_grade"));//品牌人气
formatNumber($("#brand_taste_grade"));//品牌口味
});
</h:outputScript>
<div id="subPageControl">
<div class="controlTool">
<cms:cmsSubManagementToolBar />
</div>
<div class="leftColumn">
<cms:cmsSubMenu/>
</div>
<p id="splitter03"></p>
</div>
<div id="sectionContent2">
<h:panelGroup id="detailContent">
<div class="content_toolbar">
<ul id="detailContent_btn">
<li> <h:form id="newBrand" prependId="false">
<cms:cmsCommandLink valueKey="mchntPara_btn_to_new" ssoRoles="1" spanClass="ico_Tool03" action="#{BrandManageController.newBrand}"></cms:cmsCommandLink>
</h:form></li>
</ul>
</div>
<div class="prContent">
<div>
<!-- 查询条件开始 -->
<h:form id="queryContentForm" prependId="false">
<table class="queryTable">
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_contentType" />:
</td>
<td>
<h:selectOneMenu value="#{BrandManageBackingBean.selectContentTypeID}">
<c:forEach items="#{BrandManageBackingBean.brandTp}" var="contentType">
<f:selectItem itemLabel="#{contentType.contentTypeName}" itemValue="#{contentType.contentTypeID}" />
</c:forEach>
</h:selectOneMenu>
</td>
<td>
<cms:cmsResourceOutput key="cms.business_status" />:
</td>
<td>
<h:selectOneMenu value="#{BrandManageBackingBean.currentBrandSt}">
<c:forEach items="#{BrandManageBackingBean.brandStList}" var="brandSt">
<f:selectItem itemLabel="#{brandSt.itemName}" itemValue="#{brandSt.itemID}" />
</c:forEach>
</h:selectOneMenu>
</td>
<td>
<cms:cmsCommandButton action="#{BrandManageController.queryList}" valueKey="business_btn_query"></cms:cmsCommandButton>
</td>
</tr>
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_start_date" />:
</td>
<td>
<h:inputText id="queryStartTime" name="queryStartTime" onfocus="new WdatePicker(this,'%Y%M%D',false)"
value="#{BrandManageBackingBean.queryStartTime}">
<f:convertDateTime pattern="yyyyMMdd" />
</h:inputText>
</td>
<td>
<cms:cmsResourceOutput key="cms.business_end_date" />:
</td>
<td>
<h:inputText id="queryEndTime" name="queryEndTime" onfocus="new WdatePicker(this,'%Y%M%D',false)"
value="#{BrandManageBackingBean.queryEndTime}">
<f:convertDateTime pattern="yyyyMMdd" />
</h:inputText>
</td>
<td></td>
</tr>
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_branch" />:
</td>
<td class="branch_select">
<h:selectOneMenu value="#{BrandManageBackingBean.branchCode}">
<c:forEach items="#{BrandManageBackingBean.branchList}" var="branchSt">
<f:selectItem itemLabel="#{branchSt.itemName}" itemValue="#{branchSt.itemID}" />
</c:forEach>
</h:selectOneMenu>
</td>
<td>
<cms:cmsResourceOutput key="cms.business_brand_name" />:
</td>
<td>
<h:inputText id="queryBrandName" name="queryBrandName" value="#{BrandManageBackingBean.queryBrandName}"></h:inputText>
<div style="display:none;">
<cms:cmsResourceOutput key="cms.business_contentTypeGroup" />:
<h:selectOneMenu value="#{BrandManageBackingBean.selectContentTypeGroupID}">
<c:forEach items="#{BrandManageBackingBean.contentTypeGroupList}" var="contentTypeGroup">
<f:selectItem itemLabel="#{contentTypeGroup.contentTypeGroupName}" itemValue="#{contentTypeGroup.contentTypeGroup}" />
</c:forEach>
</h:selectOneMenu>
</div>
</td>
<td>
<cms:cmsCommandButton type="button" ssoRoles="5" onclick="showDeployBtn();" valueKey="business_btn_deploy"></cms:cmsCommandButton>
</td>
</tr>
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_brand_id" />:
</td>
<td>
<h:inputText id="queryBrandId" name="queryBrandId" value="#{BrandManageBackingBean.queryBrandId}" onkeyup="validateNum(this.id)"></h:inputText>
</td>
<td>
<h:inputHidden id="picMaxWidth" name="picMaxWidth" value="#{BrandManageBackingBean.picMaxWidth}"/>
<h:inputHidden id="picMaxHeight" name="picMaxHeight" value="#{BrandManageBackingBean.picMaxHeight}"/>
<h:inputHidden id="accImgType" name="accImgType" value="#{BrandManageBackingBean.accImgType}"/>
</td>
</tr>
</table>
<div class="hiddenDiv" id="deploy_hidden_div"></div>
<div class="upImgDiv" id="deploy_show_div">
<span style="margin-left:70px;"></span>
<!-- <c:if test="#{BrandManageBackingBean.branchCode eq '' or BrandManageBackingBean.branchCode eq '00010000'}"> -->
<!-- <cms:cmsCommandButton id="deploy_hidden_submit" ssoRoles="5" valueKey="business_btn_deploy_all" onclick="hideBtn(this);" action="#{BrandManageController.deployAll}"> -->
<!-- </cms:cmsCommandButton> -->
<!-- <span style="margin-left:15px;"></span> -->
<!-- </c:if> -->
<cms:cmsCommandButton id="deploy_hidden_submit2" ssoRoles="5" valueKey="business_btn_deploy_some" onclick="hideBtn(this);return addBrandIds();" action="#{BrandManageController.deploySome}">
</cms:cmsCommandButton>
<span style="margin-left:15px;"></span>
<cms:cmsCommandButton type="button" valueKey="business_btn_deploy_close" onclick="hideBtn(this);"></cms:cmsCommandButton>
<h:inputHidden id="deployBrandIds" value="#{BrandManageBackingBean.deployBrandIds}"/>
</div>
</h:form>
<!-- 查询条件结束 -->
<hr></hr>
<!-- 列表开始 -->
<h:form id="businessContentListForm" prependId="false">
<h:dataTable value="#{BrandManageBackingBean.brandList}" var="brand"
rowClasses="businessRow1,businessRow2" styleClass="businessTable" headerClass="businessColumn"
columnClasses="businessColumn3, businessColumn0, businessColumn1, businessColumn2">
<h:column>
<!-- 单选框 -->
<f:facet name="header">
<input type="checkbox" id="allcheck" onclick="allchecks(this);"></input>
</f:facet>
<h:panelGroup>
<input type="checkbox" class="subcheck" onclick="clickchecks(this);" value="#{brand.brandId}"></input>
</h:panelGroup>
</h:column>
<h:column>
<!-- 品牌ID -->
<f:facet name="header">
<cms:cmsResourceOutput key="cms.business_brand_id" />
</f:facet>
<h:outputText value="#{brand.brandId}"></h:outputText>
</h:column>
<h:column>
<!-- 品牌名称 -->
<f:facet name="header">
<cms:cmsResourceOutput key="cms.business_brand_name" />
</f:facet>
<h:outputText value="#{brand.brandNm}"></h:outputText>
</h:column>
<h:column>
<!-- 品牌人均 -->
<f:facet name="header">
<cms:cmsResourceOutput key="cms.business_brand_avgconsume" />
</f:facet>
<h:outputText value="#{brand.avgConsume}"></h:outputText>
</h:column>
<h:column>
<!-- 状态 -->
<f:facet name="header">
<cms:cmsResourceOutput key="cms.business_table_brand_st" />
</f:facet>
<h:panelGroup>
<cms:cmsResourceOutput key="cms.business_table_billSt_#{brand.brandSt}" />
</h:panelGroup>
</h:column>
<h:column>
<!-- 操作 -->
<f:facet name="header">
<cms:cmsResourceOutput key="cms.business_table_btn" />
</f:facet>
<h:panelGroup>
<cms:cmsCommandLink styleClass="a_look_#{brand.brandSt}" onclick="changHiddenInputValue(['selectBrandId'], '#{brand.brandId}')" action="#{BrandManageController.changeBrand}" valueKey="business_btn_search"></cms:cmsCommandLink>
<cms:cmsCommandLink ssoRoles="2" styleClass="a_update_0" onclick="changHiddenInputValue(['selectBrandId'], '#{brand.brandId}')" action="#{BrandManageController.toEditBrand}" valueKey="business_btn_update"></cms:cmsCommandLink>
</h:panelGroup>
</h:column>
</h:dataTable>
<h:inputHidden id="selectBrandId" value="#{BrandManageBackingBean.selectBrandId}"/>
</h:form>
<!-- 列表结束 -->
<div class="businessTable">
<cmsComposite:pagination page="#{BrandManageBackingBean.pagination}" render="detailContent" listener="#{BrandManageController}" />
</div>
</div>
<div style="margin-top:80px;">
<div class="subDiv">
<div style="display:none;">
<h:form id="updateHeadForm" prependId="false">
<!-- 模板选择 -->
<c:if test="#{BrandManageBackingBean.accType eq 'insert'}">
<cms:cmsResourceOutput key="cms.business_chooseTemplate" />:
<h:selectOneMenu value="#{BrandManageBackingBean.selectAssemblyID}" onchange="changeTemplate();">
<c:forEach items="#{BrandManageBackingBean.assemblyList}" var="assembly">
<f:selectItem itemLabel="#{assembly.assemblyName}" itemValue="#{assembly.assemblyID}" />
</c:forEach>
</h:selectOneMenu>
<div style="display:none;">
<cms:cmsCommandLink ssoRoles="2" valueKey="business_btn_chooseTemplate" action="#{BrandManageController.toEditBrandDetail}"
id="chooseTemplate_hidden_submit" name="chooseTemplate_hidden_submit"></cms:cmsCommandLink>
</div>
</c:if>
<c:if test="#{BrandManageBackingBean.accType eq 'update'}">
<cms:cmsResourceOutput key="cms.business_chooseTemplate" />:
<h:outputText name="currentAssembly" id="currentAssembly"
value="#{BrandManageBackingBean.currentAssembly.assemblyName}"></h:outputText>
</c:if>
</h:form>
</div>
<h:message for="updateHeadForm" errorClass="errorMessage"/>
<hr></hr>
</div>
<div class="subDiv">
<c:if test="#{BrandManageBackingBean.accType eq 'query'}">
<table style="width:100%">
<c:if test="#{BrandManageBackingBean.deployInf ne ''}">
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_deploy_inf" />:
</td>
<td colspan="3" style="color:red;">
<h:outputText name="deployInf" id="deployInf"
value="#{BrandManageBackingBean.deployInf}"></h:outputText>
</td>
</tr>
</c:if>
<c:if test="#{BrandManageBackingBean.currentBrand.contentId > 0 and BrandManageBackingBean.currentBrand.mchntList != null and BrandManageBackingBean.currentBrand.mchntList[0] != null}">
<div class="mchntListDiv">
<tr><td colspan='4'>品牌对应的商户代码\商户名称</td></tr>
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_cd" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_name" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_city" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_table_mchnt_st" />
</td>
</tr>
<c:forEach items="#{BrandManageBackingBean.currentBrand.mchntList}" var="mchnt">
<tr>
<td>
<h:outputText value="#{mchnt.mchntCd}"></h:outputText>
</td>
<td>
<h:outputText value="#{mchnt.mchntNm}"></h:outputText>
</td>
<td>
<h:outputText value="#{mchnt.city.adminDivisionCnNm}"></h:outputText>
</td>
<td>
<cms:cmsResourceOutput key="cms.business_table_billSt_#{mchnt.mchntSt}" />
</td>
</tr>
</c:forEach>
</div>
</c:if>
<c:if test="#{BrandManageBackingBean.currentBrand.contentId > 0}">
<!-- 品牌所属分公司 -->
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_branch" />:
</td>
<td colspan="3">
<h:outputText name="branchId" id="branchId"
value="#{BrandManageBackingBean.currentBrand.cupBranchInsIdNm}"></h:outputText>
</td>
</tr>
</c:if>
<c:forEach items="#{BrandManageBackingBean.templateControllerList}" var="tempInput">
<c:if test="#{tempInput.input.inputType eq 'text'}">
<c:if test="#{tempInput.input.showType eq 'readOnly' || tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:outputText>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'radio'}">
<c:if test="#{tempInput.input.showType eq 'readOnly' || tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneRadio value="#{tempInput.input.value}" disabled="true" id="#{tempInput.input.assemblyZoneName}">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneRadio>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'select'}">
<c:if test="#{tempInput.input.showType eq 'readOnly' || tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneMenu value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}" disabled="true">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneMenu>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'textarea'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:outputText>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'img'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<img src="#{tempInput.input.imageFileName}" width="#{tempInput.input.imgWidth}" height="#{tempInput.input.imgHight}"/>
</td>
</tr>
<c:if test="#{tempInput.input.needLink == true}">
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_imgLink" />:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}_url" id="#{tempInput.input.assemblyZoneName}_url"
value="#{tempInput.input.urlLink}"></h:outputText>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'pic'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<img src="#{tempInput.input.imageFileName}" width="#{tempInput.input.imgWidth}" height="#{tempInput.input.imgHight}"/>
</td>
</tr>
<c:if test="#{tempInput.input.needLink == true}">
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_imgLink" />:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}_url" id="#{tempInput.input.assemblyZoneName}_url"
value="#{tempInput.input.urlLink}"></h:outputText>
</td>
</tr>
</c:if>
</c:if>
</c:forEach>
</table>
</c:if>
<c:if test="#{BrandManageBackingBean.accType eq 'insert' || BrandManageBackingBean.accType eq 'update'}">
<h:form id="businessContentDetails" prependId="false" enctype="multipart/form-data">
<table>
<c:if test="#{BrandManageBackingBean.deployInf ne ''}">
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_deploy_inf" />:
</td>
<td colspan="3" style="color:red;">
<h:outputText name="deployInf" id="deployInf"
value="#{BrandManageBackingBean.deployInf}"></h:outputText>
</td>
</tr>
</c:if>
<c:if test="#{BrandManageBackingBean.currentBrand.contentId > 0 and BrandManageBackingBean.currentBrand.mchntList != null and BrandManageBackingBean.currentBrand.mchntList[0] != null}">
<div class="mchntListDiv">
<tr><td colspan='4'>品牌对应的商户代码\商户名称</td></tr>
<tr>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_cd" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_name" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_mchnt_city" />
</td>
<td>
<cms:cmsResourceOutput key="cms.business_table_mchnt_st" />
</td>
</tr>
<c:forEach items="#{BrandManageBackingBean.currentBrand.mchntList}" var="mchnt">
<tr>
<td>
<h:outputText value="#{mchnt.mchntCd}"></h:outputText>
</td>
<td>
<h:outputText value="#{mchnt.mchntNm}"></h:outputText>
</td>
<td>
<h:outputText value="#{mchnt.city.adminDivisionCnNm}"></h:outputText>
</td>
<td>
<cms:cmsResourceOutput key="cms.business_table_billSt_#{mchnt.mchntSt}" />
</td>
</tr>
</c:forEach>
</div>
</c:if>
<!-- city end -->
<!-- 所属分公司 -->
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_branch" />:
</td>
<td colspan="3">
<h:selectOneMenu id="branchCdModify" name="branchCdModify" value="#{BrandManageBackingBean.currentBrand.cupBranchInsIdCd}" >
<c:forEach items="#{BrandManageBackingBean.branchAddList}" var="branchModify">
<f:selectItem itemLabel="#{branchModify.itemName}" itemValue="#{branchModify.itemID}" />
</c:forEach>
</h:selectOneMenu>
<h:message for="branchCdModify" errorClass="errorMessage"/>
</td>
</tr>
<c:forEach items="#{BrandManageBackingBean.templateControllerList}" var="tempInput">
<c:if test="#{tempInput.input.inputType eq 'text'}">
<c:if test="#{tempInput.input.showType eq 'readOnly'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:outputText>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq 'hidden'}">
<tr style="display:none;">
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:inputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:inputText>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}
<c:if test="#{tempInput.input.required eq 'true'}"><span style="color:red;">(*)</span></c:if>:
</td>
<td colspan="3">
<h:inputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:inputText>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'radio'}">
<c:if test="#{tempInput.input.showType eq 'readOnly'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneRadio value="#{tempInput.input.value}" disabled="true" id="#{tempInput.input.assemblyZoneName}">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneRadio>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq 'hidden'}">
<tr style="display:none;">
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneRadio value="#{tempInput.input.value}" disabled="true" id="#{tempInput.input.assemblyZoneName}">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneRadio>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}
<c:if test="#{tempInput.input.required eq 'true'}"><span style="color:red;">(*)</span></c:if>:
</td>
<td colspan="3">
<h:selectOneRadio value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneRadio>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'select'}">
<c:if test="#{tempInput.input.showType eq 'readOnly'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneMenu value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}" disabled="true">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneMenu>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq 'hidden'}">
<tr style="display:none;">
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:selectOneMenu value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}" disabled="true">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneMenu>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}
<c:if test="#{tempInput.input.required eq 'true'}"><span style="color:red;">(*)</span></c:if>:
</td>
<td colspan="3">
<c:if test="#{tempInput.input.changeEvent eq ''}">
<h:selectOneMenu value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneMenu>
</c:if>
<c:if test="#{tempInput.input.changeEvent eq '1'}">
<h:selectOneMenu value="#{tempInput.input.value}" id="#{tempInput.input.assemblyZoneName}" onchange="$('#changeSecondSelectsOptions').click();">
<c:forEach items="#{tempInput.input.dataList}" var="inputListItem">
<f:selectItem itemLabel="#{inputListItem.itemName}" itemValue="#{inputListItem.itemID}" />
</c:forEach>
</h:selectOneMenu>
</c:if>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'textarea'}">
<c:if test="#{tempInput.input.showType eq 'readOnly'}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:outputText name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}"></h:outputText>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq 'hidden'}">
<tr style="display:none;">
<td class="leftLabel">
#{tempInput.input.labelName}:
</td>
<td colspan="3">
<h:inputTextarea name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}" cols="#{tempInput.input.maxLineLength}" rows="#{tempInput.input.maxLine}"></h:inputTextarea>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
<c:if test="#{tempInput.input.showType eq ''}">
<tr>
<td class="leftLabel">
#{tempInput.input.labelName}
<c:if test="#{tempInput.input.required eq 'true'}"><span style="color:red;">(*)</span></c:if>:
</td>
<td colspan="3">
<h:inputTextarea name="#{tempInput.input.assemblyZoneName}" id="#{tempInput.input.assemblyZoneName}"
value="#{tempInput.input.value}" cols="#{tempInput.input.maxLineLength}" rows="#{tempInput.input.maxLine}"></h:inputTextarea>
<h:message for="#{tempInput.input.assemblyZoneName}" errorClass="errorMessage"/>
</td>
</tr>
</c:if>
</c:if>
<c:if test="#{tempInput.input.inputType eq 'pic'}">
<tr class="#{tempInput.input.assemblyZoneName}_pic_tr">
<td class="leftLabel">
#{tempInput.input.labelName}
<c:if test="#{tempInput.input.required eq 'true'}"><span style="color:red;">(*)</span></c:if>:
</td>
<td colspan="2">
<cms:cmsCommandButton type="button" ssoRoles="1" id="#{tempInput.input.assemblyZoneName}_btn" onclick="chooseUpImgFile('#{tempInput.input.assemblyZoneName}');" valueKey="cms.business_chooseFile">
</cms:cmsCommandButton><br/>
<h:message for="#{tempInput.input.assemblyZoneName}_btn" errorClass="errorMessage"/><br/>
<span id="#{tempInput.input.assemblyZoneName}_msg" style="display:none;color:red;">
<cms:cmsResourceOutput key="cms.image_upload_success"/>
</span>
</td>
<td>
<c:if test="#{tempInput.input.imageFileName != null}">
<div class="imageShow" id="#{tempInput.input.assemblyZoneName}_pic" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:#{tempInput.input.imgWidth}px;height:#{tempInput.input.imgHight}px;">
<img src="#{tempInput.input.imageFileName}" id="#{tempInput.input.assemblyZoneName}_ferret" name="#{tempInput.input.assemblyZoneName}_ferret"
width="#{tempInput.input.imgWidth}" height="#{tempInput.input.imgHight}"/>
</div>
</c:if>
<c:if test="#{tempInput.input.imageFileName == null}">
<div class="imageShow" id="#{tempInput.input.assemblyZoneName}_pic" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale);width:#{tempInput.input.imgWidth}px;height:#{tempInput.input.imgHight}px;">
<img id="#{tempInput.input.assemblyZoneName}_ferret" name="#{tempInput.input.assemblyZoneName}_ferret" width="#{tempInput.input.imgWidth}" height="#{tempInput.input.imgHight}"/>
</div>
</c:if>
</td>
</tr>
<c:if test="#{tempInput.input.needLink == true}">
<tr>
<td class="leftLabel">
<cms:cmsResourceOutput key="cms.business_imgLink" /><span style="color:red;">(*)</span>:
</td>
<td colspan="3">
<h:inputText name="#{tempInput.input.assemblyZoneName}_url" id="#{tempInput.input.assemblyZoneName}_url"
value="#{tempInput.input.urlLink}"></h:inputText>
</td>
</tr>
</c:if>
</c:if>
</c:forEach>
</table>
<hr></hr>
<div class="subDiv">
<cms:cmsCommandButton ssoRoles="2" action="#{BrandManageController.editBrand}"
valueKey="cms.business_sureUpdate" >
</cms:cmsCommandButton>
</div>
<div style="display:none;">
<cms:cmsCommandButton action="#{BrandManageController.changeSecondSelectsOptions}" id="changeSecondSelectsOptions"
valueKey="cms.business_sureUpdate">
</cms:cmsCommandButton>
</div>
</h:form>
<c:forEach items="#{BrandManageBackingBean.templateControllerList}" var="tempInput">
<c:if test="#{tempInput.input.inputType eq 'pic'}">
<div class="hiddenDiv" id="#{tempInput.input.assemblyZoneName}_hidden_div"></div>
<div class="upImgDiv" id="#{tempInput.input.assemblyZoneName}_div">
<h:form target="_iframe" id="#{tempInput.input.assemblyZoneName}_hidden_form" enctype="multipart/form-data" prependId="false">
<t:inputFileUpload name="#{tempInput.input.assemblyZoneName}_hidden" id="#{tempInput.input.assemblyZoneName}_hidden"
value="#{tempInput.pic}" storage="file" styleClass="fileUploadInput" maxlength="200000"
onchange="hiddenUploadFileOnchange(this, '#{tempInput.input.assemblyZoneName}','#{tempInput.input.imgWidth}','#{tempInput.input.imgHight}');"/>
<span style="margin-left:15px;"></span>
<cms:cmsCommandButton id="#{tempInput.input.assemblyZoneName}_hidden_submit" ssoRoles="1" valueKey="cms.business_upLoadFile" onclick="return beforUpImg('#{tempInput.input.assemblyZoneName}');" action="#{BrandManageController.upLoadImageFile}" >
</cms:cmsCommandButton>
<span style="margin-left:15px;"></span>
<h:inputHidden id="#{tempInput.input.assemblyZoneName}_currentAssemblyZoneName" value="#{BrandManageBackingBean.currentAssemblyZoneName}"/>
<cms:cmsCommandButton type="button" valueKey="cms.business_upLoadFile_close" onclick="hideBtn(this);">
</cms:cmsCommandButton>
</h:form>
</div>
</c:if>
</c:forEach>
<iframe style="display:none;" name="_iframe"></iframe>
</c:if>
</div>
</div>
</div>
</h:panelGroup>
</div>
</ui:define>
</ui:composition>
</h:body>
</html>