경로 질문입니다.

경로 질문입니다.

QA

경로 질문입니다.

본문

게시판에서 카테고리 변경하는거를 5.3에 적용하여 쓰고있는데

5.4 테마에 넣어쓰려니 경로때문인지 안되네요.

 

이경우 어떻게 해야 할까요?

 

<?php 
include_once('./_common.php'); 

$act = "선택변경"; 

// 게시판 관리자 이상 복사, 이동 가능 
if ($is_admin != 'board' && $is_admin != 'group' && $is_admin != 'super') 
    alert_close("게시판 관리자 이상 접근이 가능합니다."); 

$g5['title'] = '게시물 ' . $act; 
include_once(G5_PATH.'/head.sub.php'); 

$wr_id_list = ''; 
if ($wr_id) 
    $wr_id_list = $wr_id; 
else { 
    $comma = ''; 
    for ($i=0; $i<count($_POST['chk_wr_id']); $i++) { 
        $wr_id_list .= $comma . $_POST['chk_wr_id'][$i]; 
        $comma = ','; 
    } 

$catelist = $board['bo_category_list']; 
$list = explode('|',$catelist); 

?> 

 

<div id="copymove" class="new_win"> 
    <h1 id="win_title"><?php echo $g5['title'] ?></h1> 

    <form name="fboardmoveall" method="post" action="./category_update.php" onsubmit="return fboardmoveall_submit(this);"> 
    <input type="hidden" name="sw" value="<?php echo $sw ?>"> 
    <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>"> 
    <input type="hidden" name="wr_id_list" value="<?php echo $wr_id_list ?>"> 
    <input type="hidden" name="sfl" value="<?php echo $sfl ?>"> 
    <input type="hidden" name="stx" value="<?php echo $stx ?>"> 
    <input type="hidden" name="spt" value="<?php echo $spt ?>"> 
    <input type="hidden" name="sst" value="<?php echo $sst ?>"> 
    <input type="hidden" name="sod" value="<?php echo $sod ?>"> 
    <input type="hidden" name="page" value="<?php echo $page ?>"> 
    <input type="hidden" name="act" value="<?php echo $act ?>"> 
    <input type="hidden" name="url" value="<?php echo $_SERVER['HTTP_REFERER'] ?>"> 

    <div class="tbl_frm_categotry_update tbl_wrap"> 
        <table> 
        <caption>
           <?php echo $act ?>할 항목으로 체크해 주십시오.
        </caption> 
        <thead> 
        <tr> 
            <th scope="col"></th> 
            <th scope="col">분류목록</th> 
        </tr> 
        </thead> 
        <tbody> 
        <tr class=""> 
            <th class="td_chk"> 
                <label for="chk0" class="sound_only">[분류없음]</label> 
                <input type="radio" value="" id="chk0" name="chk_bo_table[]"> 
            </th> 
            <td> 
                <label for="chk0">[분류없음]</label> 
            </td> 
        </tr> 
        <?php for ($i=1; $i <= count($list); $i++) { 
            $atc_mark = ''; 
            $atc_bg = ''; 
        ?> 
        <tr class="<?php echo $atc_bg; ?>"> 
            <th class="td_chk"> 
                <label for="chk<?php echo $i ?>" class="sound_only"><?php echo $list[$i-1] ?></label> 
                <input type="radio" value="<?php echo $list[$i-1] ?>" id="chk<?php echo $i ?>" name="chk_bo_table[]"> 
            </th> 
            <td> 
                <label for="chk<?php echo $i ?>"> 
                    <?php echo $list[$i-1] ?> 
                    <?php echo $atc_mark; ?> :::::::::
                </label> 
            </td> 
        </tr> 
        <?php } ?> 
        </tbody> 
        </table> 
    </div> 

    <div class="win_btn"> 
        <input type="submit" value="<?php echo $act ?>" id="btn_submit" class="btn_submit"> 
    </div> 
    </form> 

</div> 

<script> 
$(function() { 
    $(".win_btn").append("<button type=\"button\" class=\"btn_cancel\">창닫기</button>"); 

    $(".win_btn button").click(function() { 
        window.close(); 
    }); 
}); 

function all_checked(sw) { 
    var f = document.fboardmoveall; 

    for (var i=0; i<f.length; i++) { 
        if (f.elements[i].name == "chk_bo_table[]") 
            f.elements[i].checked = sw; 
    } 

function fboardmoveall_submit(f) 

    var check = false; 

    if (typeof(f.elements['chk_bo_table[]']) == 'undefined') 
        ; 
    else { 
        if (typeof(f.elements['chk_bo_table[]'].length) == 'undefined') { 
            if (f.elements['chk_bo_table[]'].checked) 
                check = true; 
        } else { 
            for (i=0; i<f.elements['chk_bo_table[]'].length; i++) { 
                if (f.elements['chk_bo_table[]'][i].checked) { 
                    check = true; 
                    break; 
                } 
            } 
        } 
    } 

    if (!check) { 
        alert('게시물의 분류를 선택하세요.'); 

        return false; 
    } 

    document.getElementById('btn_submit').disabled = true; 

    f.action = './category_update.php'; 
    return true; 

</script> 

<?php 
include_once(G5_PATH.'/tail.sub.php'); 
?> 

 

이 질문에 댓글 쓰기 :

답변 1

안 되는 증상이 어떤 건가요?

답변을 작성하시기 전에 로그인 해주세요.
전체 123,122 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT