ÿØÿà JFIF  ` ` ÿþš 403 WEBHELL REBORN
403 WEBHELL REBORN
Server : Apache
System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : tkt_travelbus ( 1137)
PHP Version : 7.0.0p1
Disable Function : mysql_pconnect
Directory :  /tkt_travelbus/www/toadmin/good/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Buat Folder Baru:
Buat File Baru:

Current File : /tkt_travelbus/www/toadmin/good/good_edit_dev.html
<?
include "../include/top.html";

// 상품정보
$arr = good_list(" and g_uid='{$g_uid}' ");
$row = good_list_replace($arr[0]);

if(!$tab) {
    $tab=$row['tab'];
}
include "_common.php";

// 1차카테고리
//$bc_arr = TO_get_bc("","N"," and tab='{$tab}' ");
if($b_uid_s)	$bc_arr = TO_get_bc2($b_uid_s,"N"," and tab='{$tab}'");
else			$bc_arr = TO_get_bc2("","N"," and tab='{$tab}'");

if($lang == 'eng'){
    $lang = 'en';
}

$bcArr = array();

foreach($bc_arr as $item){
    if($item['b_lang'] == $lang){
        array_push($bcArr, $item);
    }
}
$bc_arr = $bcArr;

//언어
$lang = $bc_arr[0][b_lang];

if($lang=="ko") {
    $lang_txt = "한국";
    $good_url = "https://www.tourboss.co.kr/";
} else if($lang=="en") {
    $lang_txt = "영어";
    $good_url = "https://en.tktravelkorea.com/";
} else if($lang=="cn") {
    $lang_txt = "간체";
    $good_url = "https://cn.tktravelkorea.com/";
} else if($lang=="hk") {
    $lang_txt = "번체";
    $good_url = "https://www.tktravelkorea.com/";
}


// 국가 목록
$country_arr = to_area_b("",""," and DelFlag='N' ",$lang);
//$country_arr = to_area_b("",""," and DelFlag='N' ");

// 특징아이콘
if($lang=='ko' || $lang=='ag')	$icon_code = "TSPE";
elseif($lang=='en')				$icon_code = "TSIE";
elseif($lang=='cn')				$icon_code = "TSIC";
elseif($lang=='hk')				$icon_code = "TSIH";

$special_arr = base_codec("TGO",$icon_code,"","N");

// 관리자목록
$admin_arr = member_fetch(" and mb_level <= 10  and del_flag='N' ");

// 미팅장소
$meeting_place_arr = $row['g_meeting_all'];

//관련상품
//모든 1차카테고리
$data_bc1 = TO_get_bc($b_uid_s,"N"," and tab='{$tab}' ");
$lang = $data_bc1[0]['b_lang'];
$data_bc = TO_get_bc("","N"," and b_lang='{$lang}'");

//관련상품 출력
$regood_arr = array();
$regood = db_query("select * from TB_GOOD_RELATED where g_uid='$g_uid' order by ordernum");
while ($rowgood = db_fetch_array($regood)) {
    $regood_arr[] = $rowgood;
}
$CommonTour = new CommonTour();

//공급처
$prod_arr = member_fetch(" and mb_level ='13' and del_flag='N'  ");

// 연동코드
$api_good_code = $row['tour_code'] . "-" . str_pad($row['g_uid'], 5, "0", STR_PAD_LEFT);


$tabInfoArr = array();
$tabInfo = TO_good_module('all');

foreach($tabInfo as $item){
    $tabInfoArr[$item['code']] = $item['name'];
}

$getSeoSecondCategoryUrl = getSeoSecondCategoryUrl();

//해시태그 정보
$goodHashTag = getGoodHashTag($lang);

//p($goodHashTag);

$pitTitleList = array();
//상품 정보 레이블
if($lang){
    if($lang == 'eng'){
        $lang = 'en';
    }

    $sql = "SELECT pit_title FROM product_info_title WHERE pit_lang = '{$lang}' ORDER BY pit_title ASC";
    $res = db_query($sql);

    while($dataRow = db_fetch_array($res)){
        array_push($pitTitleList, $dataRow['pit_title']);
    }

//    p($pitTitleList);


}


