|
@@ -99,11 +99,13 @@
|
|
|
html += ' <label class="rdoBtn"><input type="radio" name="cateType'+addIdx+'" value="L" onclick="fnChangeCateType(this,'+addIdx+');"/>이벤트링크</label>';
|
|
html += ' <label class="rdoBtn"><input type="radio" name="cateType'+addIdx+'" value="L" onclick="fnChangeCateType(this,'+addIdx+');"/>이벤트링크</label>';
|
|
|
html += ' </td>';
|
|
html += ' </td>';
|
|
|
html += '</tr>';
|
|
html += '</tr>';
|
|
|
- }else if(contentsLoc=='SBM002'){
|
|
|
|
|
|
|
+ }else if(contentsLoc=='SBM002' || contentsLoc=='SBMM002'){
|
|
|
html += '<tr class="cateTypeTr">';
|
|
html += '<tr class="cateTypeTr">';
|
|
|
html += ' <th>유형선택</th>';
|
|
html += ' <th>유형선택</th>';
|
|
|
html += ' <td colspan="3">';
|
|
html += ' <td colspan="3">';
|
|
|
- html += ' <label class="rdoBtn"><input type="radio" name="cateType'+addIdx+'" value="L" checked="checked"/>이벤트링크</label>';
|
|
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="cateType'+addIdx+'" value="L" onclick="fnChangeGnbType(this,'+addIdx+');" checked="checked"/>이벤트링크</label>';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="cateType'+addIdx+'" value="B" onclick="fnChangeGnbType(this,'+addIdx+');" />룩북</label>';
|
|
|
|
|
+ html += ' <label class="rdoBtn"><input type="radio" name="cateType'+addIdx+'" value="P" onclick="fnChangeGnbType(this,'+addIdx+');" />기획전</label>';
|
|
|
html += ' </td>';
|
|
html += ' </td>';
|
|
|
html += '</tr>';
|
|
html += '</tr>';
|
|
|
}
|
|
}
|
|
@@ -144,7 +146,7 @@
|
|
|
html += ' </td>';
|
|
html += ' </td>';
|
|
|
html += ' </tr>';
|
|
html += ' </tr>';
|
|
|
}
|
|
}
|
|
|
- }else if(contentsLoc=='SBM002'){
|
|
|
|
|
|
|
+ }else if(contentsLoc=='SBM002'||contentsLoc=='SBMM002'){
|
|
|
html += ' <tr name="tabLinkTitleRow">';
|
|
html += ' <tr name="tabLinkTitleRow">';
|
|
|
html += ' <th>타이틀</th>';
|
|
html += ' <th>타이틀</th>';
|
|
|
html += ' <td><input name="title" type="text" maxlength="200" data-valid-name="타이틀" value=""/></td>';
|
|
html += ' <td><input name="title" type="text" maxlength="200" data-valid-name="타이틀" value=""/></td>';
|
|
@@ -371,7 +373,7 @@
|
|
|
gtabNm = "아울렛";
|
|
gtabNm = "아울렛";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(radioValue=='L'){
|
|
|
|
|
|
|
+ if(radioValue=='L' || radioValue=='B' || radioValue=='P'){
|
|
|
gtabNm = $(this).find("input[name=title]").val();
|
|
gtabNm = $(this).find("input[name=title]").val();
|
|
|
linkUrl = $(this).find("input[name=link]").val();
|
|
linkUrl = $(this).find("input[name=link]").val();
|
|
|
}
|
|
}
|
|
@@ -604,9 +606,21 @@
|
|
|
html += ' <th>유형선택</th>';
|
|
html += ' <th>유형선택</th>';
|
|
|
html += ' <td colspan="3">';
|
|
html += ' <td colspan="3">';
|
|
|
if(result[i].brandGroupNo!='' && result[i].brandGroupNo!=null){
|
|
if(result[i].brandGroupNo!='' && result[i].brandGroupNo!=null){
|
|
|
|
|
+ html += '<label class="rdoBtn"><input type="radio" name="cateType'+i+'" value="L" onclick="fnChangeGnbType(this,'+i+');"';
|
|
|
if(result[i].contentsType=='L'){
|
|
if(result[i].contentsType=='L'){
|
|
|
- html += '<label class="rdoBtn"><input type="radio" name="cateType'+i+'" value="L" checked="checked"/>이벤트링크</label>';
|
|
|
|
|
|
|
+ html += ' checked="checked" ';
|
|
|
}
|
|
}
|
|
|
|
|
+ html += '/>이벤트링크</label>';
|
|
|
|
|
+ html += '<label class="rdoBtn"><input type="radio" name="cateType'+i+'" value="B" onclick="fnChangeGnbType(this,'+i+');"';
|
|
|
|
|
+ if(result[i].contentsType=='B'){
|
|
|
|
|
+ html += ' checked="checked" ';
|
|
|
|
|
+ }
|
|
|
|
|
+ html += ' />룩북</label>';
|
|
|
|
|
+ html += '<label class="rdoBtn"><input type="radio" name="cateType'+i+'" value="P" onclick="fnChangeGnbType(this,'+i+');"';
|
|
|
|
|
+ if(result[i].contentsType=='P'){
|
|
|
|
|
+ html += ' checked="checked" ';
|
|
|
|
|
+ }
|
|
|
|
|
+ html += ' />기획전</label>';
|
|
|
}else{
|
|
}else{
|
|
|
if(result[i].contentsType=='C'){
|
|
if(result[i].contentsType=='C'){
|
|
|
html += '<label class="rdoBtn"><input type="radio" name="cateType'+i+'" value="C" onclick="fnChangeCateType(this,'+i+');" checked="checked"/>대카테고리</label>';
|
|
html += '<label class="rdoBtn"><input type="radio" name="cateType'+i+'" value="C" onclick="fnChangeCateType(this,'+i+');" checked="checked"/>대카테고리</label>';
|
|
@@ -650,23 +664,7 @@
|
|
|
html += ' </tr>';
|
|
html += ' </tr>';
|
|
|
html += ' </thead>';
|
|
html += ' </thead>';
|
|
|
html += '<tbody>';
|
|
html += '<tbody>';
|
|
|
- if(result[i].contentsType=='C'){
|
|
|
|
|
- html += ' <tr name="tabCateRow">';
|
|
|
|
|
- html += ' <th>카테고리</th>';
|
|
|
|
|
- html += ' <td colspan="3">카테고리선택';
|
|
|
|
|
- html += ' <select name="cate1List">';
|
|
|
|
|
- html += ' <option value="">[선택]</option>';
|
|
|
|
|
- for(let i=0; i<cate1List.length; i++){
|
|
|
|
|
- if(cateNo == cate1List[i].cd){
|
|
|
|
|
- html += '<option value="'+cate1List[i].cd+'" selected="selected">['+cate1List[i].cd+'] '+cate1List[i].cdNm+'</option>';
|
|
|
|
|
- }else{
|
|
|
|
|
- html += '<option value="'+cate1List[i].cd+'">['+cate1List[i].cd+'] '+cate1List[i].cdNm+'</option>';
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- html += ' </select>';
|
|
|
|
|
- html += ' </td>';
|
|
|
|
|
- html += ' </tr>';
|
|
|
|
|
- }else if(result[i].contentsType=='L'){
|
|
|
|
|
|
|
+ if(result[i].brandGroupNo!='' && result[i].brandGroupNo!=null){
|
|
|
html += ' <tr name="tabLinkTitleRow">';
|
|
html += ' <tr name="tabLinkTitleRow">';
|
|
|
html += ' <th>타이틀</th>';
|
|
html += ' <th>타이틀</th>';
|
|
|
html += ' <td><input name="title" type="text" maxlength="200" data-valid-name="타이틀" value="'+result[i].gtabNm+'"/></td>';
|
|
html += ' <td><input name="title" type="text" maxlength="200" data-valid-name="타이틀" value="'+result[i].gtabNm+'"/></td>';
|
|
@@ -675,7 +673,35 @@
|
|
|
html += ' <th>링크 (없으면 #)</th>';
|
|
html += ' <th>링크 (없으면 #)</th>';
|
|
|
html += ' <td><input name="link" type="text" maxlength="200" data-valid-name="링크" value="'+result[i].linkUrl+'"/></td>';
|
|
html += ' <td><input name="link" type="text" maxlength="200" data-valid-name="링크" value="'+result[i].linkUrl+'"/></td>';
|
|
|
html += ' </tr>';
|
|
html += ' </tr>';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ if(result[i].contentsType=='C'){
|
|
|
|
|
+ html += ' <tr name="tabCateRow">';
|
|
|
|
|
+ html += ' <th>카테고리</th>';
|
|
|
|
|
+ html += ' <td colspan="3">카테고리선택';
|
|
|
|
|
+ html += ' <select name="cate1List">';
|
|
|
|
|
+ html += ' <option value="">[선택]</option>';
|
|
|
|
|
+ for(let i=0; i<cate1List.length; i++){
|
|
|
|
|
+ if(cateNo == cate1List[i].cd){
|
|
|
|
|
+ html += '<option value="'+cate1List[i].cd+'" selected="selected">['+cate1List[i].cd+'] '+cate1List[i].cdNm+'</option>';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ html += '<option value="'+cate1List[i].cd+'">['+cate1List[i].cd+'] '+cate1List[i].cdNm+'</option>';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ html += ' </select>';
|
|
|
|
|
+ html += ' </td>';
|
|
|
|
|
+ html += ' </tr>';
|
|
|
|
|
+ }else if(result[i].contentsType=='L'){
|
|
|
|
|
+ html += ' <tr name="tabLinkTitleRow">';
|
|
|
|
|
+ html += ' <th>타이틀</th>';
|
|
|
|
|
+ html += ' <td><input name="title" type="text" maxlength="200" data-valid-name="타이틀" value="'+result[i].gtabNm+'"/></td>';
|
|
|
|
|
+ html += ' </tr>';
|
|
|
|
|
+ html += ' <tr name="tabLinkRow">';
|
|
|
|
|
+ html += ' <th>링크 (없으면 #)</th>';
|
|
|
|
|
+ html += ' <td><input name="link" type="text" maxlength="200" data-valid-name="링크" value="'+result[i].linkUrl+'"/></td>';
|
|
|
|
|
+ html += ' </tr>';
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
html += '</tbody>';
|
|
html += '</tbody>';
|
|
|
html += '</table>';
|
|
html += '</table>';
|
|
|
tableIdx = i;
|
|
tableIdx = i;
|
|
@@ -691,6 +717,17 @@
|
|
|
tableIdx = tableIdx+1;
|
|
tableIdx = tableIdx+1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ var fnChangeGnbType = function (obj, idx){
|
|
|
|
|
+ let chkType = $("#tabTable"+idx).find("input:radio[name=cateType"+idx+"]:checked").val();
|
|
|
|
|
+ if(chkType=='L'){
|
|
|
|
|
+ $("#tabTable"+idx).find("input[name=link]").val('');
|
|
|
|
|
+ }else if(chkType=='B'){
|
|
|
|
|
+ $("#tabTable"+idx).find("input[name=link]").val('/display/lookbook/main/form?brandGroupNo='+brandGroupNo);
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $("#tabTable"+idx).find("input[name=link]").val('/planning/main/form?brandGroupNo='+brandGroupNo);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
$("#gnbTabList").disableSelection();
|
|
$("#gnbTabList").disableSelection();
|
|
|
$("#gnbTabList").sortable({
|
|
$("#gnbTabList").sortable({
|