질문과 답변

2025.11.10 10:35

도움요청드립니다. 상품 구매 페이지 카테고리 변경이 잘 안되네요

Uploaded Image

테마 basic > shop > shop.head.php 파일입니다.

https://om.tloghost.kr/shop/1670824116

  • Preview Image
  • 상품판매 페이지도 공지를 리스트처럼 카테고리가 나오게 하고 싶습니다.


    코드가 짤리네요. 위에 zip파일을 다운로드 받아 코드 수정좀 해주세요





    <?php

    if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가


    $q = isset($_GET['q']) ? clean_xss_tags($_GET['q'], 1, 1) : '';


    if(G5_IS_MOBILE) {

        include_once(G5_THEME_MSHOP_PATH.'/shop.head.php');

        return;

    }


    include_once(G5_THEME_PATH.'/head.sub.php');

    include_once(G5_LIB_PATH.'/outlogin.lib.php');

    include_once(G5_LIB_PATH.'/poll.lib.php');

    include_once(G5_LIB_PATH.'/visit.lib.php');

    include_once(G5_LIB_PATH.'/connect.lib.php');

    include_once(G5_LIB_PATH.'/popular.lib.php');

    include_once(G5_LIB_PATH.'/latest.lib.php');


    add_javascript('<script src="'.G5_JS_URL.'/owlcarousel/owl.carousel.min.js"></script>', 10);

    add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/owlcarousel/owl.carousel.css">', 0);

    add_stylesheet('<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">');

    add_stylesheet('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@xpressengine/xeicon@2.3.3/xeicon.min.css">');

    //안읽은 알림

    if ($is_member) {

            if( isset($member['mb_memo_cnt']) ){

                $memo_not_read = $member['mb_memo_cnt'];

            } else {

                $memo_not_read = get_memo_not_read($member['mb_id']);

            }

    }


    //안읽은 메세지

    if ($is_member) {

            if( isset($member['mb_chat_cnt']) ){

                $chat_not_read = $member['mb_chat_cnt'];

            } else {

                $chat_not_read = get_chat_not_read($member['mb_id']);

            }

    }


    //공유포인트 세션처리

    if(!session_id()) {

        session_start();

    }


    //세션 변수 등록 / 해당상품만 적용

    if($default['de_ssr_sh'] > 0) { // 설정이 되어있는 경우만

        if($_GET['seller_id'] && $_GET['it_id'] && $_GET['seller_id'] != $member['mb_id']) { 

            $_SESSION['seller_id'] = $_GET['seller_id'];

            $_SESSION['seller_it_id'] = $_GET['it_id'];

        } else { 

            $_SESSION['seller_id'] = "";

            $_SESSION['seller_it_id'] = "";

        }

    } else {  // 설정안된경우 비운다

        $_SESSION['seller_id'] = "";

            $_SESSION['seller_it_id'] = "";

    }


    //공구 종료 전체알림

    //종료된 공구가 있는지 체크 (al_chk = 0 알림을 보내지 않은것만 체크)

    $today_in = date("Y-m-d");

    $sql_end = " select * from {$g5['g5_shop_item_table']} where item_type = '10' and DATE_FORMAT(it_2, '%Y-%m-%d') < '{$today_in}' and it_use = '1' and al_chk = '0' ";

    $ress_end = sql_query($sql_end); 



        for ($i=0; $rows_end=sql_fetch_array($ress_end); $i++) {

            

                $partner_ids = $rows_end['it_10']; // 판매자 아이디를 얻는다.


                

                $rows_end_me = sql_fetch(" select max(me_id) as new_me_id from {$g5['memo_table']} ");

                $me_end_id = $rows_end_me['new_me_id'] + 1;


                $send_id_end = 'admin'; //발송할 아이디

                $memo_content_end = '등록하신 '.$rows_end['it_name'].' 공동구매의 기간이 종료 되었습니다. 공구현황을 확인해주세요.';


                $sql_ms1 = " insert into {$g5['memo_table']} set me_id='$me_end_id', me_recv_mb_id = '{$partner_ids}', me_send_mb_id = '{$send_id_end}', me_send_datetime='".G5_TIME_YMDHIS."', me_memo = '".$memo_content_end."', me_chk = '{$partner_ids}-{$rows_end['it_id']}-{$rows_end['item_type']}-partner' ";

                sql_query($sql_ms1);


                $sql_ms2 = " update {$g5['member_table']} set mb_memo_call = 'admin', mb_memo_cnt = '".get_memo_not_read($partner_ids)."' where mb_id = '{$partner_ids}' ";

                sql_query($sql_ms2);

            

                

                        /*************** Push */

        

                        $sql_push = "select token as devno, mb_id from g5_member where token_and = 'and' and mb_id='{$partner_ids}'  and token != '' "; //수신자

                        $res_push = sql_query($sql_push); 


                        $tokens = array(); 


                        while ($row = sql_fetch_array($res_push)) 

                        {

                            $tokens[] =trim(str_replace(" ","",$row['devno'])); 

                        }


                        $title = "공동구매 종료 알림"; //푸시제목

                        $message = $memo_content_end; //메세지

                        $links = urldecode(G5_URL."/shop/item.php?it_id=".$rows_end['it_id']); //이동주소

                        $urls = urldecode(G5_URL);

                        $icons = G5_URL."/app/noti_only.png";

                        $icons2 = G5_URL."/app/noti.png";


                        $arr = array(); 

                        $arr['title'] = $title;  

                        $arr['body'] = $message; 

                        $arr['message'] = $message;

                        $arr['murl'] = $links;

                        $arr['surl'] = $links;

                        $arr['url']   = $urls; 

                        $arr['largeIcon'] = $icons;  

                        $arr['icon']  = $icons2;

                        $arr['ch']    = $icons2;  

                        $arr['url1']  = $icons2;  


                        $arr['gType'] = "1";  

                        $message_status = Android_Push($tokens, $arr); 


                        /************** Push */

                

                //알림 중복이 되지않도록 아이템 테이블에 업데이트

                $sql_push_chk = " update {$g5['g5_shop_item_table']} set al_chk = '1' where it_id = '{$rows_end['it_id']}' ";

                sql_query($sql_push_chk);

                

            

        }




    //종료된 공구가 있는지 체크

    $sql_end2 = " select * from {$g5['g5_shop_item_table']} where item_type = '10' and DATE_FORMAT(it_2, '%Y-%m-%d') < '{$today_in}' and it_use = '1' ";

    $ress_end2 = sql_query($sql_end2); 


        


        for ($i=0; $rows_end2=sql_fetch_array($ress_end2); $i++) {

            

            //조회된 상품의 전체 구매합계를 조회

            $row_all_p = sql_fetch(" select sum(ct_qty * ct_price + io_price) as cnt_price from g5_shop_cart where it_id = '{$rows_end2['it_id']}' and ct_status IN ('입금','준비','배송','완료') ");

            

            //전체 구매합계가 목표금액보다 크거나 같을때 (성공)

            if($rows_end2['it_3'] <= $row_all_p['cnt_price']) {

                

                //해당상품의 알림을 보내지 않은 구매자 ID를 얻는다.

                $sql_user = " select mb_id, ct_id from {$g5['g5_shop_cart_table']} where ct_status IN ('주문', '입금') and it_id = '{$rows_end2['it_id']}' and al_chk = '0' group by od_id ";

                $res_user = sql_query($sql_user); 

                

                    

                    //얻어진 ID에게 알림을 발송

                    for ($i=0; $row_user=sql_fetch_array($res_user); $i++) {

                    

                        $rows_me = sql_fetch(" select max(me_id) as new_me_id from {$g5['memo_table']} ");

                        $me_ids = $rows_me['new_me_id'] + 1;


                        $send_ids = 'admin'; //발송할 아이디

                        $memo_contents = '참여중인 '.$rows_end2['it_name'].' 공동구매가 목표금액을 달성했습니다.';

                        $from_ids = $row_user['mb_id'];


                        $sql_m1 = " insert into {$g5['memo_table']} set me_id='$me_ids', me_recv_mb_id = '{$from_ids}', me_send_mb_id = '$send_ids', me_send_datetime='".G5_TIME_YMDHIS."', me_memo='".$memo_contents."', me_chk = '{$from_ids}-{$rows_end2['it_id']}-{$row_user['od_id']}-{$row_user['ct_item_type']}' ";

                        sql_query($sql_m1);


                        $sql_m2 = " update {$g5['member_table']} set mb_memo_call = 'admin', mb_memo_cnt = '".get_memo_not_read($from_ids)."' where mb_id = '{$from_ids}' ";

                        sql_query($sql_m2);

                        

                        /*************** Push */

        


                        $sql_push = "select token as devno, mb_id from g5_member where token_and = 'and' and mb_id='{$from_ids}'  and token != '' "; //수신자

                        $res_push = sql_query($sql_push); 


                        $tokens = array(); 


                        while ($row = sql_fetch_array($res_push)) 

                        {

                            $tokens[] =trim(str_replace(" ","",$row['devno'])); 

                        }


                        $title = "공동구매 성공 알림"; //푸시제목

                        $message = $memo_contents; //메세지

                        $links = urldecode(G5_URL."/shop/item.php?it_id=".$rows_end2['it_id']); //이동주소

                        $urls = urldecode(G5_URL);

                        $icons = G5_URL."/app/noti_only.png";

                        $icons2 = G5_URL."/app/noti.png";


                        $arr = array(); 

                        $arr['title'] = $title;  

                        $arr['body'] = $message; 

                        $arr['message'] = $message;

                        $arr['murl'] = $links;

                        $arr['surl'] = $links;

                        $arr['url']   = $urls; 

                        $arr['largeIcon'] = $icons;  

                        $arr['icon']  = $icons2;

                        $arr['ch']    = $icons2;  

                        $arr['url1']  = $icons2;  


                        $arr['gType'] = "1";  

                        $message_status = Android_Push($tokens, $arr); 


                        /************** Push */

                        

                        //알림 중복이 되지않도록 카트 테이블에 업데이트

                        $sql_push_chk = " update {$g5['g5_shop_cart_table']} set al_chk = '1' where mb_id = '{$row_user['mb_id']}' and ct_id = '{$row_user['ct_id']}' ";

                        sql_query($sql_push_chk);

                    

                    }


                

            } else { //실패

                

                //해당상품의 알림을 보내지 않은 구매자 ID를 얻는다.

                $sql_user = " select mb_id, ct_id from {$g5['g5_shop_cart_table']} where ct_status IN ('주문', '입금') and it_id = '{$rows_end2['it_id']}' and al_chk = '0' group by od_id ";

                $res_user = sql_query($sql_user); 


                    

                    //얻어진 ID에게 알림을 발송

                    for ($i=0; $row_user=sql_fetch_array($res_user); $i++) {

                    

                        $rows_me = sql_fetch(" select max(me_id) as new_me_id from {$g5['memo_table']} ");

                        $me_ids = $rows_me['new_me_id'] + 1;


                        $send_ids = 'admin'; //발송할 아이디

                        $memo_contents = '참여중인 '.$rows_end2['it_name'].' 공동구매가 기간동안 목표금액을 달성하지 못하여 실패처리 되었습니다.

                        해당 주문건은 취소(환불) 될 예정입니다. 자세한 내용은 1:1문의 또는 상품문의를 이용해주세요.';

                        $from_ids = $row_user['mb_id'];


                        $sql_m1 = " insert into {$g5['memo_table']} set me_id='$me_ids', me_recv_mb_id = '{$from_ids}', me_send_mb_id = '$send_ids', me_send_datetime='".G5_TIME_YMDHIS."', me_memo = '".$memo_contents."', me_chk =' {$from_ids}-{$rows_end2['it_id']}-{$row_user['od_id']}-{$row_user['ct_item_type']}' ";

                        sql_query($sql_m1);


                        $sql_m2 = " update {$g5['member_table']} set mb_memo_call = 'admin', mb_memo_cnt = '".get_memo_not_read($from_ids)."' where mb_id = '{$from_ids}' ";

                        sql_query($sql_m2);

                        

                        /*************** Push */

        


                        $sql_push = "select token as devno, mb_id from g5_member where token_and = 'and' and mb_id='{$from_ids}'  and token != '' "; //수신자

                        $res_push = sql_query($sql_push); 


                        $tokens = array(); 


                        while ($row = sql_fetch_array($res_push)) 

                        {

                            $tokens[] =trim(str_replace(" ","",$row['devno'])); 

                        }


                        $title = "공동구매 실패 알림"; //푸시제목

                        $message = $memo_contents; //메세지

                        $links = urldecode(G5_URL."/shop/item.php?it_id=".$rows_end2['it_id']); //이동주소

                        $urls = urldecode(G5_URL);

                        $icons = G5_URL."/app/noti_only.png";

                        $icons2 = G5_URL."/app/noti.png";


                        $arr = array(); 

                        $arr['title'] = $title;  

                        $arr['body'] = $message; 

                        $arr['message'] = $message;

                        $arr['murl'] = $links;

                        $arr['surl'] = $links;

                        $arr['url']   = $urls; 

                        $arr['largeIcon'] = $icons;  

                        $arr['icon']  = $icons2;

                        $arr['ch']    = $icons2;  

                        $arr['url1']  = $icons2;  


                        $arr['gType'] = "1";  

                        $message_status = Android_Push($tokens, $arr); 


                        /************** Push */

                        

                        //알림 중복이 되지않도록 카트 테이블에 업데이트

                        $sql_push_chk = " update {$g5['g5_shop_cart_table']} set al_chk = '1' where mb_id = '{$row_user['mb_id']}' and ct_id = '{$row_user['ct_id']}' ";

                        sql_query($sql_push_chk);

                    

                    }


                

            }


            

        }




    //등록된 변수 사용

    //echo "seller_id: ".$_SESSION['seller_id']."<br/>";

    //echo "seller_it_id 값: ".$_SESSION['seller_it_id'];


    ?>


    <?php 

    /*

    $subcate = substr($_GET['ca_id'], 0, 2);

    */

    ?>


    <?php

        if(defined('_INDEX_')) { // index에서만 실행

            include G5_BBS_PATH.'/newwin.inc.php'; // 팝업레이어

        }

    ?>


    <?

    //ajax 알람

    include_once(G5_PLUGIN_PATH.'/alarm/alarm.php');

    ?>


    <?php

    //푸시 기기등록을 위한 토큰전송

    if($_SERVER['HTTP_X_REQUESTED_WITH'] == $config['cf_10']) {

    ?>

    <script>

    <?php if($member['mb_id']) { ?>

    window.Android.call_log('token');  

    function setMsg(msg) {

        //alert(msg);

        $.post("<?php echo G5_BBS_URL ?>/push_update.php", { 

            user_idx: "<?php echo $member['mb_id'];?>", 

            token : msg  

        }, function(result){ 

            //alert("success"+result); 

        });

    }

    <?php } ?>

    </script>

    <?php } ?>



    <div class="main_wrap">


        <!-- 상단 { -->

        <div class="top_wrap">

            <div class="top_fixed">

            <div class="inner">

                <ul class="top_wrap_ul1">

                    <a href="<?php echo G5_URL ?>" class="pc"><img src="<?php echo G5_THEME_URL ?>/image/top/logo.png"></a>

                    <a href="<?php echo G5_URL ?>" class="mobile"><img src="<?php echo G5_THEME_URL ?>/image/top/logo_m.png"></a>

                </ul>

                <ul class="top_wrap_ul2">

                    <div class="gnb">

                        <?php

                        $menu_datas = get_menu_db(0, true);

                        $gnb_zindex = 999; // gnb_1dli z-index 값 설정용

                        $i = 0;

                        foreach( $menu_datas as $row ){

                            if( empty($row) ) continue;

                        ?>


                        <a href="<?php echo $row['me_link']; ?>" class="font-naver-EB"><?php echo $row['me_name'] ?></a>

                        

                        <?php

                        $i++;

                        }

                        ?>

                        <!-- <a href="<?php echo G5_SHOP_URL ?>/search.php?qnow=1" class="font-naver-EB top_gnb_bolt">당일발송</a> -->

                    </div>

                </ul>

                <ul class="top_wrap_ul4">

                    

                    <li class="po_rel">

                        <a href="<?php echo G5_BBS_URL ?>/chat_list.php" title="메세지">

                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-message-circle"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path></svg>

                        </a>

                        <?php if($chat_not_read > 0) { ?>

                        <span class="top_num_ico font-naver-H" onclick="location.href='<?php echo G5_BBS_URL ?>/chat_list.php';"><?php echo $chat_not_read ?></span>

                        <?php } ?>

                    </li>

                    

                    <li class="mobile">

                        <a href="<?php echo G5_SHOP_URL ?>/search_product.php?sq=" title="검색">

                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>

                        </a>

                    </li>

                    <li class="po_rel">

                        <a href="<?php echo G5_BBS_URL ?>/memo.php" title="알림">

                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bell"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>

                        </a>

                        <?php if($memo_not_read > 0) { ?>

                        <span class="top_num_ico font-naver-H" onclick="location.href='<?php echo G5_BBS_URL ?>/memo.php';"><?php echo $memo_not_read ?></span>

                        <?php } ?>

                    </li>

                    <li>

                        <a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php" title="회원정보 수정">

                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>

                        </a>

                    </li>

                    <li class="po_rel">

                        <a href="<?php echo G5_SHOP_URL; ?>/cart.php" title="장바구니">

                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-shopping-cart"><circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path></svg>

                        </a>

                        <?php if(get_boxcart_datas_count() > 0) { ?>

                        <span class="top_num_ico font-naver-H" onclick="location.href='<?php echo G5_SHOP_URL; ?>/cart.php';"><?php echo get_boxcart_datas_count(); ?></span>

                        <?php } ?>

                    </li>

                    <li class="r_gnb_li"><a href="javascript:void(0);" class="sh-side-options-item-trigger"><img src="<?php echo G5_THEME_URL ?>/image/icon/ico_r_gnb.svg"></a></li>

                </ul>


                <div class="cb"></div>

            </div>

                

                <div class="mobile mobile_gnbs">

                    <div class="swiper-container swiper-container-sgnb-m">

                        <ul class="swiper-wrapper swiper-wrapper-sgnb-m">

                    <?php

                        $menu_datas = get_menu_db(0, true);

                        $gnb_zindex = 999; // gnb_1dli z-index 값 설정용

                        $i = 0;

                        foreach( $menu_datas as $row ){

                            if( empty($row) ) continue;

                        ?>


                            <li class="swiper-slide swiper-slide-sgnb-m"><a href="<?php echo $row['me_link']; ?>" class="font-naver-EB"><?php echo $row['me_name'] ?></a></li>

                        

                        <?php

                        $i++;

                        }

                        ?>

                            <!-- <li class="swiper-slide swiper-slide-sgnb-m"><a href="<?php echo G5_SHOP_URL ?>/search.php?qnow=1" class="font-naver-EB top_gnb_bolt">당일발송</a></li> -->

                        </ul>

                    </div>

                    <script>

                        var swiper = new Swiper('.swiper-container-sgnb-m', {

                            slidesPerView: 'auto', //가로갯수

                            spaceBetween: 25, // 간격

                            touchRatio: 1, // 드래그 가능여부(1, 0)

                            slidesOffsetBefore: 20, //좌측여백 px

                            slidesOffsetAfter: 20, // 우측여백 px

                        });

                    </script>

                </div>

                

            </div>

            

            <script>

                var didScroll; 

                var lastScrollTop = 0; 

                var delta = 5; 

                var navbarHeight = $('.top_fixed').outerHeight();


                $(window).scroll(function(event){ 

                    didScroll = true; 

                });


                setInterval(function() { 

                    if (didScroll) { 

                        hasScrolled(); didScroll = false; 

                    } 

                }, 10);


                function hasScrolled() {

                    var st = $(this).scrollTop();

                    if(Math.abs(lastScrollTop - st) <= delta)

                        return;

                    if (st > lastScrollTop && st > navbarHeight){

                        $('.top_fixed').addClass('gnb_up');

                        $('#sub_cates').addClass('cate_up');

                        

                    } else {    

                        if(st < 10) {

                            $('.top_fixed').removeClass('gnb_up');

                            $('#sub_cates').removeClass('cate_up');

                        }

                    }


                    lastScrollTop = st;

                }


            </script>

            

            <?php

            if($_GET['ca_id']) {


                $gnb_ca_id = substr($_GET['ca_id'], 0, 2); 

                $sql_gnb = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '{$gnb_ca_id}%' and length(ca_id) = '4' and ca_use = '1' order by ca_id ";

    $result_gnb = sql_query($sql_gnb);

                

            }

            ?>

            

                <div class="gnb_sub_div">

                    <div class="inner">

                    <ul class="gnb_sub_div_ul1" id="sub_cates">

                        <li class="gnb_sub_div_ul1_li1">

                                <?php if($_GET['ca_id']) { ?>

                                

                                <?php

                                for($j=0; $row_gnb=sql_fetch_array($result_gnb); $j++) {

                                    if($j == 0)

                                        echo '<ul class="swiper-container swiper-container-sgnb"><ul class="swiper-wrapper swiper-wrapper-sgnb">';

                                        $ca_list_href = G5_SHOP_URL.'/list.php?ca_id='.$row_gnb['ca_id'];

                                    

                                        if(strlen($_GET['ca_id']) == 2) {

                                            $cate_2st = "";

                                        } else { 

                                            $cate_2st = substr($_GET['ca_id'], 0, 4);

                                        }

                                        

                                ?>

                            

                            <li class="swiper-slide swiper-slide-sgnb"><a href="<?php echo $ca_list_href; ?>" class="sct_ct_view <?php if($cate_2st == $row_gnb['ca_id']) { ?>top_ons<?php } ?>"><?php echo $row_gnb['ca_name']; ?></a></li>

                            

                                <?php

                                }

                                if($j > 0) {

                                    echo '</ul></ul>';

                                } else if($j == 0) { ?>

                                    <?php echo latest('theme/notice_top', 'news', 1, 99); ?>

                                <?php } ?>

                                <?php } else { ?>

                                    <?php echo latest('theme/notice_top', 'news', 1, 99); ?>

                                <?php } ?>


                                <script>

                                var swiper = new Swiper('.swiper-container-sgnb', {

                                    slidesPerView: 'auto', //가로갯수

                                    spaceBetween: 25, // 간격

                                    touchRatio: 0, // 드래그 가능여부(1, 0)


                                    breakpoints: { // 반응형 처리

                                        1024: {

                                            slidesPerView: 'auto',

                                            touchRatio: 0,

                                            spaceBetween: 20,

                                        },

                                        768: {

                                            slidesPerView: 'auto',

                                            touchRatio: 1,

                                            spaceBetween: 20,

                                        },

                                        10: {

                                            slidesPerView: 'auto',

                                            touchRatio: 1,

                                            spaceBetween: 20,

                                        }

                                    }


                                });

                                </script>

                        </li>


                        <div class="cb mobile"></div>

                        <li class="gnb_sub_div_ul1_li3">

                            

                            <form name="frmsearch1" action="<?php echo G5_SHOP_URL; ?>/search_product.php" onsubmit="return search_submit(this);">

                            <input type="text" name="sq" class="top_search_inp font-naver-EB" placeholder="검색어를 입력하세요." value="<?php echo stripslashes(get_text(get_search_string($sq))); ?>">

                            <button type="submit" class="top_search_btn">

                                <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>

                            </button>

                            </form>

                            

                            <script>

                            function search_submit(f) {

                                if (f.sq.value.length < 2) {

                                    alert("검색어는 두글자 이상 입력하세요.");

                                    f.sq.select();

                                    f.sq.focus();

                                    return false;

                                }

                                return true;

                            }

                            </script>

                            

                        </li>

                        

                        <li class="gnb_sub_div_ul1_li2">

                            <?php echo popular('theme/basic', 10); ?>

                        </li>

                        

                        <div class="cb"></div>

                    </ul>


                    <div class="cb"></div>

                </div>

                </div>

            

        </div>

        <!-- } -->

        

        




        

        <!-- 컨텐츠 { -->

        <div class="body_wrap">

               

             


                <?php 

                    if(!defined('_INDEX_')) {

                    $plus_url = $_SERVER['SCRIPT_NAME'];

                    $php_self = explode("/", $_SERVER['PHP_SELF']);

                    $url_cnt = count($php_self) - 1;

                    $this_page = $php_self[$url_cnt];

                ?>

                <div class="inner subs_wrap">


                    

                    <div class="title_div">

                        

                        <?php if($this_page == "orderinquiry.php" || 

                        $this_page == "orderinquiryview.php" || 

                        $this_page == "orderinquiry_fund.php" || 

                        $this_page == "cart.php" || 

                        $this_page == "wishlist.php" || 

                        $this_page == "point.php" || 

                        $this_page == "favo.php" || 

                        $this_page == "memo.php" || 

                        $this_page == "memo_view.php" || 

                        $this_page == "chat_list.php" || 

                        $this_page == "digital_code.php" ||

                        $bo_table == "qna") { ?>

    • 공유링크 복사
      미니홈 쪽지 구독하기
      구독하고 알림받기

      댓글목록

      profile_image
      리빌더미니홈 1:1 대화하기  8일 전

      안녕하세요.
      FTP정보 및 URL, 관리자 로그인정보를 비밀댓글로 알려주시면
      확인 후 수정처리 해드리겠습니다.

      감사합니다.

      2025-11-10 16:59

      profile_image
      no_profile 티로그미니홈 1:1 대화하기  7일 전

      사내 내부에서만 접근이 가능합니다. 리빌더측 IP를 알려주시면 등록 후 남겨 드리겠습니다

      2025-11-11 10:26