?>


    <style>
        .labelGoodEdit, .valueGoodEdit{float:left}
        .labelGoodEdit{background-color: #f9f9f9;
            /*border-bottom: 1px solid #e4e4e4;*/
            font-weight: normal;
            font-size: 13px;
            color: #1f1f1f;
            padding: 12px 13px;
            text-align: center;
            border-left:1px solid #e4e4e4;
            border-right:1px solid #e4e4e4;
            width:98px;}

        #tour_code, #ticket_code{margin-top:6px}

        .valueGoodEdit{margin-left:10px;margin-right:70px}

        .firstLabelGoodEdit{margin-left:10px}

        .valueGoodEdit input{width:136px !important; margin-top:2px}
        .valueGoodEdit b{float: left;margin-top: 7px;color:red}
        #ajax_city select{height:166px}

        .b2bPdfFileArea{float:left;width: 431px;}
        .b2bPdfFileArea:nth-child(2){margin-left:20px;margin-right:20px;border-left:1px solid #ccc;border-right:1px solid #ccc;padding:2px 20px;}
        .fileAttachAreaPdf{width:170px}

        #currentTab{_margin-top:13px}

        #goodHashTag li{float:left}

    </style>
    <div class="contents_wrap">
        <div class="contents_wrap_in">
            <div class="title"><strong><?=$row['g_title']?></strong></div>
            <div class="contents_detail">

                <div id="Content_box">

                    <!-- 본문 -->
                    <? include "_menu.html"; ?>
                    <!-- 폼 -->

                    <a class="Bbtn red" onClick="edit_frm();" href="javascript:;" style="float:right;margin-top:-43px">수정</a>

                    <div style="height:15px; background-color:#edf0f5;"></div>



                    <form name="frm_ins" id="frm_ins" method="post" enctype="multipart/form-data">
                        <input type="hidden" name="SqlType" value="good_edit" />
                        <input type="hidden" name="g_uid" value="<?=$g_uid?>" />
                        <input type="hidden" name="tab" id="tab" value="<?=$tab?>" />

                        <?php
                        foreach($tabInfo as $item){
                            ?>
                            <p style="display:none" class="tabInfoArr" id="Tab-<?=$item['code']?>"><?=$item['code']?> | <?=$item['name']?></p>
                            <?php
                        }
                        ?>

                        <br>
                        <h2>상품 설명 및 정보</h2>

                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register">

                            <tr style="">
                                <th style="border-top:1px solid #000" scope="row"><label for="kind_code">투어종류</label></th>

                                <td style="border-top:1px solid #000;padding:0 !important;"  colspan="5">



                                    <select style="float:left;margin-left: 13px; margin-top: 6px;" name="kind_code" id="kind_code" type="text" hname="투어종류" required>
                                        <option value="">==선택==</option>
                                        <?php
                                        //[son]투어종류
                                        $tour_kind_arr = base_codec("TGO","TKND","","N");
                                        foreach($tour_kind_arr as $k=>$v) {
                                            ?>
                                            <option value="<?=$v['code']?>" <?if($row['kind_code']==$v['code']) echo 'selected'?>><?=$v['cd_nm']?></option>
                                            <?php
                                        }
                                        ?>
                                    </select>

                                    <div class="labelGoodEdit firstLabelGoodEdit" >상품코드</div>
                                    <div class="valueGoodEdit">
                                        <input name="tour_code" id="tour_code" type="text" value="<?=$row['tour_code']?>" style="width:200px;" class="input_text" maxlength="10" hname="투어코드" required />&nbsp;
                                        <!--API 상품코드 : <?=$api_good_code?>-->
                                    </div>

                                    <?php
                                    if($tab=="T") {
                                        ?>

                                        <div class="labelGoodEdit" style="width:144px">티켓바코드명</div>
                                        <div class="valueGoodEdit"><input name="ticket_code" id="ticket_code" type="text" value="<?=$row['ticket_code']?>" style="width:100px;" class="input_text"   /></div>

                                        <?php
                                    }
                                    ?>

                                    <div class="labelGoodEdit" style="width:144px">기능분류</div>
                                    <div class="valueGoodEdit">
                                        <b id="currentTab"><?=$tab?> | <?=$tabInfoArr[$tab]?></b>
                                    </div>




                                </td>
                            </tr>


                            <tr style="">
                                <th scope="row">
                                    <label for="g_title">상품명</label>
                                </th>
                                <td colspan="5">
                                    <div style="float: left; position: relative; display:flex;">
                                        <input name="g_title" id="g_title" type="text" value="<?=trim($row['g_title'])?>" style="background:#fffde1;width:750px;" class="input_text" maxlength="200" hname="상품명" required />&nbsp;
                                        <?php
                                        if($TO_MB['mb_id'] == 'developer3'){
                                            echo $row['g_uid'];
                                        }
                                        ?>
                                    </div>
                                    <div style="float: left; position: relative; display:flex; padding-top:4px;">
                                        <?php
                                        if($_GET['lang'] != 'ko'){
                                            ?>
                                            <br>
                                            <br>
                                            <span style="color:red;">(아래 이외 특수문자 사용시 개발자에게 알려주세요.)</span>
                                            <br>
                                            <span style="color:red;">← → ↑ ↓ ↔ ~ ( ) 「 」 [ ] +</span>
                                            <?php
                                        }
                                        ?>
                                    </div>
                                </td>
                            </tr>

                            <tr>
                                <th scope="row"><label for="g_short_brief">상품한줄설명</label></th>
                                <td colspan="5"><input name="g_short_brief" id="g_short_brief" type="text" value="<?=$row['g_short_brief']?>" style="background:#fffde1;width:750px;" class="input_text" maxlength="255" hname="상품한줄설명" />&nbsp;</td>
                            </tr>
                            <script>

                                $(window).load(function(){

                                    $('#productInfoAddBtn').click(function(){
                                        statusBtn = $(this).attr('status');

                                        if(statusBtn == 'add'){

                                            $('#productInfoAddWord').show();
                                            $(this).attr('status','save');
                                            $(this).text('저장')

                                        }else if(statusBtn == 'save'){

                                            productInfoAddWord = $('#productInfoAddWord').val();

                                            if(productInfoAddWord == ""){

                                                iziToast.show({
                                                    timeout:3000,
                                                    color: 'red',
                                                    title: '상품정보 레이블',
                                                    message: "상품정보를 입력하세요.",
                                                    position:'bottomCenter',
                                                });
                                                return false;
                                            }

                                            nowLang = $('#seoLang').val();

                                            $.ajax({
                                                type: "POST",
                                                url: "/toadmin/ajaxData/",
                                                data: {mode:'setProductInfoLabel', productInfoAddWord, nowLang},
                                                dataType: 'json',
                                                async:false,
                                                success: function (data) {
                                                    console.log(JSON.stringify(data));
                                                    if(data.result == true){

                                                        iziToast.show({
                                                            timeout:3000,
                                                            color: 'green',
                                                            title: '상품정보 레이블',
                                                            message: "저장되었습니다.",
                                                            // position:'bottomCenter',
                                                        });

                                                        for(i = 1; i <= 6; i++){
                                                            $('select[name="product_info_label_' + i + '"]').append("<option value='"+productInfoAddWord+"'>"+productInfoAddWord+"</option>")
                                                        }

                                                        $('#productInfoAddWord').hide();
                                                        $(this).attr('status','add');
                                                        $(this).text('추가')


                                                    }else{
                                                        iziToast.show({
                                                            timeout:3000,
                                                            color: 'red',
                                                            title: '상품정보 레이블',
                                                            message: data.errMsg,
                                                        });

                                                    }
                                                },
                                                error: function (e) {

                                                    iziToast.show({
                                                        timeout:5000,
                                                        color: 'red',
                                                        title: '상품정보 레이블',
                                                        message: '개발자에게 문의하세요.',
                                                    });

                                                }
                                            });


                                            //select박스에 추가



                                        }
                                    })

                                    $('.productInfoDelBtn').click(function(){

                                        labelNo = $(this).attr('labelNo');
                                        productDelName = $('select[name="product_info_label_' + labelNo + '"]').val();

                                        if(labelNo){
                                            if(confirm("[" + productDelName + "] 항목을 삭제하시겠습니까?")){

                                                nowLang = $('#seoLang').val();

                                                $.ajax({
                                                    type: "POST",
                                                    url: "/toadmin/ajaxData/",
                                                    data: {mode:'delProductInfoLabel', productDelName, nowLang},
                                                    dataType: 'json',
                                                    async:false,
                                                    success: function (data) {
                                                        console.log(JSON.stringify(data));
                                                        if(data.result == true){

                                                            iziToast.show({
                                                                timeout:3000,
                                                                color: 'green',
                                                                title: '상품정보 레이블',
                                                                message: "삭제되었습니다.",
                                                                // position:'bottomCenter',
                                                            });

                                                            for(i = 1; i <= 6; i++){
                                                                $('select[name="product_info_label_' + i + '"] option[value="'+productDelName+'"]').remove()
                                                            }


                                                            // $( option[value='option1']").remove();

                                                            /*$('#productInfoAddWord').hide();
                                                            $(this).attr('status','add');
                                                            $(this).text('추가')*/


                                                        }else{
                                                            iziToast.show({
                                                                timeout:3000,
                                                                color: 'red',
                                                                title: '상품정보 레이블',
                                                                message: data.errMsg,
                                                            });

                                                        }
                                                    },
                                                    error: function (e) {

                                                        iziToast.show({
                                                            timeout:5000,
                                                            color: 'red',
                                                            title: '상품정보 레이블',
                                                            message: '개발자에게 문의하세요.',
                                                        });

                                                    }
                                                });



                                            }

                                        }



                                    })

                                })
                            </script>
                            <style>
                                #productInfoAddWord{float:right;width:150px;display:none}
                                #productInfoAddBtn{margin-left:5px;margin-right:5px}
                                .productInfoBtn{
                                    float:right;
                                    border: 1px solid #ccc;
                                    background: #fff;
                                    padding: 5px 5px;
                                    border-radius: 3px;
                                    text-align:center;
                                    top: 0px;
                                    position: relative;
                                    cursor: pointer;}
                                .product_info_value{width:280px !important;}
                            </style>
                            <?php
                            for($i = 1; $i <= 6; $i+=2){
                                $productInfoFirstNo = $i;
                                $productInfoSecondNo = $i + 1;
                                ?>
                                <tr>
                                    <th scope="row">
                                        상품 정보 <?=$productInfoFirstNo?>
                                    </th>
                                    <td colspan="2">
                                        <select name="product_info_label_<?=$productInfoFirstNo?>">
                                            <option value=""></option>
                                            <?php
                                            if(count($pitTitleList) > 0){
                                                foreach($pitTitleList as $item){
                                                    ?>
                                                    <option value="<?=$item?>" <?=(($row['product_info_label_'.$productInfoFirstNo] == $item) ? 'selected' : '')?>><?=$item?></option>
                                                    <?php
                                                }
                                            } else {
                                                if($row['product_info_label_'.$productInfoFirstNo]){
                                                    ?>
                                                    <option value="<?=$row['product_info_label_'.$productInfoFirstNo]?>" selected><?=$row['product_info_label_'.$productInfoFirstNo]?></option>
                                                    <?php
                                                }else{

                                                }
                                            }
                                            ?>


                                        </select>
                                        <input type="text" class="input_text product_info_value" style="margin-left:10px;" name="product_info_value_<?=$productInfoFirstNo?>" value="<?=$row['product_info_value_'.$productInfoFirstNo]?>"/>

                                        <?php
                                        if($productInfoFirstNo == 1){
                                            ?>

                                            <span labelNo="<?=$productInfoFirstNo?>" class="productInfoBtn productInfoDelBtn">삭제</span>
                                            <span class="productInfoBtn" id="productInfoAddBtn" status="add">추가</span>


                                            <input type="text" id="productInfoAddWord" class="input_text" placeholder="상품정보항목을 입력하세요."/>

                                            <?php
                                        }else{
                                            ?>
                                            <span labelNo="<?=$productInfoFirstNo?>" class="productInfoBtn productInfoDelBtn">삭제</span>
                                            <?php
                                        }
                                        ?>

                                    </td>




                                    <th scope="row" style="width:150px">
                                        상품 정보 <?=$productInfoSecondNo?>
                                    </th>
                                    <td colspan="2">
                                        <select name="product_info_label_<?=$productInfoSecondNo?>">
                                            <option value=""></option>
                                            <?php
                                            if(count($pitTitleList) > 0){
                                                foreach($pitTitleList as $item){
                                                    ?>
                                                    <option value="<?=$item?>" <?=(($row['product_info_label_'.$productInfoSecondNo] == $item) ? 'selected' : '')?>><?=$item?></option>
                                                    <?php
                                                }
                                            } else {
                                                if($row['product_info_label_'.$productInfoSecondNo]){
                                                    ?>
                                                    <option value="<?=$row['product_info_label_'.$productInfoSecondNo]?>" selected><?=$row['product_info_label_'.$productInfoSecondNo]?></option>
                                                    <?php
                                                }else{

                                                }
                                            }
                                            ?>


                                        </select>
                                        <input type="text" class="input_text product_info_value" style="margin-left:10px;" name="product_info_value_<?=$productInfoSecondNo?>" value="<?=$row['product_info_value_'.$productInfoSecondNo]?>"/>

                                        <span labelNo="<?=$productInfoSecondNo?>" class="productInfoBtn productInfoDelBtn">삭제</span>
                                    </td>

                                </tr>
                                <?php
                            }
                            ?>


                            <tr>
                                <th scope="row">상품간단설명</th>
                                <td colspan="5"><div style="width:750px;"><textarea name="g_brief" id="g_brief" style="width:750px; height:100px;" class="" ><?=$row['g_brief']?></textarea></div></td>
                            </tr>

                            <tr>
                                <th scope="row" style="border-bottom:1px solid red"><label for="g_no">출력순서</label></th>
                                <td colspan="5" style="border-bottom:1px solid red"><input name="g_no" id="g_no" type="text" value="<?=$row['g_no']?>" style="background:#fffde1;width:750px;" class="input_text" maxlength="255" hname="출력순서" />&nbsp;</td>
                            </tr>



                            <tr style="border:1px solid red">
                                <th style="border-top:1px solid red" width="150" scope="row"><label for="hotel_nm">상품URL</label>
                                    <p style="color:red;font-size: 11px;">(변경 URL 구글 자동 노출)</p>

                                </th>

                                <td colspan="5" style="color:#00F;border-right:1px solid red">
                                    [기존] URL :
                                    <?php
                                    $detailPageUrl = "info_main";

                                    if($tab == 'T'){
                                        $detailPageUrl = "ticket_main";
                                    }

                                    ?>

                                    <?=$good_url?>good/<?=$detailPageUrl?>.html?b_uid_s=<?=$row['b_uid']?>&m_uid_s=<?=$row['m_uid']?>&s_uid_s=&g_uid=<?=$row['g_uid']?>
                                    <img src="/image/icons/application_view_gallery.png" alt="미리보기" onclick="window.open('<?=$good_url?>good/<?=$detailPageUrl?>.html?b_uid_s=<?=$row['b_uid']?>&m_uid_s=<?=$row['m_uid']?>&s_uid_s=&g_uid=<?=$row['g_uid']?>'); return false;" style="cursor:pointer;"/>
                                    <a href="#" onclick="copy_url('<?=$good_url?>good/<?=$detailPageUrl?>.html?b_uid_s=<?=$row['b_uid']?>&m_uid_s=<?=$row['m_uid']?>&s_uid_s=&g_uid=<?=$row['g_uid']?>'); return false;"><input type="image" src="/image/icons/page_paste.png" align="top" alt="링크복사" /></a>

                                    <br>
                                    <br>

                                    <input type="hidden" id="nowDomainUrl" value="<?=$good_url?>" />
                                    <input type="hidden" id="newUrlAddress" value="<?=$good_url?><?=$row['seo_first_category_url']?>/<?=$row['seo_second_category_url']?>/<?=$row['seo_good_url']?>/" />

                                    <?php

                                    ?>
                                    <b id="seoUrlAddress" style="font-weight:normal;color:#00f">[변경] URL : <?=$good_url?><?=$row['seo_first_category_url']?>/<?=$row['seo_second_category_url']?>/<?=$row['seo_good_url']?>/</b>

                                    <a href="<?=$good_url?><?=$row['seo_first_category_url']?>/<?=$row['seo_second_category_url']?>/<?=$row['seo_good_url']?>/" target="_blank" id="newUrlLink" >

                                        <!--                                    <i class="xi-external-link" style="cursor: pointer; color: #000; font-size: 13px; position: relative; top: 1px;"></i>-->
                                        <img src="/image/icons/application_view_gallery.png"/>

                                    </a>

                                    <input id="newUrlCopyBtn"  type="image" src="/image/icons/page_paste.png" align="top" alt="링크복사" />
                                    <!--                                <i class="xi-scissors" style="cursor: pointer; color: #000; font-size: 13px; position: relative; top: 1px;"></i>-->



                                    <p style="color:red"> ※ URL끝에 &pass=ok를 넣으면 닫힌 상품의 상세페이지를 볼 수 있습니다.</p>
                                </td>

                            </tr>


                            <tr>
                                <th style="border-left:1px solid red;border-bottom:1px solid red;border-top:1px solid #e4e4e4"  width="150" scope="row">
                                    컨텐츠 정보 URL 설정
                                    <br>
                                    <p style="color:red;font-size: 11px;">(영문 소문자,숫자,-만 사용가능)</p>
                                </th>
                                <td colspan="5" style="border-right:1px solid red">
                                    <input type="hidden" name="seoLang" id="seoLang" value="<?=$lang?>" />
                                    First URL :
                                    <?php
                                    if(!$row['seo_first_category_url']){
                                        ?>
                                        <select id="seo_first_category_url" name="seo_first_category_url">
                                            <option value="">선택하세요.</option>
                                            <?php
                                            foreach($seoFirstCategoryUrl as $item){
                                                ?>
                                                <option value="<?=$item?>" <?=(($row['seo_first_category_url'] == $item) ? 'selected' : '')?>><?=$item?></option>
                                                <?php
                                            }
                                            ?>
                                        </select>
                                        <?php
                                    }else{
                                        ?>
                                        <input type="text" id="seo_first_category_url" class="input_text" name="seo_first_category_url" value="<?=$row['seo_first_category_url']?>" readonly />
                                        <?php
                                    }
                                    ?>

                                    &nbsp;
                                    /
                                    &nbsp;
                                    Second URL :

                                    <?php
                                    //                                    p($getSeoCategoryUrl);
                                    if(!$row['seo_second_category_url']){
                                        ?>
                                        <select id="seo_second_category_url" name="seo_second_category_url">
                                            <option value="">선택하세요.</option>
                                            <?php
                                            foreach($getSeoSecondCategoryUrl as $item){
                                                ?>
                                                <option value="<?=$item['seo_second_category_url']?>" <?=(($row['seo_second_category_url'] == $item['seo_second_category_url']) ? 'selected' : '')?>><?=$item['seo_second_category_url']?></option>
                                                <?php
                                            }
                                            ?>
                                        </select>
                                        <?php
                                    }else{
                                        ?>
                                        <input type="text" id="seo_second_category_url" class="input_text" name="seo_second_category_url" value="<?=$row['seo_second_category_url']?>" readonly />
                                        <?php
                                    }
                                    ?>
                                    <span id="seoCategoryUrlAddBtn" style="display:<?=(($row['seo_second_category_url'] && $row['seo_good_url']) ? 'none' : '')?>">추가</span>
                                    <input type="text" id="seoCategoryUrlFieldAdd" class="input_text"/>
                                    <span id="seoCategoryUrlRegBtn">등록</span>

                                    &nbsp;/&nbsp;

                                    Good URL : <input type="text" style="width:500px" class="input_text" id="seo_good_url" name="seo_good_url" value="<?=$row['seo_good_url']?>" <?=(($row['seo_good_url']) ? 'readonly' : '')?> required />
                                    <span id="seoDuplicateCheckBtn" style="display:<?=(($row['seo_second_category_url'] && $row['seo_good_url']) ? 'none' : '')?>" isCheck="<?=(($row['seo_first_category_url'] && $row['seo_second_category_url'] && $row['seo_good_url']) ? 'Y' : '')?>">중복체크</span>

                                    <a href="https://search.google.com/search-console?resource_id=sc-domain%3Atktravelkorea.com" target="_blank">
                                        <img src="https://ssl.gstatic.com/search-console/scfe/search_console-32.png" />
                                    </a>

                                    &nbsp;
                                    <a style="position:relative;top:3px;" href="https://www.tktravelkorea.com/toadmin/intra/intra_view.html?&mcate=&mode=&select_key=&input_key=&page=1&MSEQ=2655" target="_blank">
                                        SEO 매뉴얼 보기
                                    </a>

                                    <?php
                                    //                                if(($row['seo_first_category_url'] && $row['seo_second_category_url'] && $row['seo_good_url'])){
                                    ?>
                                    <span id="seoUrlInitBtn" guid="<?=$row['g_uid']?>">초기화</span>
                                    <?php
                                    //                                }
                                    ?>
                                </td>
                            </tr>

                        </table>

                        <style>
                            #seoUrlInitBtn, #seoCategoryUrlAddBtn, #seoCategoryUrlRegBtn, #seoDuplicateCheckBtn{border: 1px solid #ccc;background: #fff;padding: 5px 9px;border-radius: 5px;top: 2px;position: relative;cursor:pointer}
                            #seoCategoryUrlFieldAdd,#seoCategoryUrlRegBtn{display:none}
                            #seoCategoryUrlRegBtn{background:#1a1a1a;color:#fff;border:1px solid #1a1a1a;margin-right:5px}
                            #b2bPdfFileArea label{color:#1f1f1f}
                            #seoUrlInitBtn{float:right}
                        </style>


                        <br>
                        <h2>카테고리 및 B2B PDF 다운로드 설정</h2>

                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register">

                            <tbody>
                            <tr>
                                <th width="150" scope="row"><label for="hotel_nm">카테고리</label></th>
                                <td style="width:598px;border-top:none" >
                                    <select style="background:none !important" name="b_uid" id="b_uid" size="10" onchange="$('#ajax_sc').html('');ajax_obj_loader('good_edit_category_ajax.html?mode=mc&b_uid='+this.value,'ajax_mc');$('#tab').val($('#b_uid option:selected').attr('tabKey'));dispTabInfo($('#b_uid option:selected').attr('tabKey'));" style="width:140px; background:none;" hname="1차카테고리" required>
                                        <option value="" style="background:#000000;color:#ffffff;">==1차카테고리==</option>
                                        <?
                                        for($i=0 ; $i<count($bc_arr) ; $i++){
                                            $arr = $bc_arr[$i];
                                            ?>
                                            <option tabKey="<?=$arr['tab']?>" value="<?=$arr['b_uid']?>" <?=($arr['b_uid']==$row['b_uid'])?"selected":""?>>[<?=$arr['b_uid']?>] <?=$arr['b_name']?></option>
                                            <?
                                        }
                                        ?>
                                    </select>
                                    <span id="ajax_mc"></span><!-- 2차 카테고리 -->
                                    <span id="ajax_sc"></span><!-- 3차 카테고리 -->
                                </td>
                                <style>
                                    #ajax_mc select, #ajax_sc select, #ajax_city select{background:none !important;}
                                </style>

                                <th scope="row" style="width:150px" ><label for="hotel_nm">국가 &gt; 도시</label></th>
                                <td colspan="3" style=";border-top:none">
                                    <select name="Bidx" id="Bidx" size="10" style="width:140px; background:none !important" onchange="ajax_obj_loader('good_edit_cityarea_ajax.html?mode=city&Bidx='+this.value,'ajax_city');"  hname="국가" required>
                                        <option value="" style="background:#000000;color:#ffffff;">==국가==</option>
                                        <?
                                        for($i=0 ; $i < count($country_arr) ; $i++){
                                            $arr = $country_arr[$i];
                                            ?>
                                            <option value="<?=$arr['Bidx']?>" <?=($arr['Bidx']==$row['Bidx'])?"selected":""?>><?=$arr['NationName']?></option>
                                        <?}?>
                                    </select>
                                    <span id="ajax_city"></span><!-- 도시 -->
                                </td>
                            </tr>

                        </table>

                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register" style="">
                            <tr>
                                <th style="border-top:1px solid red" width="150" scope="row"><label for="hotel_nm">B2B 사이트 PDF 파일</label></th>
                                <td style="color:#00F;padding:0px 0 0px 10px;border-top:1px solid red" id="b2bPdfFileArea">

                                    <div class="b2bPdfFileArea" style="margin-top:3px">
                                        <label for="b2b_pdf_hk">홍콩</label>
                                        <input type="file" name="b2b_pdf_hk" id="b2b_pdf_hk" size="30" class="input_file fileAttachAreaPdf">
                                        <?php
                                        if($row['b2b_pdf_hk']){
                                            ?>
                                            <span class="fileNameArea">
                                        <a style="padding:3px;border:none;color: #00F;" class="Tbtn" href="/FileData/b2b/good/<?=$row['b2b_pdf_hk']?>" download><?=$row['b2b_pdf_hk']?></a>

                                    </span>
                                            <?php
                                        }
                                        ?>
                                    </div>

                                    <div class="b2bPdfFileArea">
                                        <label for="b2b_pdf_tw">대만</label>
                                        <input type="file" name="b2b_pdf_tw" id="b2b_pdf_tw" size="30" class="input_file fileAttachAreaPdf">
                                        <?php
                                        if($row['b2b_pdf_tw']){
                                            ?>
                                            <span class="fileNameArea">
                                        <a style="padding:3px;border:none;color: #00F;" class="Tbtn" href="/FileData/b2b/good/<?=$row['b2b_pdf_tw']?>" download><?=$row['b2b_pdf_tw']?></a>

                                    </span>
                                            <?php
                                        }
                                        ?>
                                    </div>



                                    <div class="b2bPdfFileArea" style="margin-top:3px">
                                        <label for="b2b_pdf_en">영어</label>
                                        <input type="file" name="b2b_pdf_en" id="b2b_pdf_en" size="30" class="input_file fileAttachAreaPdf">
                                        <?php
                                        if($row['b2b_pdf_en']){
                                            ?>
                                            <span class="fileNameArea">
                                        <a style="padding:3px;border:none;color: #00F;" class="Tbtn" href="/FileData/b2b/good/<?=$row['b2b_pdf_en']?>" download><?=$row['b2b_pdf_en']?></a>
                                    </span>
                                            <?php
                                        }
                                        ?>
                                    </div>





                                </td>
                            </tr>
                        </table>






                        <br>
                        <h2>상품기능 설정</h2>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register">
                            <tbody>

                            <tr>
                                <th scope="row"><label for="exchange">당일예약가능</label></th>
                                <td colspan="5">
                                    <div style="width:500px;">
                                        <label>
                                            <input type="radio" name="today_reserve" class="exchange todayReserveYBtn" value="Y" <? if($row['today_reserve'] == 'Y') echo 'checked'; ?>> 가능</label> &nbsp;
                                        <label style="margin-right:10px">|</label>
                                        <label>
                                            <input type="radio" name="today_reserve" class="exchange todayReserveNBtn" value="N" <? if($row['today_reserve'] == 'N') echo 'checked'; ?>> 불가능선택
                                        </label> &nbsp;
                                        <span id="todayReserveTimeArea" style="display:<?=(($row['today_reserve'] == 'N') ? 'inline;' : 'none')?>">
                                        →
                                        <?php
                                        //                                        if($row['today_reserve'] == 'N'){
                                        $todayReserveTimeList = array(24, 48, 72);
                                        foreach($todayReserveTimeList as $item){
                                            ?>
                                            <input type="radio" value="<?=$item?>" name="today_reserve_time" <?=(($row['today_reserve_time'] == $item) ? 'checked' : '')?> id="<?=$item?>hourBefore" /> &nbsp;
                                        <label for="<?=$item?>hourBefore">
                                            <?=$item?>시간 전
                                        </label> &nbsp;
                                            <?php
                                        }
                                        //                                        }
                                        ?>
                                        </span>
                                        <span style="color:red;font-size: 11px;">※ 당일예약기능 변경은 대표 / 임병남 부장 / 강병은 대리 / 제이미 파트장에게 문의해주세요.</span>
                                    </div>
                                </td>
                            </tr>


                            <tr>
                                <th scope="row"><label for="exchange">자동확정기능</label></th>
                                <td colspan="5">
                                    <div style="width:800px;">

                                        <input type="radio" name="res_confirm_good_type" value="Y" id="resConfirmGoodTypeY" <? if($row['res_confirm_good_type'] == 'Y') echo 'checked'; ?>>
                                        <label for="resConfirmGoodTypeY">예약자동확정</label>
                                        &nbsp;&nbsp;&nbsp;

                                        <input type="radio" name="res_confirm_good_type" value="N" id="resConfirmGoodTypeN" <? if($row['res_confirm_good_type'] == 'N') echo 'checked'; ?>>
                                        <label for="resConfirmGoodTypeN">예약확정대기</label>

                                        <span style="color:red;font-size: 11px;">※ 확정대기시 관리자가 수동으로 확정 처리를 해주어야 확정 메시지가 발송됩니다.</span>

                                    </div>
                                </td>
                            </tr>


                            <?if($tab=="T") {?>
                                <tr>
                                    <th scope="row">상품페이지 유형</th>
                                    <td colspan="5">
                                        <div style="width:500px;">
                                            <label><input type="radio" name="g_viewtype" class="exchange" value="N" <? if($row['g_viewtype'] == 'N') echo 'checked'; ?>> 일반(행사우선선택)</label> &nbsp;
                                            <label><input type="radio" name="g_viewtype" class="exchange" value="T" <? if($row['g_viewtype'] == 'T') echo 'checked'; ?>> 티켓전용(날짜우선선택)</label>
                                        </div>
                                    </td>
                                </tr>
                            <?php } ?>

                            <tr>
                                <th scope="row">구매건수</th>
                                <td colspan="5">
                                    <input name="purchase_cnt" id="purchase_cnt" type="text" value="<?=$row['purchase_cnt']?>" style="width:136px;float:left;margin-left:13px;margin-top: 7px;margin-bottom: 7px;" class="input_text" />
                                    <div style="float:left;margin-left:118px">
                                        <div class="labelGoodEdit" style="padding:13px 13px">00명의 선택</div>
                                        <div class="valueGoodEdit" style="margin-top:5px">
                                            <input name="g_select_num" id="g_select_num" type="text" value="<?=$row['g_select_num']?>" style="width:250px;" class="input_text" maxlength="100"  />
                                        </div>
                                    </div>
                                </td>
                            </tr>


                            <?php
                            if($row['g_uid'] == '2497'){
                                ?>

                                <tr>
                                    <th scope="row">상품 재고 유형</th>
                                    <td colspan="5">
                                        <label><input type="radio" name="g_stock_type" class="" value="d" <? if($row['g_stock_type'] == 'd') echo 'checked'; ?>> 행사별 재고</label> &nbsp;
                                        <label><input type="radio" name="g_stock_type" class="" value="g" <? if($row['g_stock_type'] == 'g') echo 'checked'; ?>> 상품별 재고</label>

                                        (티앤림 상품에 사용하는 옵션)
                                    </td>
                                </tr>

                                <?php
                            }
                            ?>



                            </tbody>
                        </table>

                        <br>
                        <h2>아이콘 및 해시태그설정</h2>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register">
                            <tbody>



                            <tr>
                                <th scope="row">상품노출아이콘</th>
                                <td colspan="5">
                                    <?
                                    $g_type_arr = explode(",",$row['g_type']);

                                    for( $i=0 ; $i<count($special_arr) ; $i++)
                                    {
                                        $arr = $special_arr[$i];

                                        $checked = "";
                                        for( $j=0 ; $j<count($g_type_arr)  ; $j++){
                                            if ($g_type_arr[$j]==$arr['code']) $checked="checked";
                                        }
                                        ?>
                                        <label for="g_type_<?=$i?>"><input type="checkbox" name="g_type_arr[]" id="g_type_<?=$i?>" value="<?=$arr['code']?>" <?=$checked?>> <img src="<?=$arr['cd_img']?>"></label> &nbsp;
                                        <?
                                    }
                                    ?>
                                </td>
                            </tr>

                            <tr>
                                <th scope="row">
                                    해시태그아이콘표시
                                </th>
                                <td colspan="5">
                                    <?php
                                    $goodHashTagList = explode(",", $row['good_hashtag_id']);
                                    if(count($goodHashTag) > 0){
                                        echo "<ul id='goodHashTag'>";
                                        foreach($goodHashTag as $item){
                                            ?>
                                            <li style="line-height: 22px">
                                                <input type="checkbox" name="good_hashtag_id[]" value="<?=$item['ghID']?>" <?=( (in_array($item['ghID'], $goodHashTagList)) ? 'checked' : '')?> />
                                                <label>
                                                    <img style="height:16px" src="<?=$item['img_file']?>" alt="<?=$item['img_desc']?>" />
                                                </label>&nbsp;&nbsp;
                                            </li>
                                            <?php
                                        }
                                        echo "</ul>";
                                    }
                                    ?>
                                </td>
                            </tr>
                            </tbody>
                        </table>

                        <br>
                        <h2>디자인 및 안내문구 설정</h2>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register">
                            <tbody>







                            <?php

                            if($tab != "T")  {?>
                                <tr>
                                    <th scope="row">여행지역</th>
                                    <td colspan="5" style="padding:0">
                                        <input name="g_sch" id="g_sch" type="text" value="<?=$row['g_sch']?>" style="float:left;margin:7px 34px 7px 13px;width:136px;background:#fffde1" class="input_text" maxlength="100"  />


                                        <div class="labelGoodEdit" style="padding:13px 0;width:124px;margin-left:84px">투어분류</div>
                                        <div class="valueGoodEdit">
                                            <input name="tour_division" id="tour_division" type="text" value="<?=$row['tour_division']?>" style="width:100px;margin-top:7px;margin-right:3px;background:#fffde1" class="input_text" maxlength="100"  />
                                        </div>

                                        <div class="labelGoodEdit" style="padding:13px 0">가이드 유무</div>
                                        <div class="valueGoodEdit">
                                            <input name="tour_exists_guide" id="tour_exists_guide" type="text" value="<?=$row['tour_exists_guide']?>" style="width:100px;margin-top:7px;background:#fffde1" class="input_text" maxlength="100"  />
                                        </div>
                                    </td>



                                </tr>
                            <?}?>



                            <?if($row['exchange_fg']=="Y"){?>
                                <tr>
                                    <th scope="row">화폐단위</th>
                                    <td colspan="5">
                                        1<?=$row['ext_eng']?>(<?=$row['ext_nm']?>) → <?=$row['ext_to_krw']?>KRW(원)
                                    </td>
                                </tr>
                            <?}?>



                            <?if($row['tab']=="D" || $row['tab']=="P") {?>
                                <tr>
                                    <th scope="row">미팅장소/미팅시간<br><span style="color:red;">(상품상세페이지 노출)</span></th>
                                    <td colspan="5">
                                        <table border="0" cellspacing="0" cellpadding="0" style="width:750px; height:100px;" class="setting_write" id="setting_write_meeting">
                                            <tr>
                                                <th>미팅장소</th><th>미팅시간</th><th width="30px"><span onclick="meetingPlace('add');" style="cursor:pointer; font-size:16px;"><i class="xi-plus-circle-o"></i></span></th>
                                            </tr>
                                            <tr>
                                                <td><input type="text" style="width:584px" class="input_text" name="meeting_place_arr[]" value="<?=$meeting_place_arr[0]['meeting_place']?>" size="50"></td>
                                                <td align="center"><input type="text" class="input_text" name="meeting_hh_arr[]" value="<?=$meeting_place_arr[0]['meeting_hh']?>" style="width:20px;"maxlength="2"> : <input type="text" class="input_text" name="meeting_mm_arr[]" value="<?=$meeting_place_arr[0]['meeting_mm']?>" size="5" style="width:20px;"maxlength="2"></td>
                                                <td></td>
                                            </tr>
                                            <?
                                            for($i=1 ; $i<count($meeting_place_arr) ; $i++) {
                                                $v = $meeting_place_arr[$i];
                                                ?>
                                                <tr>
                                                    <td><input type="text" class="input_text" name="meeting_place_arr[]" value="<?=$v['meeting_place']?>" size="50"></td>
                                                    <td align="center"><input type="text" class="input_text" name="meeting_hh_arr[]" value="<?=$v['meeting_hh']?>" style="width:20px;"maxlength="2"> : <input type="text" class="input_text" name="meeting_mm_arr[]" value="<?=$v['meeting_mm']?>" size="5" style="width:20px;"maxlength="2"></td>
                                                    <td align="center"><span onclick="meetingPlace('del',$(this));" style="cursor:pointer;font-size:16px;"><i class="xi-minus-circle-o"></i></span></td>
                                                </tr>
                                            <?}?>
                                        </table>
                                    </td>
                                </tr>
                            <?}?>

                            <tr>
                                <th scope="row">
                                    대표썸네일
                                    <br>
                                    <span class="ml10" style="color:red;"> (720px x 480px)</span>
                                </th>
                                <td colspan="5">
                                    <?php
                                    if($row['g_image1']){
                                        ?>
                                        <div style="float:left;position:relative;">
                                            <img src="<?=$row['img_src']?>" alt="상품이미지" width="239" height="180" style="cursor:pointer;" onClick="to_dialog.image(this.src,'메인이미지')" />
                                            <img src="/image/soldOut/<?=(($lang == 'ko') ? 'tb' : 'tk')?>_sold_out.png" alt="sold out" id="soldOutImg" style="display:<?=(($row['sold_out'] == 'Y') ? 'block' : 'none')?>;width:239px;position:absolute;top:14px;left:0;" />
                                        </div>
                                        <?php
                                    }
                                    ?>
                                    <div style="float:left;margin:0 0 0 20px;"><input type="file" name="g_image1" id="g_image1" size="30" class="input_file"></div>


                                    <br>
                                    <br>
                                    <div style="float:left;margin:0 0 0 25px;">
                                        <input type="checkbox" style="position:relative;top:-2px;" name="sold_out" id="soldOut" <?=(($row['sold_out'] == 'Y') ? 'checked' : '' )?> />
                                        <label for="soldOut">SOLD OUT 처리</label>
                                    </div>



                                    <a href="/toadmin/design/<?=(($lang == 'ko') ? 'tb' : 'tk')?>SoldOutImage.html" style="display:none;color:#fff;background:gray;padding:5px 10px;border-radius:5px;margin-left:15px" target="_blank">SOLD OUT 이미지 변경</a>
                                </td>
                            </tr>

                            <?php
                            //                            if($tab=="T"){

                            ?>

                            <tr style="display:none">
                                <th scope="row">상품소개</th>
                                <td colspan="5">
                                    <div style="width:750px;">
                                        <input type="file" name="good_detail_img" <?=(($row['good_detail_img']) ? '' : 'req')?> />
                                        <?php
                                        if($row['good_detail_img']){
                                            ?>
                                            <img src="/FileData/good_detail_img/<?=$row['good_detail_img']?>" width="10" />
                                            <?php
                                        }
                                        ?>

                                    </div>
                                </td>
                            </tr>

                            <?php
                            //                            } else { ?>
                            <tr>
                                <th scope="row">상세페이지
                                    <br>
                                    <span class="ml10" style="color:red;"> (가로 : 780px)</span>
                                </th>
                                <td colspan="5"><div style="width:750px;"><textarea name="g_special" id="g_special" class="ckeditor" ><?=$row['g_special']?></textarea></div></td>
                            </tr>

                            <?php

                            //}
                            ?>




                            <tr>
                                <th scope="row">
                                    <?if($tab=="T"){?>
                                        이용안내
                                    <?}else{?>
                                        포함내역
                                    <?}?>
                                </th>
                                <td colspan="5"><div style="width:750px;"><textarea name="g_inclusion" id="g_inclusion" class="ckeditor" ><?=$row['g_inclusion']?></textarea></div></td>
                            </tr>
                            <?if($tab=="D" || $tab=="P" || $tab=="V"){?>
                                <tr>
                                    <th scope="row">불포함내역</th>
                                    <td colspan="5"><div style="width:750px;"><textarea name="g_noinclusion" id="g_noinclusion" class="ckeditor" ><?=$row['g_noinclusion']?></textarea></div></td>
                                </tr>
                            <? } ?>

                            <tr>
                                <th scope="row">
						<span class="help_tooltip" title="HTML Tag사용 가능합니다.<br>아이프레임(iframe) Tag를 사용하셔서 입력하세요.<br>유튜브에서 소스코드를 복사후 붙여주세요.">
						  동영상 (소스코드)<span style="color:red; font-weight: 700;"><br>(1040 x 585)</span>

						  <br><br>라이브투어 : (540x304)
                                </th>
                                <td colspan="5"><div style="width:750px;"><textarea name="movie_i" id="movie_i" style="width:750px; height:100px;"><?=$row['movie_i']?></textarea></div></td>
                            </tr>


                            <!--<tr>
                                <th scope="row">주의사항</th>
                                <td colspan="5"><div style="width:750px;"><textarea name="g_cautions" id="g_cautions" style="min-height:300px"><$row['g_cautions']></textarea></div></td>
                            </tr>-->


                            <tr>
                                <th scope="row">주의사항</th>
                                <td colspan="5"><div style="width:750px;"><textarea name="g_cautions" id="g_cautions" class="ckeditor" ><?=$row['g_cautions']?></textarea></div></td>
                            </tr>

                            <!--<tr>
                                <th scope="row">주의사항<span style="color:red; font-weight: 700;">(MOBILE)</span></th>
                                <td colspan="5"><div style="width:750px;"><textarea name="g_cautions_mo" id="g_cautions_mo" class="ckeditor" ><?php /*=$row['g_cautions_mo']*/?></textarea></div></td>
                            </tr>-->



                            <tr>
                                <th scope="row">b2b 미팅장소</br>(가로 660px)</th>
                                <td colspan="5"><div style="width:750px;"><textarea name="google_map" id="google_map" class="ckeditor" ><?=$row['google_map']?></textarea></div></td>
                            </tr>

                            <!--                            <tr>-->
                            <!--                                <th scope="row">취소 및 환불규정</th>-->
                            <!--                                <td colspan="5"><div style="width:750px;"><textarea name="g_rule" id="g_rule" style="min-height:300px"><=$row['g_rule']></textarea></div></td>-->
                            <!--                            </tr>-->



                            <tr>
                                <th scope="row">취소 및 환불규정</th>
                                <td colspan="5"><div style="width:750px;"><textarea name="g_rule" id="g_rule" class="ckeditor" ><?=$row['g_rule']?></textarea></div></td>
                            </tr>
                            <!--
                            <tr>
                                <th scope="row">취소 및 환불규정<span style="color:red; font-weight: 700;">(MOBILE)</span></th>
                                <td colspan="5"><div style="width:750px;"><textarea name="g_rule_mo" id="g_rule_mo" class="ckeditor" ><?php /*=$row['g_rule_mo']*/?></textarea></div></td>
                            </tr>-->







                            <tr>
                                <th scope="row">SEO 키워드 <br>(META Keyword)</th>
                                <td colspan="5">
                                    <input name="seo_keyword" type="text" value="<?=$row['seo_keyword']?>" style="width:90%;" hname="SEO 키워드" class="input_text" required />
                                    <br>
                                    <span class="form_tooltip">※ 키워드간 구분은 ,를 사용 (키워드 수는 10개 정도가 적당) ex) 여행, 홍콩, 디즈니랜드, 홍콩 놀이공원, 야경</span>
                                </td>
                            </tr>

                            <tr>
                                <th scope="row">SEO 설명 <br>(META Description)</th>
                                <td colspan="5">
                                    <input name="seo_desc" type="text" value="<?=$row['seo_desc']?>" style="width:90%;" hname="SEO 설명" class="input_text" required />
                                    <span class="form_tooltip">※ 설명은 160자 정도가 적당하며 해당 상품의 핵심 키워드 3회 이상 들어가면 좋습니다.
                            ex) 여행대장에서 홍콩 디즈니랜드를 즐기고 홍콩의 야경도 즐기고 홍콩의 감성을 즐겨 보세요.</span>
                                </td>
                            </tr>

                            <tr>
                                <th scope="row">관련상품설정</th>
                                <td colspan="5">
                                    <table border=0>
                                        <tr>
                                            <td>
                                                <input type="hidden" name="idx1" value="<?=$regood_arr[0]['idx']?>">
                                                <input type="text" class="input_text" name="related_ordernum_arr1" value="<?=$regood_arr[0]['ordernum']?$regood_arr[0]['ordernum']:'1'?>" style="width:40px">
                                                <select name="b_uid1" id="b_uid1" onchange="$('#ajax_sc1').html('');ajax_obj_loader('good_edit_category_ajax2.html?mode=mc&b_uid1='+this.value,'ajax_mc1');" style="width:140px;">
                                                    <option value="" style="background:#000000;color:#ffffff;">==1차카테고리==</option>
                                                    <?
                                                    for($i=0 ; $i<count($data_bc) ; $i++){
                                                        $arr = $data_bc[$i];
                                                        ?>
                                                        <option value="<?=$arr['b_uid']?>" <?=($arr['b_uid']==$regood_arr[0]['b_uid'])?"selected":""?> ><?=$arr['b_name']?></option>
                                                        <?
                                                    }
                                                    ?>
                                                </select>
                                                <span id="ajax_mc1">
									<? 	$mc_arr = TO_get_mc($regood_arr[0]['b_uid'],"","N"); ?>

										<select name="m_uid1" id="m_uid1" onchange="ajax_obj_loader('../good/good_edit_category_ajax2.html?mode=sc&b_uid1=<?=$regood_arr[0]['b_uid']?>&m_uid1='+this.value,'ajax_sc1');">
											<option value="" style="background:#000000;color:#ffffff;">==2차카테고리==</option>
											<?
                                            for($i=0 ;$i<count($mc_arr)  ;$i++){
                                                $arr = $mc_arr[$i];
                                                ?>
                                                <option value="<?=$arr['m_uid']?>" <?=($regood_arr[0]['m_uid']==$arr['m_uid'])?"selected":""?>><?=$arr['m_name']?></option>
                                            <?}?>
										</select>
									</span><!-- 2차 카테고리 -->
                                                <span id="ajax_sc1">
									<? $sc_arr = TO_get_sc($regood_arr[0]['b_uid'],$regood_arr[0]['m_uid'],"","N"); ?>
										<select name="s_uid1" id="s_uid1" onchange="ajax_obj_loader('../good/good_edit_category_ajax2.html?mode=good&b_uid1=<?=$regood_arr[0]['b_uid']?>&m_uid1=<?=$m_uid1?>&s_uid1='+this.value,'ajax_good1');">
											<option value="" style="background:#000000;color:#ffffff;">==3차카테고리==</option>
											<?
                                            for($i=0 ;$i<count($sc_arr)  ;$i++){
                                                $arr = $sc_arr[$i];
                                                ?>
                                                <option value="<?=$arr['s_uid']?>" <?=($regood_arr[0]['s_uid']==$arr['s_uid'])?"selected":""?>><?=$arr['s_name']?></option>
                                            <?}?>
										</select>
									</span><!-- 3차 카테고리 -->
                                                <span id="ajax_good1">
									<? $data_good1 = $CommonTour->listGoodHotel(array("b_uid"=>$regood_arr[0]['b_uid'],"m_uid"=>$regood_arr[0]['m_uid'],"s_uid"=>$regood_arr[0]['s_uid'])); ?>
										<select name="g_uid1" id="g_uid1" style="width:500px">
											<option value="">=상품/호텔=</option>
											<?
                                            for($i=0 ;$i<count($data_good1)  ;$i++){
                                                $arr = $data_good1[$i];

                                                ?>
                                                <option value="<?=$arr['g_uid']?>" <?=($regood_arr[0]['r_uid']==$arr['g_uid'])?"selected":""?>><?=$arr['g_title']?></option>
                                            <?}?>
										</select>
									</span><!-- 상품 -->

                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <input type="hidden" name="idx2" value="<?=$regood_arr[1]['idx']?>">
                                                <input type="text" class="input_text" name="related_ordernum_arr2" value="<?=$regood_arr[1]['ordernum']?$regood_arr[1]['ordernum']:'2'?>" style="width:40px">
                                                <select name="b_uid2" id="b_uid2" onchange="$('#ajax_sc2').html('');ajax_obj_loader('good_edit_category_ajax2.html?mode=mc2&b_uid2='+this.value,'ajax_mc2');" style="width:140px;">
                                                    <option value="" style="background:#000000;color:#ffffff;">==1차카테고리==</option>
                                                    <?
                                                    for($i=0 ; $i<count($data_bc) ; $i++){
                                                        $arr = $data_bc[$i];
                                                        ?>
                                                        <option value="<?=$arr['b_uid']?>" <?=($arr['b_uid']==$regood_arr[1]['b_uid'])?"selected":""?>><?=$arr['b_name']?></option>
                                                        <?
                                                    }
                                                    ?>
                                                </select>
                                                <span id="ajax_mc2">
									<? 	$mc_arr2 = TO_get_mc($regood_arr[1]['b_uid'],"","N"); ?>

										<select name="m_uid2" id="m_uid2" onchange="ajax_obj_loader('../good/good_edit_category_ajax2.html?mode=sc2&b_uid2=<?=$regood_arr[1]['b_uid']?>&m_uid2='+this.value,'ajax_sc2');">
											<option value="" style="background:#000000;color:#ffffff;">==2차카테고리==</option>
											<?
                                            for($i=0 ;$i<count($mc_arr2)  ;$i++){
                                                $arr = $mc_arr2[$i];
                                                ?>
                                                <option value="<?=$arr['m_uid']?>" <?=($regood_arr[1]['m_uid']==$arr['m_uid'])?"selected":""?>><?=$arr['m_name']?></option>
                                            <?}?>
										</select>
									</span><!-- 2차 카테고리 -->
                                                <span id="ajax_sc2">
									<? $sc_arr2 = TO_get_sc($regood_arr[1]['b_uid'],$regood_arr[1]['m_uid'],"","N"); ?>
										<select name="s_uid2" id="s_uid2" onchange="ajax_obj_loader('../good/good_edit_category_ajax2.html?mode=good2&b_uid2=<?=$regood_arr[1]['b_uid']?>&m_uid2=<?=$m_uid2?>&s_uid2='+this.value,'ajax_good2');">
											<option value="" style="background:#000000;color:#ffffff;">==3차카테고리==</option>
											<?
                                            for($i=0 ;$i<count($sc_arr2)  ;$i++){
                                                $arr = $sc_arr2[$i];
                                                ?>
                                                <option value="<?=$arr['s_uid']?>" <?=($regood_arr[1]['s_uid']==$arr['s_uid'])?"selected":""?>><?=$arr['s_name']?></option>
                                            <?}?>
										</select>

									</span><!-- 3차 카테고리 -->
                                                <span id="ajax_good2">
									<? $data_good2 = $CommonTour->listGoodHotel(array("b_uid"=>$regood_arr[1]['b_uid'],"m_uid"=>$regood_arr[1]['m_uid'],"s_uid"=>$regood_arr[1]['s_uid'])); ?>
										<select name="g_uid2" id="g_uid2" style="width:500px">
											<option value="">=상품/호텔=</option>
											<?
                                            for($i=0 ;$i<count($data_good2)  ;$i++){
                                                $arr = $data_good2[$i];

                                                ?>
                                                <option value="<?=$arr['g_uid']?>" <?=($regood_arr[1]['r_uid']==$arr['g_uid'])?"selected":""?>><?=$arr['g_title']?></option>
                                            <?}?>
										</select>

									</span><!-- 상품 -->

                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <input type="hidden" name="idx3" value="<?=$regood_arr[2]['idx']?>">
                                                <input type="text" class="input_text" name="related_ordernum_arr3" value="<?=$regood_arr[2]['ordernum']?$regood_arr[2]['ordernum']:'3'?>" style="width:40px">
                                                <select name="b_uid3" id="b_uid3" onchange="$('#ajax_sc3').html('');ajax_obj_loader('good_edit_category_ajax2.html?mode=mc3&b_uid3='+this.value,'ajax_mc3');" style="width:140px;">
                                                    <option value="" style="background:#000000;color:#ffffff;">==1차카테고리==</option>
                                                    <?
                                                    for($i=0 ; $i<count($data_bc) ; $i++){
                                                        $arr = $data_bc[$i];
                                                        ?>
                                                        <option value="<?=$arr['b_uid']?>" <?=($arr['b_uid']==$regood_arr[2]['b_uid'])?"selected":""?>><?=$arr['b_name']?></option>
                                                        <?
                                                    }
                                                    ?>
                                                </select>
                                                <span id="ajax_mc3">
									<? 	$mc_arr3 = TO_get_mc($regood_arr[2]['b_uid'],"","N"); ?>

										<select name="m_uid3" id="m_uid3" onchange="ajax_obj_loader('../good/good_edit_category_ajax2.html?mode=sc3&b_uid3=<?=$regood_arr[2]['b_uid']?>&m_uid3='+this.value,'ajax_sc3');">
											<option value="" style="background:#000000;color:#ffffff;">==2차카테고리==</option>
											<?
                                            for($i=0 ;$i<count($mc_arr3)  ;$i++){
                                                $arr = $mc_arr3[$i];
                                                ?>
                                                <option value="<?=$arr['m_uid']?>" <?=($regood_arr[2]['m_uid']==$arr['m_uid'])?"selected":""?>><?=$arr['m_name']?></option>
                                            <?}?>
										</select>

									</span><!-- 2차 카테고리 -->
                                                <span id="ajax_sc3">
									<? $sc_arr3 = TO_get_sc($regood_arr[2]['b_uid'],$regood_arr[2]['m_uid'],"","N"); ?>
										<select name="s_uid3" id="s_uid3" onchange="ajax_obj_loader('../good/good_edit_category_ajax2.html?mode=good3&b_uid3=<?=$regood_arr[2]['b_uid']?>&m_uid3=<?=$m_uid3?>&s_uid3='+this.value,'ajax_good3');">
											<option value="" style="background:#000000;color:#ffffff;">==3차카테고리==</option>
											<?
                                            for($i=0 ;$i<count($sc_arr3)  ;$i++){
                                                $arr = $sc_arr3[$i];
                                                ?>
                                                <option value="<?=$arr['s_uid']?>" <?=($regood_arr[2]['s_uid']==$arr['s_uid'])?"selected":""?>><?=$arr['s_name']?></option>
                                            <?}?>
										</select>

									</span><!-- 3차 카테고리 -->
                                                <span id="ajax_good3">
									<? $data_good3 = $CommonTour->listGoodHotel(array("b_uid"=>$regood_arr[2]['b_uid'],"m_uid"=>$regood_arr[2]['m_uid'],"s_uid"=>$regood_arr[2]['s_uid'])); ?>
										<select name="g_uid3" id="g_uid3" style="width:500px">
											<option value="">=상품/호텔=</option>
											<?
                                            for($i=0 ;$i<count($data_good3)  ;$i++){
                                                $arr = $data_good3[$i];

                                                ?>
                                                <option value="<?=$arr['g_uid']?>" <?=($regood_arr[2]['r_uid']==$arr['g_uid'])?"selected":""?>><?=$arr['g_title']?></option>
                                            <?}?>
										</select>

									</span><!-- 상품 -->

                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <input type="hidden" name="idx4" value="<?=$regood_arr[3]['idx']?>">
                                                <input type="text" class="input_text" name="related_ordernum_arr4" value="<?=$regood_arr[3]['ordernum']?$regood_arr[3]['ordernum']:'4'?>" style="width:40px">
                                                <select name="b_uid4" id="b_uid4" onchange="$('#ajax_sc4').html('');ajax_obj_loader('good_edit_category_ajax2.html?mode=mc4&b_uid4='+this.value,'ajax_mc4');" style="width:140px;">
                                                    <option value="" style="background:#000000;color:#ffffff;">==1차카테고리==</option>
                                                    <?
                                                    for($i=0 ; $i<count($data_bc) ; $i++){
                                                        $arr = $data_bc[$i];
                                                        ?>
                                                        <option value="<?=$arr['b_uid']?>" <?=($arr['b_uid']==$regood_arr[3]['b_uid'])?"selected":""?>><?=$arr['b_name']?></option>
                                                        <?
                                                    }
                                                    ?>
                                                </select>
                                                <span id="ajax_mc4">
									<? 	$mc_arr4 = TO_get_mc($regood_arr[3]['b_uid'],"","N"); ?>

										<select name="m_uid4" id="m_uid4" onchange="ajax_obj_loader('../good/good_edit_category_ajax2.html?mode=sc4&b_uid4=<?=$regood_arr[3]['b_uid']?>&m_uid4='+this.value,'ajax_sc4');">
											<option value="" style="background:#000000;color:#ffffff;">==2차카테고리==</option>
											<?
                                            for($i=0 ;$i<count($mc_arr4)  ;$i++){
                                                $arr = $mc_arr4[$i];
                                                ?>
                                                <option value="<?=$arr['m_uid']?>" <?=($regood_arr[3]['m_uid']==$arr['m_uid'])?"selected":""?>><?=$arr['m_name']?></option>
                                            <?}?>
										</select>

									</span><!-- 2차 카테고리 -->
                                                <span id="ajax_sc4">
									<? $sc_arr4 = TO_get_sc($regood_arr[3]['b_uid'],$regood_arr[3]['m_uid'],"","N"); ?>
										<select name="s_uid4" id="s_uid4" onchange="ajax_obj_loader('../good/good_edit_category_ajax2.html?mode=good4&b_uid4=<?=$regood_arr[3]['b_uid']?>&m_uid4=<?=$m_uid4?>&s_uid4='+this.value,'ajax_good4');">
											<option value="" style="background:#000000;color:#ffffff;">==3차카테고리==</option>
											<?
                                            for($i=0 ;$i<count($sc_arr4)  ;$i++){
                                                $arr = $sc_arr4[$i];
                                                ?>
                                                <option value="<?=$arr['s_uid']?>" <?=($regood_arr[3]['s_uid']==$arr['s_uid'])?"selected":""?>><?=$arr['s_name']?></option>
                                            <?}?>
										</select>

									</span><!-- 3차 카테고리 -->
                                                <span id="ajax_good4">
									<? $data_good4 = $CommonTour->listGoodHotel(array("b_uid"=>$regood_arr[3]['b_uid'],"m_uid"=>$regood_arr[3]['m_uid'],"s_uid"=>$regood_arr[3]['s_uid'])); ?>
										<select name="g_uid4" id="g_uid4" style="width:500px">
											<option value="">=상품/호텔=</option>
											<?
                                            for($i=0 ;$i<count($data_good4)  ;$i++){
                                                $arr = $data_good4[$i];

                                                ?>
                                                <option value="<?=$arr['g_uid']?>" <?=($regood_arr[3]['r_uid']==$arr['g_uid'])?"selected":""?>><?=$arr['g_title']?></option>
                                            <?}?>
										</select>

									</span><!-- 상품 -->

                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <input type="hidden" name="idx5" value="<?=$regood_arr[4]['idx']?>">
                                                <input type="text" class="input_text" name="related_ordernum_arr5" value="<?=$regood_arr[4]['ordernum']?$regood_arr[4]['ordernum']:'5'?>" style="width:40px">
                                                <select name="b_uid5" id="b_uid5" onchange="$('#ajax_sc5').html('');ajax_obj_loader('good_edit_category_ajax2.html?mode=mc5&b_uid5='+this.value,'ajax_mc5');" style="width:140px;">
                                                    <option value="" style="background:#000000;color:#ffffff;">==1차카테고리==</option>
                                                    <?
                                                    for($i=0 ; $i<count($data_bc) ; $i++){
                                                        $arr = $data_bc[$i];
                                                        ?>
                                                        <option value="<?=$arr['b_uid']?>" <?=($arr['b_uid']==$regood_arr[4]['b_uid'])?"selected":""?>><?=$arr['b_name']?></option>
                                                        <?
                                                    }
                                                    ?>
                                                </select>
                                                <span id="ajax_mc5">
									<? 	$mc_arr5 = TO_get_mc($regood_arr[4]['b_uid'],"","N"); ?>

										<select name="m_uid5" id="m_uid5" onchange="ajax_obj_loader('../good/good_edit_category_ajax2.html?mode=sc5&b_uid5=<?=$regood_arr[4]['b_uid']?>&m_uid5='+this.value,'ajax_sc5');">
											<option value="" style="background:#000000;color:#ffffff;">==2차카테고리==</option>
											<?
                                            for($i=0 ;$i<count($mc_arr5)  ;$i++){
                                                $arr = $mc_arr5[$i];
                                                ?>
                                                <option value="<?=$arr['m_uid']?>" <?=($regood_arr[4]['m_uid']==$arr['m_uid'])?"selected":""?>><?=$arr['m_name']?></option>
                                            <?}?>
										</select>

									</span><!-- 2차 카테고리 -->
                                                <span id="ajax_sc5">
									<? $sc_arr5 = TO_get_sc($regood_arr[4]['b_uid'],$regood_arr[4]['m_uid'],"","N"); ?>
										<select name="s_uid5" id="s_uid5" onchange="ajax_obj_loader('../good/good_edit_category_ajax2.html?mode=good5&b_uid5=<?=$regood_arr[4]['b_uid']?>&m_uid5=<?=$m_uid5?>&s_uid5='+this.value,'ajax_good4');">
											<option value="" style="background:#000000;color:#ffffff;">==3차카테고리==</option>
											<?
                                            for($i=0 ;$i<count($sc_arr5)  ;$i++){
                                                $arr = $sc_arr5[$i];
                                                ?>
                                                <option value="<?=$arr['s_uid']?>" <?=($regood_arr[4]['s_uid']==$arr['s_uid'])?"selected":""?>><?=$arr['s_name']?></option>
                                            <?}?>
										</select>

									</span><!-- 3차 카테고리 -->
                                                <span id="ajax_good5">
									<? $data_good5 = $CommonTour->listGoodHotel(array("b_uid"=>$regood_arr[4]['b_uid'],"m_uid"=>$regood_arr[4]['m_uid'],"s_uid"=>$regood_arr[4]['s_uid'])); ?>
										<select name="g_uid5" id="g_uid5" style="width:500px">
											<option value="">=상품/호텔=</option>
											<?
                                            for($i=0 ;$i<count($data_good5)  ;$i++){
                                                $arr = $data_good5[$i];

                                                ?>
                                                <option value="<?=$arr['g_uid']?>" <?=($regood_arr[4]['r_uid']==$arr['g_uid'])?"selected":""?>><?=$arr['g_title']?></option>
                                            <?}?>
										</select>

									</span><!-- 상품 -->

                                            </td>

                                        </tr>



                                    </table>
                                </td>
                            </tr>




                            <?if($tab=="T") {?>
                                <tr>
                                    <th scope="row">모바일 주소지(삭제예정)</th>
                                    <td><input name="ticket_addr" id="ticket_addr" type="text" value="<?=$row['ticket_addr']?>" style="width:750px;" class="input_text"   /></td>
                                </tr>
                            <?php } ?>
                            <?if($tab=="T") {?>
                                <tr>
                                    <th scope="row">모바일 티켓교환처(삭제예정)</th>
                                    <td><input name="ticket_exchange" id="ticket_exchange" type="text" value="<?=$row['ticket_exchange']?>" style="width:750px;" class="input_text" maxlength="100"  /></td>
                                </tr>
                            <?php } ?>
                            <?if($tab=="T") {?>
                                <tr>
                                    <th scope="row">모바일 유효기간(삭제예정)</th>
                                    <td><input name="ticket_expiry_date" id="ticket_expiry_date" type="text" value="<?=$row['ticket_expiry_date']?>" style="width:750px;" class="input_text" maxlength="100"  /></td>
                                </tr>
                            <?php } ?>


                            </tbody>
                        </table>

                        <?php

                        if($lang == 'ko'){
                            ?>


                            <br>
                            <h2>베네피아 상품 검색 API 연동 데이터</h2>

                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register">
                                <tbody>
                                <tr>
                                    <th width="150" scope="row">여행지역<br><span class="form_tooltip">※ 필수 연동값</span></th>
                                    <td>
                                        <div>
                                            <?php
                                            $benepiaTourAreaCode = array(
                                                '서울' => '1',
                                                '인천' => '2',
                                                '대전' => '3',
                                                '대구' => '4',
                                                '광주' => '5',
                                                '부산' => '6',
                                                '울산' => '7',
                                                '세종특별자치시' => '8',
                                                '경기도' => '31',
                                                '강원도' => '32',
                                                '충청도' => '33',
                                                '경상도' => '35',
                                                '전라도' => '37',
                                                '제주도' => '39'
                                            );
                                            ?>
                                            <select name="benepia_region_cd" hname="베네피아 여행지역" required>
                                                <option value="">지역선택</option>
                                                <?php
                                                foreach($benepiaTourAreaCode as $key => $value){
                                                    ?>
                                                    <option <?=(($key == $row['benepia_region_cd']) ? 'selected' : '')?> value="<?=$key?>"><?=$key?></option>
                                                    <?php
                                                }
                                                ?>

                                            </select>
                                        </div>
                                    </td>
                                </tr>

                                <tr>
                                    <th width="150" scope="row">업체 문의 번호</th>
                                    <td>
                                        <div>
                                            <input name="benepiaTelNo" type="text" value="<?=$row['benepiaTelNo']?>" style="width:90%;" hname="연락처" class="input_text" />
                                            <br>
                                            <span class="form_tooltip">※ 베네피아 회원이 이 상품에 대해 문의할 수 있는 연락처를 입력하세요.</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <th width="150" scope="row">상품 여행지 우편번호</th>
                                    <td>
                                        <div>
                                            <input name="benepiaZipCd" type="text" value="<?=$row['benepiaZipCd']?>" style="width:90%;" hname="우편번호" class="input_text" />
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <th width="150" scope="row">상품 여행지 주소</th>
                                    <td>
                                        <div>
                                            <input name="benepiaAddress" type="text" value="<?=$row['benepiaAddress']?>" style="width:90%;" hname="주소" class="input_text" />
                                            <br>
                                            <span class="form_tooltip">※ ex) 서울특별시 동대문구 신이문로 39</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <th width="150" scope="row">상품 여행지 상세 주소</th>
                                    <td>
                                        <div>
                                            <input name="benepiaDetailAddress" type="text" value="<?=$row['benepiaDetailAddress']?>" style="width:90%;" hname="상세주소" class="input_text" />
                                            <br>
                                            <span class="form_tooltip">※ ex) 명경빌딩 5층</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <th width="150" scope="row">상품 홈페이지 URL</th>
                                    <td>
                                        <div>
                                            <input name="benepiaGoodUrl" type="url" value="<?=$row['benepiaGoodUrl']?>" style="width:90%;" hname="상품 홈페이지" class="input_text" />
                                            <br>
                                            <span class="form_tooltip">※ ex) https://www.63restaurant.co.kr/main.r63</span>
                                        </div>
                                    </td>
                                </tr>

                                </tbody>
                            </table>

                            <?php

                        }
                        ?>


                        <br>
                        <h2>API 설정 및 공급처</h2>

                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register">
                            <tbody>

                            <tr>
                                <th width="150" scope="row">공급처<span style="color:red; font-weight: 700;">(API)</span></th>
                                <td>
                                    <select name="producer_id" id="producer_id" style="width:180px;" >
                                        <option value="">==선택==</option>
                                        <?
                                        for($i=0 ; $i < count($prod_arr) ; $i++){
                                            $arr = $prod_arr[$i];
                                            ?>
                                            <option value="<?=$arr['mb_id']?>" <?=($arr['mb_id']==$row['producer_id'])?"selected":""?>><?=$arr['bz_corp_nm']?></option>
                                        <?}?>
                                    </select>
                                </td>
                            </tr>


                            <?php
                            $g_api_arr = explode(",",$row['g_api']);
                            ?>
                            <tr>
                                <th scope="row"><label for="exchange">API연동채널(국내)</label></th>
                                <td>
                                    <div>
                                        <label><input type="checkbox" name="g_api_arr[]" value="NAVER" <? if(in_array('NAVER', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/naver.png"> 네이버자동노출</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="BENEPIA" <? if(in_array('BENEPIA', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/benepiaIconS.png"> 베네피아자동노출</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="NAVER01" <? if(in_array('NAVER01', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/naver01.png"> 네이버예약</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="COUPANG" <? if(in_array('COUPANG', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/coupang.png"> COUPANG</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="TMON" <? if(in_array('TMON', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/tmon.png"> 티몬</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="YANOLJA" <? if(in_array('YANOLJA', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/yanolja.png"> 야놀자</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="YEOGI" <? if(in_array('YEOGI', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/yeogi.png"> 여기어때</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="NOLBAL" <? if(in_array('NOLBAL', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/nolbal.png"> 놀이의발견</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="ZIPLINE" <? if(in_array('ZIPLINE', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/zipline.png"> 짚라인코리아</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="SONO" <? if(in_array('SONO', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/sono.png"> SONO</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="KTO" <? if(in_array('KTO', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/kto.png"> 대구석</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="GMARKET" <? if(in_array('GMARKET', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/gmarket.png"> 지마켓</label> &nbsp;
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th scope="row"><label for="exchange">API연동채널(해외)</label></th>
                                <td>
                                    <div>
                                        <label><input type="checkbox" name="g_api_arr[]" value="TRIPCOM" <? if(in_array('TRIPCOM', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/tripcom.png"> TRIP.COM</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="KKDAY" <? if(in_array('KKDAY', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/kkday.png"> KKDAY</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="KLOOK" <? if(in_array('KLOOK', $g_api_arr)) echo "checked" ?>> <img src="/toadmin/image/partner/klook.png"> KLOOK</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="CREATRIP" <? if(in_array('CREATRIP', $g_api_arr)) echo "checked" ?>> <img style="width:16px" src="/toadmin/image/partner/creatrip.png"> CREATRIP</label> &nbsp;
                                        <label><input type="checkbox" name="g_api_arr[]" value="KOREATRAVELEASY" <? if(in_array('KOREATRAVELEASY', $g_api_arr)) echo "checked" ?>> <img style="width:16px" src="/toadmin/image/partner/kte.png"> KTE</label> &nbsp;

                                        <input type="checkbox" name="schedule_tour_statics_view" id="schedule_tour_statics_view" <?=(($row['schedule_tour_statics_view'] == 'Y') ? 'checked' : '')?> />
                                        <label for="schedule_tour_statics_view">일별출발인원 연동</label>

                                    </div>
                                </td>
                            </tr>


                            <tr>
                                <th width="150" scope="row">예약 방식</th>
                                <td>
                                    <div>
                                        <label><input type="radio" name="api_reserve_type" class="exchange" value="NORMAL" <? if($row['api_reserve_type'] == 'NORMAL') echo 'checked'; ?>> 날짜지정 예약</label> &nbsp;
                                        <label><input type="radio" name="api_reserve_type" class="exchange" value="AFTER" <? if($row['api_reserve_type'] == 'AFTER') echo 'checked'; ?>> 예약 후 날짜지정</label>

                                        <br><span class="form_tooltip">※ [예약 후 날짜지정] 방식은 판매처에서 이용권을 구매하면 발송되는 카카오톡 링크를 통해 날짜와 이용 시간을 손님이 선택하는 방식입니다.</span>
                                        <br><span class="form_tooltip">※ [예약 후 날짜지정] 방식을 사용할 경우에도 쿠팡 옵션코드는 한개 이상 행사에 꼭 설정해 주어야 합니다.</span>
                                    </div>
                                </td>
                            </tr>

                            <tr>
                                <th width="150" scope="row">스마트스토어<br>예약 방식</th>
                                <td>
                                    <div>
                                        <label><input type="radio" name="api_smart_store_reserve_type" class="exchange" value="NORMAL" <? if($row['api_smart_store_reserve_type'] == 'NORMAL') echo 'checked'; ?>> 날짜지정 예약</label> &nbsp;
                                        <label><input type="radio" name="api_smart_store_reserve_type" class="exchange" value="AFTER" <? if($row['api_smart_store_reserve_type'] == 'AFTER') echo 'checked'; ?>> 예약 후 날짜지정</label>

                                        <br><span class="form_tooltip">※ [예약 후 날짜지정] 방식은 판매처에서 이용권을 구매하면 발송되는 카카오톡 링크를 통해 날짜와 이용 시간을 손님이 선택하는 방식입니다.</span>
                                        <br><span class="form_tooltip">※ [예약 후 날짜지정] 방식을 사용할 경우에도 쿠팡 옵션코드는 한개 이상 행사에 꼭 설정해 주어야 합니다.</span>
                                    </div>
                                </td>
                            </tr>


                            <tr>
                                <th scope="row">쿠팡 상품코드</th>
                                <td>
                                    <input name="api_coupang_product_id" id="api_coupang_product_id" type="text" value="<?=$row['api_coupang_product_id']?>" style="width:110px;" class="input_text" readonly />
                                    <input name="api_coupang_travel_id" id="api_coupang_travel_id" type="text" value="<?=$row['api_coupang_travel_id']?>" style="width:140px;" class="input_text" readonly />
                                    <input type="button" value="쿠팡코드검색" class="Table_btn gray" onclick="to_dialog.iframe('/partner/coupang/search_product.php','쿠팡 상품코드','1000','670');" />
                                    <input type="button" value="삭제" class="Table_btn gray" onclick="javascript:$(this).parent().find('input[type=\'text\']').val('');" />
                                    <br><span class="form_tooltip">※ 쿠팡 API 연동 시 코드확인을 눌러 동일한 상품을 선택해 주세요. 그 다음 행사관리로 이동하여 "API 연동관리" 화면에서 쿠팡 옵션코드를 입력해주세요.</span>
                                </td>
                            </tr>
                            <tr>
                                <th scope="row">야놀자 상품코드</th>
                                <td>
                                    <input name="api_yanolja_product_id" id="api_yanolja_product_id" type="text" value="<?=$row['api_yanolja_product_id']?>" style="width:110px;" class="input_text" />
                                    <span class="form_tooltip">※ 야놀자에서 등록한 상품의 상품고유코드.</span>
                                </td>
                            </tr>

                            </tbody>
                        </table>


                        <br>
                        <h2>메일 매크로 설정</h2>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="t_register">
                            <tbody>
                            <?php
                            if($tab=="D") {?>
                                <tr>
                                    <th scope="row"><label for="gdt">투어분류</label></th>
                                    <td style="width:598px;border-top:none" >
                                        <select name="gdt" id="gdt" type="text" style="width:180px;" hname="투어분류" required>
                                            <option value="">==선택==</option>
                                            <option value="gr" <?=(($row['gdt_nm'] == '조인투어') ? 'selected' : '')?>>조인투어</option>
                                            <option value="pe" <?=(($row['gdt_nm'] == '단독투어') ? 'selected' : '')?>>단독투어</option>
                                        </select>
                                    </td>

                                    <th scope="row">담당자</th>
                                    <td colspan="3">
                                        <select name="admin_id" id="admin_id" style="width:180px;" hname="담당자" required>
                                            <option value="">==선택==</option>
                                            <?
                                            for($i=0 ; $i < count($admin_arr) ; $i++){
                                                $arr = $admin_arr[$i];
                                                ?>
                                                <option value="<?=$arr['mb_id']?>" <?=($arr['mb_id']==$row['admin_id'])?"selected":""?>><?=$arr['mb_nm']?></option>
                                            <?}?>
                                        </select>
                                    </td>
                                </tr>
                                <?php
                            }
                            ?>




                            <!--
				<tr>
					<th scope="row"><label for="exchange">확정 방식</label></th>
					<td>
						<div style="width:500px;">
							<label><input type="radio" name="confirm_type" class="exchange" value="M" <? if($row['confirm_type'] == 'M') echo 'checked'; ?>> 수동 확정 </label> &nbsp;
							<label><input type="radio" name="confirm_type" class="exchange" value="A" <? if($row['confirm_type'] == 'A') echo 'checked'; ?>> 자동 확정 </label>
						</div>
					</td>
				</tr>
				-->






                            <tr>
                                <th scope="row">
                                    <i class="xi-mail"></i>
                                    Creatrip<br>매크로 연동 상품명</th>
                                <td colspan="5" style="position:relative">
                                    <input placeholder="예약 이메일 상품명을 복사해서 넣어주세요!" name="creatrip_mail_good_name" id="creatrip_mail_good_name" type="text" value="<?=$row['creatrip_mail_good_name']?>" style="background:#fffde1;width:750px;" class="input_text" maxlength="200" hname="상품명" />

                                    <!--                                    <img src="../image/btn/arrow_down.gif" alt="닫기" style="position:absolute;right:0px;bottom:0px">-->
                                </td>
                            </tr>


                            <tr>
                                <th scope="row">
                                    <i class="xi-mail"></i>
                                    Klook<br>매크로 연동 상품명</th>
                                <td colspan="5">
                                    <input placeholder="예약 이메일 상품명을 복사해서 넣어주세요!" name="klook_mail_good_name" id="klook_mail_good_name" type="text" value="<?=$row['klook_mail_good_name']?>" style="background:#fffde1;width:750px;" class="input_text" maxlength="200" hname="상품명" />
                                </td>
                            </tr>

                            <tr>
                                <th scope="row">
                                    <i class="xi-mail"></i>
                                    kkday<br>매크로 연동 상품명</th>
                                <td colspan="5">
                                    <input placeholder="예약 이메일 상품명을 복사해서 넣어주세요!" name="kkday_mail_good_name" id="kkday_mail_good_name" type="text" value="<?=$row['kkday_mail_good_name']?>" style="background:#fffde1;width:750px;" class="input_text" maxlength="200" hname="상품명" />
                                </td>
                            </tr>

                            <tr>
                                <th scope="row">
                                    <i class="xi-mail"></i>
                                    Trazy<br>매크로 연동 상품명</th>
                                <td colspan="5">
                                    <input placeholder="예약 이메일 상품명을 복사해서 넣어주세요!" name="trazy_mail_good_name" id="trazy_mail_good_name" type="text" value="<?=$row['trazy_mail_good_name']?>" style="background:#fffde1;width:750px;" class="input_text" maxlength="200" hname="상품명" />
                                </td>
                            </tr>

                            </tbody>
                        </table>

                    </form>
                    <!-- /폼 -->
                    <div class="btn_wrap_C mt40" style="background-color: #edf0f5">
                        <a class="Bbtn red" onClick="edit_frm();" href="javascript:;">수정</a>&nbsp;<a href="index.html?<?=$_href?>" class="Bbtn gray">목록보기</a>
                    </div>

                </div>
                <!-- /본문 -->
            </div>
        </div>
    </div>

    <script type="text/javascript">
        function copy_url(url){
            var temp_elem = document.createElement("textarea");
            document.body.appendChild(temp_elem);

            temp_elem.value = url;
            temp_elem.select()
            temp_elem.setSelectionRange(0, 99999); /*For mobile devices*/

            document.execCommand("copy");
            document.body.removeChild(temp_elem);

            alert("클립보드에 링크 주소를 복사했습니다. 원하는 곳에 붙여넣기 하세요.\n\n" + url);

            return false;
        }

        function dispTabInfo(tabName){
            $('#currentTab').text($('#Tab-'+tabName).text());
        }

        function edit_frm()
        {
            var f=document.frm_ins;

            var result = to_validation(f);
            if (result==false) return false;

            /*var editorData = CKEDITOR.instances.seo_contents_text.getData();

			if(!editorData){
				alert('상품소개 (SEO광고)를 입력해 주세요.');
				CKEDITOR.instances.seo_contents_text.focus();
				return false;
			}*/


            <?php
            //            if(devCookie()){
            ?>
            console.log('duplicated checked is ' + $('#seoDuplicateCheckBtn').attr("isCheck"));
            if($('#seoDuplicateCheckBtn').attr("isCheck") != 'Y'){
                alert('컨텐츠 URL 중복체크를 진행하세요.');
                $('#seo_good_url').focus();
                return false;
            }

            <?php
            //            }
            ?>


            if(!confirm('수정하시겠습니까?')) return false;

            f.action = "good_proc.php?<?=$_href?>";

            f.submit();
        }

        function meetingPlace(_m,$o)
        {
            var str;

            str=	'<tr>'+
                '<td><input type="text" class="input_text" name="meeting_place_arr[]" value="" size="50"></td>'+
                '<td align="center"><input type="text" class="input_text" name="meeting_hh_arr[]" value="" style="width:20px;" maxlength="2"> : <input type="text" class="input_text" name="meeting_mm_arr[]" value="" size="5" style="width:20px;" maxlength="2"></td>'+
                '<td align="center"><span onclick="meetingPlace(\'del\',$(this));" style="cursor:pointer;font-size:16px;"><i class="xi-minus-circle-o"></i></span></td>'+
                '</tr>';

            switch(_m){
                case "add":
                    $("#setting_write_meeting tbody").append(str);
                    break;
                case "del":
                    $o.parent().parent("tr").remove();
                    break;
            }
        }

        $(function(){
            // 카테고리 세팅
            ajax_obj_loader('good_edit_category_ajax.html?mode=mc&b_uid=<?=$row['b_uid']?>&m_uid=<?=$row['m_uid']?>','ajax_mc'); // 2차 카텍고리
            ajax_obj_loader('good_edit_category_ajax.html?mode=sc&b_uid=<?=$row['b_uid']?>&m_uid=<?=$row['m_uid']?>&s_uid=<?=$row['s_uid']?>','ajax_sc'); // 3차 카텍고리

            // 국가 세팅
            ajax_obj_loader('good_edit_cityarea_ajax.html?mode=city&Bidx=<?=$row['Bidx']?>&Cidx=<?=$row['Cidx']?>','ajax_city');// 도시 정보세팅
            ajax_obj_loader('good_edit_cityarea_ajax.html?mode=place&Bidx=<?=$row['Bidx']?>&Cidx=<?=$row['Cidx']?>','ajax_place');// 관광지정보(TP01,지역정보)

            $(".ckeditor").each(function(){
                var c=$(this).attr("id");

                // /js/ckeditor_v4.9/plugins/upimgs,admin.lib.js 참고
                CKEDITOR.replace(c).ui.addButton( 'Heart', {
                    label: '이미지멀티업로드',
                    command: 'insertHeart',
                    toolbar: 'heart'
                });
            });
        });

        $(window).load(function(){

            $('#soldOut').change(function(){

                if($('#soldOut').is(":checked")){

                    $('#soldOutImg').fadeIn('fast');

                }else{
                    $('#soldOutImg').fadeOut('fast');
                }

            })

            $('.todayReserveYBtn').click(function(){
                $('#todayReserveTimeArea').css('display','none');
            });
            $('.todayReserveNBtn').click(function(){
                $('#todayReserveTimeArea').css('display','inline');
            });

            $('#seoCategoryUrlAddBtn').click(function(){

                $('#seoCategoryUrlFieldAdd').fadeIn('fast', function(){
                    $('#seoCategoryUrlRegBtn').fadeIn()
                })
            })

            //seo good url 중복체크
            $('#seoDuplicateCheckBtn').click(function(){
                seoCategoryDuplicateCheck();
            })

            $('#seo_second_category_url').change(function(){
                $('#seoDuplicateCheckBtn').attr("isCheck", "");

                //중복값 체크
                if($(this).val() == $('#seo_first_category_url').val()){
                    $('#seo_second_category_url').val('');
                    alert('First URL과 다른 값을 선택하세요.');
                }

                newUrlView();
            })

            $('#seo_good_url').keydown(function(){
                $('#seoDuplicateCheckBtn').attr("isCheck", "");
            })

            $('#seo_good_url').keyup(function(){
                newUrlView();
            })


            $('#seoCategoryUrlRegBtn').click(function(){
                seoCategoryUrlReg()
            })


            $('#seo_first_category_url').change(function(){
                newUrlView();
            })

            $('#newUrlCopyBtn').click(function(){
                copy_url($('#newUrlAddress').val());
            })

            $('#seoUrlInitBtn').click(function(){
                if(confirm('외부에서 해당 URL로 접근할 수 없습니다. 진행하시겠습니까?')){
                    guid = $(this).attr('guid');
                    if(guid){
                        seoUrlInit(guid)
                    }
                }
            })

            if($('#seo_good_url').val() == ''){

                gTitle = $('#g_title').val();

                if(!gTitle){
                    iziToast.show({
                        timeout:2000,
                        color: 'red',
                        title: '<img width="20" class="papagoIziToast" src="/toadmin/image/papago_og.png"> 파파고 번역',
                        message: '한국어를 입력하세요.',
                    });
                    $('textarea[name="ko"]').focus();
                    return false;
                }

                targetLang = 'en'

                startLang = $('#seoLang').val();

                if(startLang == 'cn'){
                    startLang = 'zh-CN';
                }else if(startLang == 'hk') {
                    startLang = 'zh-TW';
                }

                if(startLang != 'en'){
                    papago(gTitle, startLang, targetLang);
                }else{
                    gTitle = gTitle.toLowerCase();

                    let reg = /[`~!@#$%^&*()_|+\-=?;:↔®'",.<>\{\}\[\]\\\/]/gim;
                    gTitle = gTitle.replace(reg, "");
                    gTitle = gTitle.replaceAll(' ','-');
                    gTitle = gTitle.replaceAll('--','-');
                    gTitle = gTitle.replaceAll('---','-');

                    console.log('translateWord is ' + gTitle);


                    $('#seo_good_url').val(gTitle);

                }
            }

        });


        function papago(korKeyword, startLang, targetLang){

            $.ajax({
                type: "POST",
                url: "/toadmin/ajaxData/",
                data: {mode:'translatePapagoWithStartLang',korKeyword,startLang,targetLang},
                dataType: 'json',
                async:false,
                success: function (data) {

                    console.log('data is ' + JSON.stringify(data));
                    if(data.result){
                        translateWord = data.translateWord;

                        translateWord = translateWord.toLowerCase();
                        translateWord = translateWord.trim();


                        // 특수문자, 괄호, 점 모두 제거 - 공백은 제거 안함
                        let reg = /[`~!@#$%^&*()_|+\-=?;:↔®'",.<>\{\}\[\]\\\/]/gim;
                        translateWord = translateWord.replace(reg, "");

                        console.log('translateWord is ' + translateWord);

                        translateWord = translateWord.replaceAll(' ~ ','-');
                        translateWord = translateWord.replaceAll('~',' ');
                        translateWord = translateWord.replaceAll(' ','-');
                        translateWord = translateWord.replaceAll('--','-');
                        translateWord = translateWord.replaceAll('---','-');
                        translateWord = translateWord.replaceAll('--','-');
                        translateWord = translateWord.replaceAll("--","-");

                        console.log('translateWord is ' + translateWord);


                        $('#seo_good_url').val(translateWord);


                    }



                },
                error: function (e) {

                }
            });

        }

        function seoUrlInit(guid){

            if(!confirm('초기화 후 페이지가 새로고침됩니다. 진행하시겠습니까?')){
                return false;
            }
            if(!guid){
                iziToast.show({
                    timeout:2000,
                    color: 'red',
                    title: 'SEO URL 초기화',
                    message: "개발자에게 문의하세요.",
                });
            }

            $.ajax({
                type: "POST",
                url: "/toadmin/ajaxData/",
                data: {mode:'initSeoUrl',guid},
                dataType: 'json',
                async:false,
                success: function (data) {
                    console.log(JSON.stringify(data));
                    if(data.result == true){

                        iziToast.show({
                            timeout:2000,
                            color: 'green',
                            title: 'SEO URL 초기화',
                            message: "완료되었습니다.",
                        });

                        location.href = location.href;

                    }else{

                        iziToast.show({
                            timeout:2000,
                            color: 'red',
                            title: 'SEO URL 초기화',
                            message: data.errMsg,
                        });

                    }
                },
                error: function (e) {

                    if(!guid){
                        iziToast.show({
                            timeout:2000,
                            color: 'red',
                            title: 'SEO URL 초기화',
                            message: "개발자에게 문의하세요. - 500",
                        });
                    }


                }
            });

        }

        function newUrlView(){

            nowDomainUrl = $('#nowDomainUrl').val();
            firstCategoryValue = $('#seo_first_category_url').val();
            secondCategoryValue = $('#seo_second_category_url').val();
            goodValue = $('#seo_good_url').val();

            newUrl = nowDomainUrl+firstCategoryValue+'/'+secondCategoryValue+'/'+goodValue+'/';

            $('#seoUrlAddress').text("새 URL : " + newUrl)
            $('#newUrlAddress').val(newUrl);
            $('#newUrlLink').attr('href',newUrl);

        }





        function seoCategoryUrlReg(){

            seoCategoryUrl = $('#seoCategoryUrlFieldAdd').val();

            $.ajax({
                type: "POST",
                url: "/toadmin/ajaxData/",
                data: {mode:'inputSeoCategoryUrl',seoCategoryUrl, ins_id:to_mb_id},
                dataType: 'json',
                async:false,
                success: function (data) {
                    console.log(JSON.stringify(data));
                    if(data.result == true){

                        if(data.isCreatingFolder == false){
                            iziToast.show({
                                timeout:5000,
                                color: 'red',
                                title: 'SEO URL',
                                message: "폴더생성실패 개발자에게 문의하세요.",
                            });
                        }else{
                            iziToast.show({
                                timeout:2000,
                                color: 'green',
                                title: 'SEO URL',
                                message: "입력완료되었습니다.",
                            });
                        }


                        $('#seo_second_category_url').append($('<option>', {
                            value: seoCategoryUrl,
                            text: seoCategoryUrl
                        }));

                        $('#seo_second_category_url').val(seoCategoryUrl);

                        $('#seoCategoryUrlFieldAdd').val('');
                        $('#seoCategoryUrlFieldAdd').fadeOut();
                        $('#seoCategoryUrlRegBtn').fadeOut();




                    }else{

                        iziToast.show({
                            timeout:2000,
                            color: 'red',
                            title: 'SEO URL',
                            message: data.errMsg,
                        });

                    }
                },
                error: function (e) {
                }
            });

        }


        function seoCategoryDuplicateCheck(){

            firstCategoryUrl = $('#seo_first_category_url').val();
            secondCategoryUrl = $('#seo_second_category_url').val();
            seoGoodUrl = $('#seo_good_url').val();
            nowLang = $('#seoLang').val();

            if(!firstCategoryUrl){
                alert('First Category URL을 선택하세요.');
                $('#seo_first_category_url').focus();
                return false;
            }

            if(!secondCategoryUrl){
                alert('Second Category URL을 선택하세요.');
                $('#seo_second_category_url').focus();
                return false;
            }

            if(!seoGoodUrl){
                alert('url을 입력하세요.');
                $('#seo_good_url').focus();
                return false;
            }

            $.ajax({
                type: "POST",
                url: "/toadmin/ajaxData/",
                data: {mode:'seoDuplicateCheck', firstCategoryUrl, secondCategoryUrl, seoGoodUrl, nowLang},
                dataType: 'json',
                async:false,
                success: function (data) {
                    console.log(JSON.stringify(data));
                    if(data.result == true){

                        if(data.isDuplicate == true){

                            $('#seoDuplicateCheckBtn').attr("isCheck", "");

                            iziToast.show({
                                timeout:3000,
                                color: 'red',
                                title: 'SEO 상품 URL',
                                message: "사용할 수 없습니다.",
                                position:'bottomCenter',
                            });

                        }else{

                            $('#seoDuplicateCheckBtn').attr("isCheck", "Y");

                            iziToast.show({
                                timeout:2000,
                                color: 'green',
                                title: 'SEO 상품 URL',
                                message: "사용할 수 있습니다.",
                            });



                        }

                    }else{

                        iziToast.show({
                            timeout:2000,
                            color: 'red',
                            title: 'SEO 상품 URL',
                            message: data.errMsg,
                        });

                    }
                },
                error: function (e) {

                    iziToast.show({
                        timeout:5000,
                        color: 'red',
                        title: 'SEO 상품 URL ERROR',
                        message: '개발자에게 문의하세요.',
                    });

                }
            });


        }

    </script>
<?php
include "../include/footer.html";
?>

Anon7 - 2021