|
@@ -199,7 +199,6 @@
|
|
|
src = $("#uploadDefaultUrlPop").val().replace('/contents/', '')+result[i].imgPath1;
|
|
src = $("#uploadDefaultUrlPop").val().replace('/contents/', '')+result[i].imgPath1;
|
|
|
src2 = $("#uploadDefaultUrlPop").val().replace('/contents/', '')+result[i].imgPath2;
|
|
src2 = $("#uploadDefaultUrlPop").val().replace('/contents/', '')+result[i].imgPath2;
|
|
|
}
|
|
}
|
|
|
- console.log('src::'+src);
|
|
|
|
|
|
|
|
|
|
html += '<tr name="imgPopRow" id="openBanner0" ';
|
|
html += '<tr name="imgPopRow" id="openBanner0" ';
|
|
|
if(result[i].contentsType=='TEXT'){
|
|
if(result[i].contentsType=='TEXT'){
|
|
@@ -241,7 +240,7 @@
|
|
|
html += '</tr>';
|
|
html += '</tr>';
|
|
|
|
|
|
|
|
html += '<tr name="imgPopRow" id="openBanner1" ';
|
|
html += '<tr name="imgPopRow" id="openBanner1" ';
|
|
|
- if(result[i].contentsType!='OPEN' && result[i].strVar7!='IMG'){
|
|
|
|
|
|
|
+ if((result[i].contentsType!='IMG') || result[i].contentsType!='OPEN' && result[i].strVar7!='IMG'){
|
|
|
html += ' style="display:none;"';
|
|
html += ' style="display:none;"';
|
|
|
}
|
|
}
|
|
|
html +='>';
|
|
html +='>';
|
|
@@ -302,6 +301,18 @@
|
|
|
html += ' </td>';
|
|
html += ' </td>';
|
|
|
html += ' </tr>';
|
|
html += ' </tr>';
|
|
|
}
|
|
}
|
|
|
|
|
+ if(contentsLoc=='SGNB002'){
|
|
|
|
|
+ html += '<tr class="cateTypeTr">';
|
|
|
|
|
+ html += ' <th>유형선택</th>';
|
|
|
|
|
+ html += ' <td colspan="3">';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="cateType'+i+'" value="TEXT" onclick="fnChangeGnbCateType(this,'+i+');" ';
|
|
|
|
|
+ if(result[i].contentsType=='TEXT'){
|
|
|
|
|
+ html += ' checked="checked" ';
|
|
|
|
|
+ }
|
|
|
|
|
+ html += '/>텍스트배너</label>';
|
|
|
|
|
+ html += ' </td>';
|
|
|
|
|
+ html += '</tr>';
|
|
|
|
|
+ }
|
|
|
if(contentsLoc=='SCM002' || contentsLoc=='SCM003'){
|
|
if(contentsLoc=='SCM002' || contentsLoc=='SCM003'){
|
|
|
html += ' <tr>';
|
|
html += ' <tr>';
|
|
|
html += ' <th>전시 설정</th>';
|
|
html += ' <th>전시 설정</th>';
|
|
@@ -391,7 +402,7 @@
|
|
|
if(strTitle!=null && strTitle!='null' && strTitle!='' ){
|
|
if(strTitle!=null && strTitle!='null' && strTitle!='' ){
|
|
|
html += fnAddTitlePopRow(strTitle);
|
|
html += fnAddTitlePopRow(strTitle);
|
|
|
}
|
|
}
|
|
|
- if(contentsLoc!='SGNB001'){
|
|
|
|
|
|
|
+ if(contentsLoc!='SGNB001' && contentsLoc!='SGNB002'){
|
|
|
if(imgPath!=null && imgPath!='null' && imgPath!='' ){
|
|
if(imgPath!=null && imgPath!='null' && imgPath!='' ){
|
|
|
html += fnAddImgPopRow(imgPath, j);
|
|
html += fnAddImgPopRow(imgPath, j);
|
|
|
}
|
|
}
|
|
@@ -580,7 +591,7 @@
|
|
|
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>';
|
|
|
}
|
|
}
|
|
|
- if(contentsLoc!='SBM005' && contentsLoc!='SBMM005' && contentsLoc!='SGNB001') {
|
|
|
|
|
|
|
+ if(contentsLoc!='SBM005' && contentsLoc!='SBMM005' && contentsLoc!='SGNB001' && contentsLoc!='SGNB002') {
|
|
|
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'){
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001' || contentsLoc=='SBM004'){
|
|
|
html += ' style="display:none;" ';
|
|
html += ' style="display:none;" ';
|
|
@@ -709,6 +720,14 @@
|
|
|
html += ' </td>';
|
|
html += ' </td>';
|
|
|
html += ' </tr>';
|
|
html += ' </tr>';
|
|
|
}
|
|
}
|
|
|
|
|
+ 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>';
|
|
|
|
|
+ }
|
|
|
if(contentsLoc=='SCM002' || contentsLoc=='SCM003'){
|
|
if(contentsLoc=='SCM002' || contentsLoc=='SCM003'){
|
|
|
html += ' <tr>';
|
|
html += ' <tr>';
|
|
|
html += ' <th>전시 설정</th>';
|
|
html += ' <th>전시 설정</th>';
|
|
@@ -983,6 +1002,10 @@
|
|
|
html = $(this).find("textarea[name=openBannerDesc"+thisIdx+"]").val();
|
|
html = $(this).find("textarea[name=openBannerDesc"+thisIdx+"]").val();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if(contentsLoc=='SGNB002'){
|
|
|
|
|
+ var thisIdx = $(this).find("input[name=tableIdx]").val();
|
|
|
|
|
+ contentsType = $(this).find("input:radio[name=cateType"+thisIdx+"]:checked").val();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001'){
|
|
if(contentsLoc=='SMM001' || contentsLoc=='SOM001'){
|
|
|
var thisIdx = $(this).find("input[name=tableIdx]").val();
|
|
var thisIdx = $(this).find("input[name=tableIdx]").val();
|