|
@@ -117,7 +117,7 @@
|
|
|
&& contentsLoc!='SBM007' && contentsLoc!='SBM008' && contentsLoc!='SBM009' && contentsLoc!='SBM010' && contentsLoc!='SBM011' && contentsLoc!='SBM013' && contentsLoc!='SBM017' && contentsLoc!='SBM018' && contentsLoc!='SBM019' && contentsLoc!='SOM003' && contentsLoc!='SOM004' && contentsLoc!='SCM004' && contentsLoc!='SBM004' && contentsLoc!='SCM001'){
|
|
&& contentsLoc!='SBM007' && contentsLoc!='SBM008' && contentsLoc!='SBM009' && contentsLoc!='SBM010' && contentsLoc!='SBM011' && contentsLoc!='SBM013' && contentsLoc!='SBM017' && contentsLoc!='SBM018' && contentsLoc!='SBM019' && contentsLoc!='SOM003' && contentsLoc!='SOM004' && contentsLoc!='SCM004' && contentsLoc!='SBM004' && contentsLoc!='SCM001'){
|
|
|
html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddImgPopRow(this);">이미지추가</button>';
|
|
html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddImgPopRow(this);">이미지추가</button>';
|
|
|
}
|
|
}
|
|
|
- if(contentsLoc!='SMM011' && contentsLoc!='SBM012' && contentsLoc!='SBMM012' && contentsLoc!='SMM001' && contentsLoc!='SOM001' && contentsLoc!='SMM003' && contentsLoc!='SMM006' && contentsLoc!='SCM004' && contentsLoc!='SBM004' && contentsLoc!='SCM001'
|
|
|
|
|
|
|
+ if(contentsLoc!='SMM011' && contentsLoc!='SBM012' && contentsLoc!='SBMM012' && contentsLoc!='SMM001' && contentsLoc!='SOM001' && contentsLoc!='SMM003' && contentsLoc!='SMM006' && contentsLoc!='SCM004' && contentsLoc!='SBM004' && contentsLoc!='SCM001' && contentsLoc!='SMM005'
|
|
|
&& contentsLoc!='SBM007' && contentsLoc!='SBM008' && contentsLoc!='SBM009' && contentsLoc!='SBM010' && contentsLoc!='SBM011' && contentsLoc!='SBM013' && contentsLoc!='SBM017' && contentsLoc!='SBM018' && contentsLoc!='SBM019' && contentsLoc!='SOM003' && contentsLoc!='SOM004' ){
|
|
&& contentsLoc!='SBM007' && contentsLoc!='SBM008' && contentsLoc!='SBM009' && contentsLoc!='SBM010' && contentsLoc!='SBM011' && contentsLoc!='SBM013' && contentsLoc!='SBM017' && contentsLoc!='SBM018' && contentsLoc!='SBM019' && contentsLoc!='SOM003' && contentsLoc!='SOM004' ){
|
|
|
html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddLinkPopRow(this);">링크추가</button>';
|
|
html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddLinkPopRow(this);">링크추가</button>';
|
|
|
}
|
|
}
|
|
@@ -388,21 +388,82 @@
|
|
|
html += '</tr>';
|
|
html += '</tr>';
|
|
|
}
|
|
}
|
|
|
if(contentsLoc=='SMM005'){
|
|
if(contentsLoc=='SMM005'){
|
|
|
- html += '<tr>';
|
|
|
|
|
- html += ' <th>배너유형</th>';
|
|
|
|
|
- html += ' <td class="bannerArea" id="bannerArea'+i+'">';
|
|
|
|
|
- if(result[i].contentsType=='1'){
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+i+'" value="1" checked="checked">1단</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+i+'" value="2" >2단</label>';
|
|
|
|
|
- }else{
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+i+'" value="1" >1단</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+i+'" value="2" checked="checked">2단</label>';
|
|
|
|
|
- }
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
|
|
+ html += '<tr>';
|
|
|
|
|
+ html += ' <th>배너유형</th>';
|
|
|
|
|
+ html += ' <td class="bannerArea" id="bannerArea'+i+'">';
|
|
|
|
|
+ if(result[i].contentsType=='1'){
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+i+'" value="1" checked="checked" onclick="fnChangeHalfBannerType(this,'+i+', 1);">1단</label>';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+i+'" value="2" onclick="fnChangeHalfBannerType(this,'+i+', 2);">2단</label>';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+i+'" value="1" onclick="fnChangeHalfBannerType(this,'+i+', 1);">1단</label>';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+i+'" value="2" checked="checked" onclick="fnChangeHalfBannerType(this,'+i+', 2);">2단</label>';
|
|
|
|
|
+ }
|
|
|
|
|
+ html += ' </td>';
|
|
|
|
|
+ html += '</tr>';
|
|
|
|
|
+
|
|
|
|
|
+ var src = '';
|
|
|
|
|
+ src = $("#uploadDefaultUrlPop").val().replace('/contents/', '');
|
|
|
|
|
+
|
|
|
|
|
+ html += '<tr name="imgPopRow" id="halfBanner0">\n';
|
|
|
|
|
+ html += ' <th>1단<br>이미지</th>\n';
|
|
|
|
|
+ html += ' <td><div class="uFile w300">\n';
|
|
|
|
|
+ html += ' <input id="filePop_'+i+'" name="file" type="file" class="uFileInput w300" onchange="fnGnbFileUpload(this, '+i+', 0)"/>\n';
|
|
|
|
|
+ html += ' <label for="filePop_'+i+'" class="uFileLabel">파일선택</label>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="imgPath" value="'+result[i].imgPath1+'"/>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="newImgFile" value="" />\n';
|
|
|
|
|
+ html += ' </div>\n';
|
|
|
|
|
+ html += ' <div id="imgViewPop_'+i+'" class=';
|
|
|
|
|
+ if(result[i].imgPath1 !=''){
|
|
|
|
|
+ html += '"on">';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ html += '"off">';
|
|
|
|
|
+ }
|
|
|
|
|
+ html += ' <img id="bannerPreViewUrlPop_'+i+'" src="'+src+result[i].imgPath1+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>\n';
|
|
|
|
|
+ html += ' </div></td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+
|
|
|
|
|
+ html += '<tr name="linkPopRow" id="link1dep">\n';
|
|
|
|
|
+ html += ' <th>1단 링크<br>(없으면 #)<br>(메인은 /)</th>\n';
|
|
|
|
|
+ html += ' <td><input name="link" type="text" maxLength="200" required="required" data-valid-name="링크" placeholder="외부 URL 입력시 https:// 붙여주세요. ex)https://www.levis-kids.co.kr" value="'+result[i].strVar1+'"></td>\n';
|
|
|
|
|
+ html += ' <td class="aL">\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+
|
|
|
|
|
+ html += '<tr name="imgPopRow" id="halfBanner1"';
|
|
|
|
|
+ if(result[i].contentsType=='1') {
|
|
|
|
|
+ html += ' style="display: none;"';
|
|
|
|
|
+ }
|
|
|
|
|
+ html +=' >\n';
|
|
|
|
|
+ html += ' <th>2단<br>이미지</th>\n';
|
|
|
|
|
+ html += ' <td><div class="uFile w300">';
|
|
|
|
|
+ html += ' <input id="filePop_100'+i+'" name="file" type="file" class="uFileInput w300" onchange="fnGnbFileUpload(this, 100'+i+', 1)"/>\n';
|
|
|
|
|
+ html += ' <label for="filePop_100'+i+'" class="uFileLabel">파일선택</label>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="imgPath" value="'+result[i].imgPath2+'"/>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="newImgFile" value="" />\n';
|
|
|
|
|
+ html += ' </div>\n';
|
|
|
|
|
+ html += ' <div id="imgViewPop_100'+i+'" class=';
|
|
|
|
|
+ if(result[i].imgPath2!=''){
|
|
|
|
|
+ html += '"on">';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ html += '"off">';
|
|
|
|
|
+ }
|
|
|
|
|
+ html += ' <img id="bannerPreViewUrlPop_100'+i+'" src="'+src+result[i].imgPath2+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>\n';
|
|
|
|
|
+ html += ' </div></td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+
|
|
|
|
|
+ html += '<tr name="linkPopRow" id="link2dep" ';
|
|
|
|
|
+ if(result[i].contentsType=='1') {
|
|
|
|
|
+ html += ' style="display: none;" ';
|
|
|
|
|
+ }
|
|
|
|
|
+ html += '>\n';
|
|
|
|
|
+ html += ' <th>2단 링크<br>(없으면 #)<br>(메인은 /)</th>\n';
|
|
|
|
|
+ html += ' <td><input name="link" type="text" maxLength="200" required="required" data-valid-name="링크" placeholder="외부 URL 입력시 https:// 붙여주세요. ex)https://www.levis-kids.co.kr" value="'+result[i].strVar2+'"></td>\n';
|
|
|
|
|
+ html += ' <td class="aL">\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
}
|
|
}
|
|
|
html += '</thead><tbody>';
|
|
html += '</thead><tbody>';
|
|
|
- if(contentsLoc!='SCM002' && contentsLoc!='SCM003' && contentsLoc!='SMM011' && contentsLoc!='SBM012' && contentsLoc!='SBMM012'){
|
|
|
|
|
|
|
+ if(contentsLoc!='SCM002' && contentsLoc!='SCM003' && contentsLoc!='SMM011' && contentsLoc!='SBM012' && contentsLoc!='SBMM012' && contentsLoc!='SMM005'){
|
|
|
for(var j=1; j<5; j++){
|
|
for(var j=1; j<5; j++){
|
|
|
var strTitle = eval("result["+i+"].strTitle" + j);
|
|
var strTitle = eval("result["+i+"].strTitle" + j);
|
|
|
var imgPath = eval("result["+i+"].imgPath" + j);
|
|
var imgPath = eval("result["+i+"].imgPath" + j);
|
|
@@ -585,40 +646,40 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- var html = '<table class="frmStyle mcTable" style="margin-bottom:30px" id="mcTable'+dataIdx+'">';
|
|
|
|
|
- html += '<input type="hidden" name="tableIdx" value="'+dataIdx+'" data-id="'+dataIdx+'">';
|
|
|
|
|
- html += '<colgroup>';
|
|
|
|
|
- html += '<col style="width:10%;"/>';
|
|
|
|
|
- html += '<col style="width:55%;"/>';
|
|
|
|
|
- html += '<col/>';
|
|
|
|
|
- html += '</colgroup>';
|
|
|
|
|
- html += '<thead><tr><th>전시일시</th><td><input name="dispStdt" type="text" class="w80 schDate" maxlength="10" required="required" data-valid-name="노출시작일" data-valid-type="calendar"/>';
|
|
|
|
|
|
|
+ var html = '<table class="frmStyle mcTable" style="margin-bottom:30px" id="mcTable'+dataIdx+'">\n';
|
|
|
|
|
+ html += '<input type="hidden" name="tableIdx" value="'+dataIdx+'" data-id="'+dataIdx+'">\n';
|
|
|
|
|
+ html += '<colgroup>\n';
|
|
|
|
|
+ html += '<col style="width:10%;"/>\n';
|
|
|
|
|
+ html += '<col style="width:55%;"/>\n';
|
|
|
|
|
+ html += '<col/>\n';
|
|
|
|
|
+ html += '</colgroup>\n';
|
|
|
|
|
+ html += '<thead><tr><th>전시일시</th><td><input name="dispStdt" type="text" class="w80 schDate" maxlength="10" required="required" data-valid-name="노출시작일" data-valid-type="calendar"/>\n';
|
|
|
html += '<select name="stTimeHour" required="required" data-valid-name="노출기간 시작시간">';
|
|
html += '<select name="stTimeHour" required="required" data-valid-name="노출기간 시작시간">';
|
|
|
html += fnCreateTimeOption(24);
|
|
html += fnCreateTimeOption(24);
|
|
|
- html += '</select>';
|
|
|
|
|
|
|
+ html += '</select>\n';
|
|
|
html += '<select name="stTimeMin" required="required" data-valid-name="노출기간 시작시간">';
|
|
html += '<select name="stTimeMin" required="required" data-valid-name="노출기간 시작시간">';
|
|
|
html += fnCreateTimeOption(60);
|
|
html += fnCreateTimeOption(60);
|
|
|
- html += '</select>';
|
|
|
|
|
- html += '<span> ~ </span>';
|
|
|
|
|
- html += '<input name="dispEddt" type="text" class="w80 schDate" maxlength="10" required="required" data-valid-name="노출종료일" data-valid-type="calendar"/>';
|
|
|
|
|
|
|
+ html += '</select>\n';
|
|
|
|
|
+ html += '<span> ~ </span>\n';
|
|
|
|
|
+ html += '<input name="dispEddt" type="text" class="w80 schDate" maxlength="10" required="required" data-valid-name="노출종료일" data-valid-type="calendar"/>\n';
|
|
|
html += '<select name="edTimeHour" required="required" data-valid-name="노출기간 종료시간">';
|
|
html += '<select name="edTimeHour" required="required" data-valid-name="노출기간 종료시간">';
|
|
|
html += fnCreateTimeOption(24,23);
|
|
html += fnCreateTimeOption(24,23);
|
|
|
- html += '</select>';
|
|
|
|
|
|
|
+ html += '</select>\n';
|
|
|
html += '<select name="edTimeMin" required="required" data-valid-name="노출기간 종료시간">';
|
|
html += '<select name="edTimeMin" required="required" data-valid-name="노출기간 종료시간">';
|
|
|
html += fnCreateTimeOption(60,59);
|
|
html += fnCreateTimeOption(60,59);
|
|
|
- html += '</select>';
|
|
|
|
|
- html += '<input name="dispOrd" type="text" class="w80"placeholder="전시순서" style="margin-left:5px; text-align:center"/>';
|
|
|
|
|
- html += '</td>';
|
|
|
|
|
- html += '<td class="aL">';
|
|
|
|
|
|
|
+ html += '</select>\n';
|
|
|
|
|
+ html += '<input name="dispOrd" type="text" class="w80"placeholder="전시순서" style="margin-left:5px; text-align:center"/>\n';
|
|
|
|
|
+ html += '</td>\n';
|
|
|
|
|
+ html += '<td class="aL">\n';
|
|
|
if(contentsLoc!='SCM002' && contentsLoc!='SCM003' && contentsLoc!='SMM011' && contentsLoc!='SBM012' && contentsLoc!='SBMM012' && contentsLoc!='SMM003' && contentsLoc!='SMM004' && contentsLoc!='SMM006'
|
|
if(contentsLoc!='SCM002' && contentsLoc!='SCM003' && contentsLoc!='SMM011' && contentsLoc!='SBM012' && contentsLoc!='SBMM012' && contentsLoc!='SMM003' && contentsLoc!='SMM004' && contentsLoc!='SMM006'
|
|
|
&& contentsLoc!='SBM007' && contentsLoc!='SBM008' && contentsLoc!='SBM009' && contentsLoc!='SBM010' && contentsLoc!='SBM011' && contentsLoc!='SBM013' && contentsLoc!='SBM017' && contentsLoc!='SBM018' && contentsLoc!='SBM019'
|
|
&& contentsLoc!='SBM007' && contentsLoc!='SBM008' && contentsLoc!='SBM009' && contentsLoc!='SBM010' && contentsLoc!='SBM011' && contentsLoc!='SBM013' && contentsLoc!='SBM017' && contentsLoc!='SBM018' && contentsLoc!='SBM019'
|
|
|
- && contentsLoc!='SOM003' && contentsLoc!='SOM004' && contentsLoc!='SCM004' ){
|
|
|
|
|
|
|
+ && contentsLoc!='SOM003' && contentsLoc!='SOM004' && contentsLoc!='SCM004' && contentsLoc!='SMM005'){
|
|
|
if(contentsLoc!='SMM005'){
|
|
if(contentsLoc!='SMM005'){
|
|
|
html += '<button type="button" class="btn btn-base btn-lg"';
|
|
html += '<button type="button" class="btn btn-base btn-lg"';
|
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004' || contentsLoc=='SCM001'){
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004' || contentsLoc=='SCM001'){
|
|
|
html += ' style="display:none;" ';
|
|
html += ' style="display:none;" ';
|
|
|
}
|
|
}
|
|
|
- html+= ' id="addTitle'+dataIdx+'" onclick="fnAddTitlePopRow(this);">타이틀추가</button>';
|
|
|
|
|
|
|
+ html+= ' id="addTitle'+dataIdx+'" onclick="fnAddTitlePopRow(this);">타이틀추가</button>\n';
|
|
|
}
|
|
}
|
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SMM002' || contentsLoc=='SBM004' || contentsLoc=='SBMM004' || contentsLoc=='SCM001' || contentsLoc=='SOM001'){
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SMM002' || contentsLoc=='SBM004' || contentsLoc=='SBMM004' || contentsLoc=='SCM001' || contentsLoc=='SOM001'){
|
|
|
html += '<button type="button" class="btn btn-base btn-lg"';
|
|
html += '<button type="button" class="btn btn-base btn-lg"';
|
|
@@ -629,194 +690,244 @@
|
|
|
if(contentsLoc=='SBM004' || contentsLoc=='SCM001'){
|
|
if(contentsLoc=='SBM004' || contentsLoc=='SCM001'){
|
|
|
html += ' style="display:none;" ';
|
|
html += ' style="display:none;" ';
|
|
|
}
|
|
}
|
|
|
- html += ' onclick="fnAddSubTextPopRow(this);">서브텍스트추가</button>';
|
|
|
|
|
|
|
+ html += ' onclick="fnAddSubTextPopRow(this);">서브텍스트추가</button>\n';
|
|
|
}
|
|
}
|
|
|
if(contentsLoc=='SBM005' || contentsLoc=='SBMM005'){
|
|
if(contentsLoc=='SBM005' || contentsLoc=='SBMM005'){
|
|
|
- html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddBrandDescRow(this);">브랜드소개추가</button>';
|
|
|
|
|
|
|
+ html += '<button type="button" class="btn btn-base btn-lg" onclick="fnAddBrandDescRow(this);">브랜드소개추가</button>\n';
|
|
|
}
|
|
}
|
|
|
- if(contentsLoc!='SBM005' && contentsLoc!='SBMM005' && contentsLoc!='SGNB001' && contentsLoc!='SGNB002') {
|
|
|
|
|
|
|
+ if(contentsLoc!='SBM005' && contentsLoc!='SBMM005' && contentsLoc!='SGNB001' && contentsLoc!='SGNB002' && contentsLoc!='SMM005') {
|
|
|
html += '<button type="button" class="btn btn-base btn-lg"';
|
|
html += '<button type="button" class="btn btn-base btn-lg"';
|
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004' || contentsLoc=='SCM001'){
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004' || contentsLoc=='SCM001'){
|
|
|
html += ' style="display:none;" ';
|
|
html += ' style="display:none;" ';
|
|
|
}
|
|
}
|
|
|
- html += ' id="addImg'+dataIdx+'" onclick="fnAddImgPopRow(this);">이미지추가</button>';
|
|
|
|
|
|
|
+ html += ' id="addImg'+dataIdx+'" onclick="fnAddImgPopRow(this);">이미지추가</button>\n';
|
|
|
}
|
|
}
|
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004'){
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004'){
|
|
|
- html += '<button type="button" style="display: none;" class="btn btn-base btn-lg" id="addMobImg'+dataIdx+'" onclick="fnAddMobImgPopRow(this, '+dataIdx+');">모바일이미지추가</button>';
|
|
|
|
|
|
|
+ html += '<button type="button" style="display: none;" class="btn btn-base btn-lg" id="addMobImg'+dataIdx+'" onclick="fnAddMobImgPopRow(this, '+dataIdx+');">모바일이미지추가</button>\n';
|
|
|
}
|
|
}
|
|
|
html += '<button type="button" class="btn btn-base btn-lg"';
|
|
html += '<button type="button" class="btn btn-base btn-lg"';
|
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004' || contentsLoc=='SCM001'){
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004' || contentsLoc=='SCM001'){
|
|
|
html += ' style="display:none;" ';
|
|
html += ' style="display:none;" ';
|
|
|
}
|
|
}
|
|
|
- html += ' id="addLink'+dataIdx+'" onclick="fnAddLinkPopRow(this);">링크추가</button>';
|
|
|
|
|
|
|
+ html += ' id="addLink'+dataIdx+'" onclick="fnAddLinkPopRow(this);">링크추가</button>\n';
|
|
|
}
|
|
}
|
|
|
- html += '<button type="button" class="btn btn-danger btn-lg" onclick="fnDeleteContentsRow(this);">삭제</button></td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
|
|
+ html += '<button type="button" class="btn btn-danger btn-lg" onclick="fnDeleteContentsRow(this);">삭제</button></td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
if(contentsLoc=='SBM004' || contentsLoc=='SBM005' || contentsLoc=='SBMM004' || contentsLoc=='SBMM005'){
|
|
if(contentsLoc=='SBM004' || contentsLoc=='SBM005' || contentsLoc=='SBMM004' || contentsLoc=='SBMM005'){
|
|
|
- html += '<tr class="cateTypeTr">';
|
|
|
|
|
- html += ' <th>클릭시<br>페이지창</th>';
|
|
|
|
|
- html += ' <td colspan="3">';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="pageTarget'+dataIdx+'" value="SELF" checked="checked"/>현재창</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="pageTarget'+dataIdx+'" value="BLANK" />새창</label>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
|
|
+ html += '<tr class="cateTypeTr">\n';
|
|
|
|
|
+ html += ' <th>클릭시<br>페이지창</th>\n';
|
|
|
|
|
+ html += ' <td colspan="3">\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="pageTarget'+dataIdx+'" value="SELF" checked="checked"/>현재창</label>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="pageTarget'+dataIdx+'" value="BLANK" />새창</label>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
}
|
|
}
|
|
|
if(contentsLoc=='SMM011' || contentsLoc=='SBM012' || contentsLoc=='SBMM012'){
|
|
if(contentsLoc=='SMM011' || contentsLoc=='SBM012' || contentsLoc=='SBMM012'){
|
|
|
- html += '<tr class="cateTypeTr">';
|
|
|
|
|
- html += ' <th>동영상구분</th>';
|
|
|
|
|
- html += ' <td colspan="3">';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="tvPlayer'+dataIdx+'" value="Y" onclick="fnChangeTvPlayer(this,'+dataIdx+');" checked="checked" />YouTube</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="tvPlayer'+dataIdx+'" value="M" onclick="fnChangeTvPlayer(this,'+dataIdx+');"/>MP4</label>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
- html += '<tr class="cateTypeTr" name="tvY'+dataIdx+'">';
|
|
|
|
|
- html += ' <th>미디어<br>컨텐츠키</th>';
|
|
|
|
|
- html += ' <td colspan="3">';
|
|
|
|
|
- html += ' <input name="tvMediaKey'+dataIdx+'" type="text" class="w150" maxlength="200" data-valid-name="미디어 컨텐츠키" value=""/>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
- html += '<tr class="cateTypeTr" name="tvM'+dataIdx+'" style="display: none;">';
|
|
|
|
|
- html +=' <th>파일첨부<em class="required" title="필수"></em></th>';
|
|
|
|
|
- html +=' <td class="infoTxt" colSpan="5">';
|
|
|
|
|
- html +=' <div class="uFile w300">';
|
|
|
|
|
- html +=' <input id="file'+dataIdx+'" name="file" type="file" class="uFileInput w300" onchange="fnVideoFileUpload(this, '+dataIdx+')"/>';
|
|
|
|
|
- html +=' <label for="file'+dataIdx+'" class="uFileLabel">파일선택</label>';
|
|
|
|
|
- html +=' <input type="hidden" name="kufKey"/>';
|
|
|
|
|
- html +=' <input type="hidden" name="kmcKey"/>';
|
|
|
|
|
- html +=' </div>';
|
|
|
|
|
- html +=' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
|
|
+ html += '<tr class="cateTypeTr">\n';
|
|
|
|
|
+ html += ' <th>동영상구분</th>\n';
|
|
|
|
|
+ html += ' <td colspan="3">\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="tvPlayer'+dataIdx+'" value="Y" onclick="fnChangeTvPlayer(this,'+dataIdx+');" checked="checked" />YouTube</label>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="tvPlayer'+dataIdx+'" value="M" onclick="fnChangeTvPlayer(this,'+dataIdx+');"/>MP4</label>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+ html += '<tr class="cateTypeTr" name="tvY'+dataIdx+'">\n';
|
|
|
|
|
+ html += ' <th>미디어<br>컨텐츠키</th>\n';
|
|
|
|
|
+ html += ' <td colspan="3">\n';
|
|
|
|
|
+ html += ' <input name="tvMediaKey'+dataIdx+'" type="text" class="w150" maxlength="200" data-valid-name="미디어 컨텐츠키" value=""/>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+ html += '<tr class="cateTypeTr" name="tvM'+dataIdx+'" style="display: none;">\n';
|
|
|
|
|
+ html +=' <th>파일첨부<em class="required" title="필수"></em></th>\n';
|
|
|
|
|
+ html +=' <td class="infoTxt" colSpan="5">\n';
|
|
|
|
|
+ html +=' <div class="uFile w300">\n';
|
|
|
|
|
+ html +=' <input id="file'+dataIdx+'" name="file" type="file" class="uFileInput w300" onchange="fnVideoFileUpload(this, '+dataIdx+')"/>\n';
|
|
|
|
|
+ html +=' <label for="file'+dataIdx+'" class="uFileLabel">파일선택</label>\n';
|
|
|
|
|
+ html +=' <input type="hidden" name="kufKey"/>\n';
|
|
|
|
|
+ html +=' <input type="hidden" name="kmcKey"/>\n';
|
|
|
|
|
+ html +=' </div>\n';
|
|
|
|
|
+ html +=' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
}
|
|
}
|
|
|
if(contentsLoc=='SGNB001'){
|
|
if(contentsLoc=='SGNB001'){
|
|
|
- html += '<tr class="cateTypeTr">';
|
|
|
|
|
- html += ' <th>유형선택</th>';
|
|
|
|
|
- html += ' <td colspan="3">';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="cateType'+dataIdx+'" value="OPEN" onclick="fnChangeGnbCateType(this,'+dataIdx+');" checked="checked"/>오픈배너</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="cateType'+dataIdx+'" value="IMG" onclick="fnChangeGnbCateType(this,'+dataIdx+');"/>이미지배너</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="cateType'+dataIdx+'" value="TEXT" onclick="fnChangeGnbCateType(this,'+dataIdx+');"/>텍스트배너</label>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
|
|
+ html += '<tr class="cateTypeTr">\n';
|
|
|
|
|
+ html += ' <th>유형선택</th>\n';
|
|
|
|
|
+ html += ' <td colspan="3">\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="cateType'+dataIdx+'" value="OPEN" onclick="fnChangeGnbCateType(this,'+dataIdx+');" checked="checked"/>오픈배너</label>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="cateType'+dataIdx+'" value="IMG" onclick="fnChangeGnbCateType(this,'+dataIdx+');"/>이미지배너</label>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="cateType'+dataIdx+'" value="TEXT" onclick="fnChangeGnbCateType(this,'+dataIdx+');"/>텍스트배너</label>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
|
|
|
var src = '';
|
|
var src = '';
|
|
|
- html += '<tr name="imgPopRow" id="openBanner0">';
|
|
|
|
|
- html += ' <th>띠배너<br>이미지</th>';
|
|
|
|
|
- html += ' <td><div class="uFile w300">';
|
|
|
|
|
- html += ' <input id="filePop_'+dataIdx+'" name="file" type="file" class="uFileInput w300" onchange="fnGnbFileUpload(this, '+dataIdx+', 0)"/>';
|
|
|
|
|
- html += ' <label for="filePop_'+dataIdx+'" class="uFileLabel">파일선택</label>';
|
|
|
|
|
- html += ' <input type="hidden" name="imgPath" value=""/>';
|
|
|
|
|
- html += ' <input type="hidden" name="newImgFile" value="" />';
|
|
|
|
|
- html += ' </div>';
|
|
|
|
|
|
|
+ html += '<tr name="imgPopRow" id="openBanner0">\n';
|
|
|
|
|
+ html += ' <th>띠배너<br>이미지</th>\n';
|
|
|
|
|
+ html += ' <td><div class="uFile w300">\n';
|
|
|
|
|
+ html += ' <input id="filePop_'+dataIdx+'" name="file" type="file" class="uFileInput w300" onchange="fnGnbFileUpload(this, '+dataIdx+', 0)"/>\n';
|
|
|
|
|
+ html += ' <label for="filePop_'+dataIdx+'" class="uFileLabel">파일선택</label>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="imgPath" value=""/>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="newImgFile" value="" />\n';
|
|
|
|
|
+ html += ' </div>\n';
|
|
|
html += ' <div id="imgViewPop_'+dataIdx+'" class=';
|
|
html += ' <div id="imgViewPop_'+dataIdx+'" class=';
|
|
|
if(src!=''){
|
|
if(src!=''){
|
|
|
html += '"on">';
|
|
html += '"on">';
|
|
|
}else{
|
|
}else{
|
|
|
html += '"off">';
|
|
html += '"off">';
|
|
|
}
|
|
}
|
|
|
- html += ' <img id="bannerPreViewUrlPop_'+dataIdx+'" src="'+src+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>';
|
|
|
|
|
- html += ' </div></td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
-
|
|
|
|
|
- html += '<tr class="cateTypeTr" name="openBannerTypeTr'+dataIdx+'" id="openBannerTypeTr">';
|
|
|
|
|
- html += ' <th>확장형 배너<br>유형</th>';
|
|
|
|
|
- html += ' <td colspan="3">';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="openBannerType'+dataIdx+'" value="IMG" onclick="fnChangeOpenBannerType(this,'+dataIdx+');" checked="checked"/>이미지형</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="openBannerType'+dataIdx+'" value="HTML" onclick="fnChangeOpenBannerType(this,'+dataIdx+');"/>HTML형</label>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
-
|
|
|
|
|
- html += '<tr name="imgPopRow" id="openBanner1">';
|
|
|
|
|
- html += ' <th>오픈배너<br>이미지</th>';
|
|
|
|
|
|
|
+ html += ' <img id="bannerPreViewUrlPop_'+dataIdx+'" src="'+src+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>\n';
|
|
|
|
|
+ html += ' </div></td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+
|
|
|
|
|
+ html += '<tr class="cateTypeTr" name="openBannerTypeTr'+dataIdx+'" id="openBannerTypeTr">\n';
|
|
|
|
|
+ html += ' <th>확장형 배너<br>유형</th>\n';
|
|
|
|
|
+ html += ' <td colspan="3">\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="openBannerType'+dataIdx+'" value="IMG" onclick="fnChangeOpenBannerType(this,'+dataIdx+');" checked="checked"/>이미지형</label>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="openBannerType'+dataIdx+'" value="HTML" onclick="fnChangeOpenBannerType(this,'+dataIdx+');"/>HTML형</label>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+
|
|
|
|
|
+ html += '<tr name="imgPopRow" id="openBanner1">\n';
|
|
|
|
|
+ html += ' <th>오픈배너<br>이미지</th>\n';
|
|
|
html += ' <td><div class="uFile w300">';
|
|
html += ' <td><div class="uFile w300">';
|
|
|
- html += ' <input id="filePop_100'+dataIdx+'" name="file" type="file" class="uFileInput w300" onchange="fnGnbFileUpload(this, 100'+dataIdx+', 1)"/>';
|
|
|
|
|
- html += ' <label for="filePop_100'+dataIdx+'" class="uFileLabel">파일선택</label>';
|
|
|
|
|
- html += ' <input type="hidden" name="imgPath" value=""/>';
|
|
|
|
|
- html += ' <input type="hidden" name="newImgFile" value="" />';
|
|
|
|
|
- html += ' </div>';
|
|
|
|
|
|
|
+ html += ' <input id="filePop_100'+dataIdx+'" name="file" type="file" class="uFileInput w300" onchange="fnGnbFileUpload(this, 100'+dataIdx+', 1)"/>\n';
|
|
|
|
|
+ html += ' <label for="filePop_100'+dataIdx+'" class="uFileLabel">파일선택</label>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="imgPath" value=""/>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="newImgFile" value="" />\n';
|
|
|
|
|
+ html += ' </div>\n';
|
|
|
html += ' <div id="imgViewPop_100'+dataIdx+'" class=';
|
|
html += ' <div id="imgViewPop_100'+dataIdx+'" class=';
|
|
|
if(src!=''){
|
|
if(src!=''){
|
|
|
html += '"on">';
|
|
html += '"on">';
|
|
|
}else{
|
|
}else{
|
|
|
html += '"off">';
|
|
html += '"off">';
|
|
|
}
|
|
}
|
|
|
- html += ' <img id="bannerPreViewUrlPop_100'+dataIdx+'" src="'+src+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>';
|
|
|
|
|
- html += ' </div></td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
-
|
|
|
|
|
- html += '<tr name="imgPopRow" id="openBanner2" style="display: none;">';
|
|
|
|
|
- html += ' <input type="hidden" name="htmlDesc'+dataIdx+'" id="htmlDesc'+dataIdx+'" value="">';
|
|
|
|
|
- html += ' <th>오픈배너<br>HTML</th>';
|
|
|
|
|
- html += ' <td class="padT10"><div class="tabJrContArea">';
|
|
|
|
|
- html += ' <textarea class="textareaR3 summernote" name="openBannerDesc'+dataIdx+'" id="openBannerDesc'+dataIdx+'"></textarea>';
|
|
|
|
|
- html += ' </div>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
-
|
|
|
|
|
- html += ' <tr name="tabBgColorRow'+dataIdx+'">';
|
|
|
|
|
- html += ' <th>배경 RGB코드</th>';
|
|
|
|
|
- html += ' <td><input name="gnbBgColor'+dataIdx+'" type="text" maxlength="200" data-valid-name="배경 RGB코드" value=""/></td>';
|
|
|
|
|
- html += ' </tr>';
|
|
|
|
|
- html += ' <tr name="tabShowYnRow'+dataIdx+'">';
|
|
|
|
|
- html += ' <th>확장형 배너<br>닫기 버튼<br>노출여부</th>';
|
|
|
|
|
- html += ' <td>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="todayYn'+dataIdx+'" value="Y" checked="checked"/>노출</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="todayYn'+dataIdx+'" value="N" />비노출</label>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += ' </tr>';
|
|
|
|
|
|
|
+ html += ' <img id="bannerPreViewUrlPop_100'+dataIdx+'" src="'+src+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>\n';
|
|
|
|
|
+ html += ' </div></td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+
|
|
|
|
|
+ html += '<tr name="imgPopRow" id="openBanner2" style="display: none;">\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="htmlDesc'+dataIdx+'" id="htmlDesc'+dataIdx+'" value="">\n';
|
|
|
|
|
+ html += ' <th>오픈배너<br>HTML</th>\n';
|
|
|
|
|
+ html += ' <td class="padT10"><div class="tabJrContArea">\n';
|
|
|
|
|
+ html += ' <textarea class="textareaR3 summernote" name="openBannerDesc'+dataIdx+'" id="openBannerDesc'+dataIdx+'"></textarea>\n';
|
|
|
|
|
+ html += ' </div>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+
|
|
|
|
|
+ html += ' <tr name="tabBgColorRow'+dataIdx+'">\n';
|
|
|
|
|
+ html += ' <th>배경 RGB코드</th>\n';
|
|
|
|
|
+ html += ' <td><input name="gnbBgColor'+dataIdx+'" type="text" maxlength="200" data-valid-name="배경 RGB코드" value=""/></td>\n';
|
|
|
|
|
+ html += ' </tr>\n';
|
|
|
|
|
+ html += ' <tr name="tabShowYnRow'+dataIdx+'">\n';
|
|
|
|
|
+ html += ' <th>확장형 배너<br>닫기 버튼<br>노출여부</th>\n';
|
|
|
|
|
+ html += ' <td>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="todayYn'+dataIdx+'" value="Y" checked="checked"/>노출</label>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="todayYn'+dataIdx+'" value="N" />비노출</label>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += ' </tr>\n';
|
|
|
}
|
|
}
|
|
|
if(contentsLoc=='SGNB002'){
|
|
if(contentsLoc=='SGNB002'){
|
|
|
- html += '<tr class="cateTypeTr">';
|
|
|
|
|
- html += ' <th>유형선택</th>';
|
|
|
|
|
- html += ' <td colspan="3">';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="cateType'+dataIdx+'" value="TEXT" onclick="fnChangeGnbCateType(this,'+dataIdx+');" checked="checked"/>텍스트배너</label>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
|
|
+ html += '<tr class="cateTypeTr">\n';
|
|
|
|
|
+ html += ' <th>유형선택</th>\n';
|
|
|
|
|
+ html += ' <td colspan="3">\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="cateType'+dataIdx+'" value="TEXT" onclick="fnChangeGnbCateType(this,'+dataIdx+');" checked="checked"/>텍스트배너</label>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
}
|
|
}
|
|
|
if(contentsLoc=='SCM002' || contentsLoc=='SCM003'){
|
|
if(contentsLoc=='SCM002' || contentsLoc=='SCM003'){
|
|
|
- html += ' <tr>';
|
|
|
|
|
- html += ' <th>전시 설정</th>';
|
|
|
|
|
- html += ' <td>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispYn" value="Y" checked="checked"/>노출</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispYn" value="N"/>비노출</label>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
|
|
+ html += ' <tr>\n';
|
|
|
|
|
+ html += ' <th>전시 설정</th>\n';
|
|
|
|
|
+ html += ' <td>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="dispYn" value="Y" checked="checked"/>노출</label>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="dispYn" value="N"/>비노출</label>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
if(contentsLoc=='SCM003'){
|
|
if(contentsLoc=='SCM003'){
|
|
|
- html += ' <th>상품 노출 개수</th>';
|
|
|
|
|
- html += ' <td>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="10" checked="checked"/>10개</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="20"/>20개</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="30"/>30개</label>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
|
|
+ html += ' <th>상품 노출 개수</th>\n';
|
|
|
|
|
+ html += ' <td>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="10" checked="checked"/>10개</label>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="20"/>20개</label>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="dispCnt" value="30"/>30개</label>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
}
|
|
}
|
|
|
- html += ' </tr>';
|
|
|
|
|
|
|
+ html += ' </tr>\n';
|
|
|
}
|
|
}
|
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001'){
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001'){
|
|
|
- html += '<tr>';
|
|
|
|
|
- html += ' <th>컨텐츠유형</th>';
|
|
|
|
|
- html += ' <td class="planArea" name="planArea" id="planArea'+dataIdx+'" colspan="3">';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="contentsType'+dataIdx+'" value="P" onclick="fnChangeContentsType(this,'+dataIdx+');" checked="checked"/>기획전</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="contentsType'+dataIdx+'" value="E" onclick="fnChangeContentsType(this,'+dataIdx+');"/>이벤트</label>';
|
|
|
|
|
- html += ' <input type="text" class="w100 inputPlan" name="planSq'+dataIdx+'" value=""/>';
|
|
|
|
|
- html += ' <button type="button" class="btn btn btn-dark btn-sm btnPlan" onclick="fnSearchPlan('+dataIdx+');">기획전검색</button>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
- html += '<tr>';
|
|
|
|
|
- html += ' <th>썸네일 <br>글자 색상</th>';
|
|
|
|
|
- html += ' <td colspan="3">';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="thumTextColor'+dataIdx+'" value="BLACK" checked="checked"/>BLACK</label>';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="thumTextColor'+dataIdx+'" value="WHITE" />WHITE</label>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
|
|
+ html += '<tr>\n';
|
|
|
|
|
+ html += ' <th>컨텐츠유형</th>\n';
|
|
|
|
|
+ html += ' <td class="planArea" name="planArea" id="planArea'+dataIdx+'" colspan="3">\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="contentsType'+dataIdx+'" value="P" onclick="fnChangeContentsType(this,'+dataIdx+');" checked="checked"/>기획전</label>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="contentsType'+dataIdx+'" value="E" onclick="fnChangeContentsType(this,'+dataIdx+');"/>이벤트</label>\n';
|
|
|
|
|
+ html += ' <input type="text" class="w100 inputPlan" name="planSq'+dataIdx+'" value=""/>\n';
|
|
|
|
|
+ html += ' <button type="button" class="btn btn btn-dark btn-sm btnPlan" onclick="fnSearchPlan('+dataIdx+');">기획전검색</button>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+ html += '<tr>\n';
|
|
|
|
|
+ html += ' <th>썸네일 <br>글자 색상</th>\n';
|
|
|
|
|
+ html += ' <td colspan="3">\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="thumTextColor'+dataIdx+'" value="BLACK" checked="checked"/>BLACK</label>\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="thumTextColor'+dataIdx+'" value="WHITE" />WHITE</label>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
}
|
|
}
|
|
|
if(contentsLoc=='SMM005'){
|
|
if(contentsLoc=='SMM005'){
|
|
|
- html += '<tr>';
|
|
|
|
|
- html += ' <th>배너유형</th>';
|
|
|
|
|
- html += ' <td class="bannerArea" id="bannerArea'+dataIdx+'">';
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+dataIdx+'" value="1" checked="checked">1단</label>'; /*onclick="fnChangeBannerType(this,1);"*/
|
|
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+dataIdx+'" value="2" >2단</label>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += '</tr>';
|
|
|
|
|
|
|
+ html += '<tr>\n';
|
|
|
|
|
+ html += ' <th>배너유형</th>\n';
|
|
|
|
|
+ html += ' <td class="bannerArea" id="bannerArea'+dataIdx+'">\n';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+dataIdx+'" value="1" checked="checked" onclick="fnChangeHalfBannerType(this,'+dataIdx+', 1);">1단</label>'; /*onclick="fnChangeBannerType(this,1);"\n*/
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="bannerType'+dataIdx+'" value="2" onclick="fnChangeHalfBannerType(this,'+dataIdx+', 2);">2단</label>\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+ var src = '';
|
|
|
|
|
+ html += '<tr name="imgPopRow" id="halfBanner0">\n';
|
|
|
|
|
+ html += ' <th>1단<br>이미지</th>\n';
|
|
|
|
|
+ html += ' <td><div class="uFile w300">\n';
|
|
|
|
|
+ html += ' <input id="filePop_'+dataIdx+'" name="file" type="file" class="uFileInput w300" onchange="fnGnbFileUpload(this, '+dataIdx+', 0)"/>\n';
|
|
|
|
|
+ html += ' <label for="filePop_'+dataIdx+'" class="uFileLabel">파일선택</label>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="imgPath" value=""/>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="newImgFile" value="" />\n';
|
|
|
|
|
+ html += ' </div>\n';
|
|
|
|
|
+ html += ' <div id="imgViewPop_'+dataIdx+'" class=';
|
|
|
|
|
+ if(src!=''){
|
|
|
|
|
+ html += '"on">';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ html += '"off">';
|
|
|
|
|
+ }
|
|
|
|
|
+ html += ' <img id="bannerPreViewUrlPop_'+dataIdx+'" src="'+src+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>\n';
|
|
|
|
|
+ html += ' </div></td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+
|
|
|
|
|
+ html += '<tr name="linkPopRow" id="link1dep">\n';
|
|
|
|
|
+ html += ' <th>1단 링크<br>(없으면 #)<br>(메인은 /)</th>\n';
|
|
|
|
|
+ html += ' <td><input name="link" type="text" maxLength="200" required="required" data-valid-name="링크" placeholder="외부 URL 입력시 https:// 붙여주세요. ex)https://www.levis-kids.co.kr"></td>\n';
|
|
|
|
|
+ html += ' <td class="aL">\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+
|
|
|
|
|
+ html += '<tr name="imgPopRow" id="halfBanner1" style="display: none;">\n';
|
|
|
|
|
+ html += ' <th>2단<br>이미지</th>\n';
|
|
|
|
|
+ html += ' <td><div class="uFile w300">';
|
|
|
|
|
+ html += ' <input id="filePop_100'+dataIdx+'" name="file" type="file" class="uFileInput w300" onchange="fnGnbFileUpload(this, 100'+dataIdx+', 1)"/>\n';
|
|
|
|
|
+ html += ' <label for="filePop_100'+dataIdx+'" class="uFileLabel">파일선택</label>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="imgPath" value=""/>\n';
|
|
|
|
|
+ html += ' <input type="hidden" name="newImgFile" value="" />\n';
|
|
|
|
|
+ html += ' </div>\n';
|
|
|
|
|
+ html += ' <div id="imgViewPop_100'+dataIdx+'" class=';
|
|
|
|
|
+ if(src!=''){
|
|
|
|
|
+ html += '"on">';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ html += '"off">';
|
|
|
|
|
+ }
|
|
|
|
|
+ html += ' <img id="bannerPreViewUrlPop_100'+dataIdx+'" src="'+src+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>\n';
|
|
|
|
|
+ html += ' </div></td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
|
|
+
|
|
|
|
|
+ html += '<tr name="linkPopRow" id="link2dep" style="display: none;">\n';
|
|
|
|
|
+ html += ' <th>2단 링크<br>(없으면 #)<br>(메인은 /)</th>\n';
|
|
|
|
|
+ html += ' <td><input name="link" type="text" maxLength="200" required="required" data-valid-name="링크" placeholder="외부 URL 입력시 https:// 붙여주세요. ex)https://www.levis-kids.co.kr"></td>\n';
|
|
|
|
|
+ html += ' <td class="aL">\n';
|
|
|
|
|
+ html += ' </td>\n';
|
|
|
|
|
+ html += '</tr>\n';
|
|
|
}
|
|
}
|
|
|
- html += '</thead><tbody>';
|
|
|
|
|
- html += '</tbody></table>';
|
|
|
|
|
|
|
+ html += '</thead><tbody>\n';
|
|
|
|
|
+ html += '</tbody></table>\n';
|
|
|
|
|
|
|
|
$("#popSortable").prepend(html);
|
|
$("#popSortable").prepend(html);
|
|
|
$("#popSortable").sortable();
|
|
$("#popSortable").sortable();
|
|
@@ -844,6 +955,7 @@
|
|
|
$("#addLink"+dataIdx).click();
|
|
$("#addLink"+dataIdx).click();
|
|
|
gagaSn.setContents('#openBannerDesc'+dataIdx, '');
|
|
gagaSn.setContents('#openBannerDesc'+dataIdx, '');
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
fnResetDispOrd();
|
|
fnResetDispOrd();
|
|
|
tableLen = tableLen+1;
|
|
tableLen = tableLen+1;
|
|
|
});
|
|
});
|
|
@@ -935,34 +1047,35 @@
|
|
|
var mNewImgVal = $(this).find(".mobImgFile").find("input[name=newImgFile]").val();
|
|
var mNewImgVal = $(this).find(".mobImgFile").find("input[name=newImgFile]").val();
|
|
|
|
|
|
|
|
if(gagajf.isNull(contentsTypeVal)){
|
|
if(gagajf.isNull(contentsTypeVal)){
|
|
|
- mcxDialog.alert('컨텐츠 유형을 선택해주세요.');
|
|
|
|
|
- dataBool = false;
|
|
|
|
|
|
|
+ mcxDialog.alert((i+1)+'번째 컨텐츠 유형을 선택해주세요.');
|
|
|
|
|
+ return false;
|
|
|
}
|
|
}
|
|
|
if(contentsTypeVal=='P'){
|
|
if(contentsTypeVal=='P'){
|
|
|
if(gagajf.isNull($(this).find("input[name=planSq"+thisIdx+"]").val())){
|
|
if(gagajf.isNull($(this).find("input[name=planSq"+thisIdx+"]").val())){
|
|
|
mcxDialog.alert((i+1)+'번째 기획전 번호를 입력해주세요.');
|
|
mcxDialog.alert((i+1)+'번째 기획전 번호를 입력해주세요.');
|
|
|
$(this).find("input[name=planSq"+thisIdx+"]").focus();
|
|
$(this).find("input[name=planSq"+thisIdx+"]").focus();
|
|
|
- dataBool = false;
|
|
|
|
|
|
|
+ return false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if(gagajf.isNull(textColorVal)){
|
|
if(gagajf.isNull(textColorVal)){
|
|
|
- mcxDialog.alert('썸네일 글자 색상을 선택해주세요.');
|
|
|
|
|
- dataBool = false;
|
|
|
|
|
|
|
+ mcxDialog.alert((i+1)+'번째 썸네일 글자 색상을 선택해주세요.');
|
|
|
|
|
+ return false;
|
|
|
}
|
|
}
|
|
|
if(gagajf.isNull(imgVal) && gagajf.isNull(newImgVal)){
|
|
if(gagajf.isNull(imgVal) && gagajf.isNull(newImgVal)){
|
|
|
mcxDialog.alert((i+1)+'번째 이미지를 선택해주세요.');
|
|
mcxDialog.alert((i+1)+'번째 이미지를 선택해주세요.');
|
|
|
- dataBool = false;
|
|
|
|
|
|
|
+ return false;
|
|
|
}
|
|
}
|
|
|
if(gagajf.isNull(mImgVal) && gagajf.isNull(mNewImgVal)){
|
|
if(gagajf.isNull(mImgVal) && gagajf.isNull(mNewImgVal)){
|
|
|
mcxDialog.alert((i+1)+'번째 모바일용 이미지를 선택해주세요.');
|
|
mcxDialog.alert((i+1)+'번째 모바일용 이미지를 선택해주세요.');
|
|
|
- dataBool = false;
|
|
|
|
|
|
|
+ return false;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- if(!dataBool){
|
|
|
|
|
- return false;
|
|
|
|
|
- }else{
|
|
|
|
|
- return true;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if(!dataBool){
|
|
|
|
|
+ // return false;
|
|
|
|
|
+ // }else{
|
|
|
|
|
+ // return true;
|
|
|
|
|
+ // }
|
|
|
|
|
+ return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 전시 일시 체크
|
|
// 전시 일시 체크
|
|
@@ -978,14 +1091,16 @@
|
|
|
if(fromDate > toDate){
|
|
if(fromDate > toDate){
|
|
|
mcxDialog.alert((i+1) +"번째 " +"시작일자는 종료일자 보다 클 수 없습니다.");
|
|
mcxDialog.alert((i+1) +"번째 " +"시작일자는 종료일자 보다 클 수 없습니다.");
|
|
|
$(this).find('input[name=dispStdt]').focus();
|
|
$(this).find('input[name=dispStdt]').focus();
|
|
|
- dateBool = false;
|
|
|
|
|
|
|
+ // dateBool = false;
|
|
|
|
|
+ return false;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- if(!dateBool){
|
|
|
|
|
- return false;
|
|
|
|
|
- }else{
|
|
|
|
|
- return true;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if(!dateBool){
|
|
|
|
|
+ // return false;
|
|
|
|
|
+ // }else{
|
|
|
|
|
+ // return true;
|
|
|
|
|
+ // }
|
|
|
|
|
+ return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 동영상 확장자 체크
|
|
// 동영상 확장자 체크
|
|
@@ -999,16 +1114,70 @@
|
|
|
if(ext!='mp4'&&ext!='MP4'){
|
|
if(ext!='mp4'&&ext!='MP4'){
|
|
|
mcxDialog.alert((i+1) +'번째 ' +ext+'파일은 업로드 하실 수 없습니다.');
|
|
mcxDialog.alert((i+1) +'번째 ' +ext+'파일은 업로드 하실 수 없습니다.');
|
|
|
$(this).find("input:radio[name=tvPlayer"+thisIdx+"]").focus();
|
|
$(this).find("input:radio[name=tvPlayer"+thisIdx+"]").focus();
|
|
|
- dataBool = false;
|
|
|
|
|
|
|
+ return false;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- if(!dataBool){
|
|
|
|
|
- return false;
|
|
|
|
|
- }else{
|
|
|
|
|
- return true;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if(!dataBool){
|
|
|
|
|
+ // return false;
|
|
|
|
|
+ // }else{
|
|
|
|
|
+ // return true;
|
|
|
|
|
+ // }
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ var bannerDataValidation = function (){
|
|
|
|
|
+ var dataBool = true;
|
|
|
|
|
+ $(".mcTable").each(function(i) {
|
|
|
|
|
+ var thisIdx = $(this).find("input[name=tableIdx]").val();
|
|
|
|
|
+ var bannerType = $(this).find("input[name=bannerType"+thisIdx+"]:checked").val();
|
|
|
|
|
+ console.log(i+1+' bannerType::'+bannerType);
|
|
|
|
|
+
|
|
|
|
|
+ if(bannerType == 1){
|
|
|
|
|
+ if(gagajf.isNull($("#mcTable"+thisIdx+" #halfBanner0").find("input[name=imgPath]").val())){
|
|
|
|
|
+ if(gagajf.isNull($("#mcTable"+thisIdx+" #halfBanner0").find("input[name=newImgFile]").val())){
|
|
|
|
|
+ mcxDialog.alert((i+1) +'번째 컨텐츠 1단 이미지를 선택해주세요.');
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(gagajf.isNull($("#mcTable"+thisIdx+" #link1dep").find("input[name=link]").val())){
|
|
|
|
|
+ mcxDialog.alert((i+1) +'번째 컨텐츠 1단 링크를 입력해주세요.');
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ if(gagajf.isNull($("#mcTable"+thisIdx+" #halfBanner0").find("input[name=imgPath]").val())){
|
|
|
|
|
+ if(gagajf.isNull($("#mcTable"+thisIdx+" #halfBanner0").find("input[name=newImgFile]").val())){
|
|
|
|
|
+ mcxDialog.alert((i+1) +'번째 컨텐츠 1단 이미지를 선택해주세요.');
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(gagajf.isNull($("#mcTable"+thisIdx+" #link1dep").find("input[name=link]").val())){
|
|
|
|
|
+ mcxDialog.alert((i+1) +'번째 컨텐츠 1단 링크를 입력해주세요.');
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(gagajf.isNull($("#mcTable"+thisIdx+" #halfBanner1").find("input[name=imgPath]").val())){
|
|
|
|
|
+ if(gagajf.isNull($("#mcTable"+thisIdx+" #halfBanner1").find("input[name=newImgFile]").val())){
|
|
|
|
|
+ mcxDialog.alert((i+1) +'번째 컨텐츠 2단 이미지를 선택해주세요.');
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(gagajf.isNull($("#mcTable"+thisIdx+" #link2dep").find("input[name=link]").val())){
|
|
|
|
|
+ mcxDialog.alert((i+1) +'번째 컨텐츠 2단 링크를 입력해주세요.');
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return true;
|
|
|
|
|
+ // if(!dataBool){
|
|
|
|
|
+ // return false;
|
|
|
|
|
+ // }else{
|
|
|
|
|
+ // return true;
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1016,8 +1185,10 @@
|
|
|
*/
|
|
*/
|
|
|
var dataArr = [];
|
|
var dataArr = [];
|
|
|
$("#btnPopSave").on("click", function (){
|
|
$("#btnPopSave").on("click", function (){
|
|
|
- if (!gagajf.checkRequired("#popSortable")) {
|
|
|
|
|
- return;
|
|
|
|
|
|
|
+ if(contentsLoc != 'SMM005'){
|
|
|
|
|
+ if (!gagajf.checkRequired("#popSortable")) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 전시일시 체크
|
|
// 전시일시 체크
|
|
@@ -1037,6 +1208,12 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if(contentsLoc == 'SMM005'){
|
|
|
|
|
+ if(!bannerDataValidation()){
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
var titleBool = true;
|
|
var titleBool = true;
|
|
|
$("#popSortable").find('input[name=title]').each(function(idx, title) {
|
|
$("#popSortable").find('input[name=title]').each(function(idx, title) {
|
|
|
if ($(title).val()==''){
|
|
if ($(title).val()==''){
|
|
@@ -1309,7 +1486,7 @@
|
|
|
var html = '<tr name="linkPopRow">';
|
|
var html = '<tr name="linkPopRow">';
|
|
|
html += '<th>링크 (없으면 #)<br>(메인은 /)</th>';
|
|
html += '<th>링크 (없으면 #)<br>(메인은 /)</th>';
|
|
|
html += '<td><input name="link" type="text" maxlength="200" required="required" data-valid-name="링크" placeholder="외부 URL 입력시 https:// 붙여주세요. ex)https://www.levis-kids.co.kr" value="'+val+'"/></td>';
|
|
html += '<td><input name="link" type="text" maxlength="200" required="required" data-valid-name="링크" placeholder="외부 URL 입력시 https:// 붙여주세요. ex)https://www.levis-kids.co.kr" value="'+val+'"/></td>';
|
|
|
- if(contentsLoc!='SMM001' && contentsLoc!='SOM001' && contentsLoc!='SCM001' && contentsLoc!='SBM004'){
|
|
|
|
|
|
|
+ if(contentsLoc!='SMM001' && contentsLoc!='SOM001' && contentsLoc!='SCM001' && contentsLoc!='SBM004' && contentsLoc!='SMM005'){
|
|
|
html += '<td class="aL"><button type="button" class="btn icn" onclick="fnDeleteTrRow(this);"><i class="fa fa-times" aria-hidden="true"></i></button></td>';
|
|
html += '<td class="aL"><button type="button" class="btn icn" onclick="fnDeleteTrRow(this);"><i class="fa fa-times" aria-hidden="true"></i></button></td>';
|
|
|
}
|
|
}
|
|
|
html += '</tr>';
|
|
html += '</tr>';
|
|
@@ -1398,7 +1575,11 @@
|
|
|
var html = '<tr class="pcImg" name="imgPopRow">';
|
|
var html = '<tr class="pcImg" name="imgPopRow">';
|
|
|
html += '<input type="hidden" name="imgIdx" pcImg-idx="'+imgIndex+'" />';
|
|
html += '<input type="hidden" name="imgIdx" pcImg-idx="'+imgIndex+'" />';
|
|
|
if(idx>1){
|
|
if(idx>1){
|
|
|
- html += '<th>모바일용 이미지';
|
|
|
|
|
|
|
+ if(contentsLoc != 'SMM005'){
|
|
|
|
|
+ html += '<th>모바일용 이미지';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ html += '<th>이미지';
|
|
|
|
|
+ }
|
|
|
}else{
|
|
}else{
|
|
|
html += '<th>이미지';
|
|
html += '<th>이미지';
|
|
|
}
|
|
}
|
|
@@ -1423,7 +1604,7 @@
|
|
|
}
|
|
}
|
|
|
html += '<img id="bannerPreViewUrlPop_'+imgIndex+'" src="'+src+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>';
|
|
html += '<img id="bannerPreViewUrlPop_'+imgIndex+'" src="'+src+'" style="height:100px; max-width:500px;" onclick="cfnOpenImagePreViewPopup(\'bannerPreimgViewPop\',$(this).attr(\'src\'));"/>';
|
|
|
html += '</div></td>';
|
|
html += '</div></td>';
|
|
|
- if(contentsLoc!='SMM001' && contentsLoc!='SOM001' && contentsLoc!='SCM001' && contentsLoc!='SBM004'){
|
|
|
|
|
|
|
+ if(contentsLoc!='SMM001' && contentsLoc!='SOM001' && contentsLoc!='SCM001' && contentsLoc!='SBM004' && contentsLoc!='SMM005'){
|
|
|
html += '<td class="aL"><button type="button" class="btn icn" onclick="fnDeleteTrRow(this);"><i class="fa fa-times" aria-hidden="true"></i></button></td>';
|
|
html += '<td class="aL"><button type="button" class="btn icn" onclick="fnDeleteTrRow(this);"><i class="fa fa-times" aria-hidden="true"></i></button></td>';
|
|
|
}
|
|
}
|
|
|
html += '</tr>';
|
|
html += '</tr>';
|
|
@@ -1601,6 +1782,22 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ var fnChangeHalfBannerType = function (obj, tableNum, num){
|
|
|
|
|
+ if(num==1){
|
|
|
|
|
+ $("#mcTable"+tableNum+" #halfBanner1").find("input[name=imgPath]").val('');
|
|
|
|
|
+ $("#mcTable"+tableNum+" #halfBanner1").find("input[name=newImgFile]").val('');
|
|
|
|
|
+ $("#mcTable"+tableNum+" #halfBanner1 #imgViewPop_100"+tableNum).removeClass("on");
|
|
|
|
|
+ $("#mcTable"+tableNum+" #halfBanner1 #bannerPreViewUrlPop_100"+tableNum).attr("src","");
|
|
|
|
|
+ $("#mcTable"+tableNum+" #halfBanner1 .uFileLabel").text('');
|
|
|
|
|
+ $("#mcTable"+tableNum+" #link2dep").find("input[name=link]").val('');
|
|
|
|
|
+ $("#mcTable"+tableNum+" #halfBanner1").hide();
|
|
|
|
|
+ $("#mcTable"+tableNum+" #link2dep").hide();
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $("#mcTable"+tableNum+" #halfBanner1").show();
|
|
|
|
|
+ $("#mcTable"+tableNum+" #link2dep").show();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
$("#popTitle").text("["+contentsLoc+"] "+gagaAgGrid.lookupValue(contentsLocArr, contentsLoc));
|
|
$("#popTitle").text("["+contentsLoc+"] "+gagaAgGrid.lookupValue(contentsLocArr, contentsLoc));
|
|
|
|
|
|