묻고답하기

* 다음양식에 맞게 입력해주세요.

① 계정(호스팅-서버관리) 회사 이름 : cafe24.com


② php , mysql 버전 : 4.1


④ 에러나는 주소와 에러 부분 소스(필수) :

http://www.hajeon.com/bbs/zboard.php?id=qanda&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=55  

view.php

<?

/***************************************************************************
* 공통 파일 include
**************************************************************************/
        if(!$_view_included) {include "_head.php";}

/***************************************************************************
* 게시판 설정 체크
**************************************************************************/

// 사용권한 체크
        if($setup[grant_view]<$member[level]&&!$is_admin) Error("사용권한이 없습니다","login.php?id=$id&page=$page&page_num=$page_num&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&no=$no&s_url=".urlencode($REQUEST_URI));


// 현재 선택된 데이타가 있을때, 즉 $no 가 있을때 데이타 가져옴
        unset($data);
        $_dbTimeStart = getmicrotime();
        $data=mysql_fetch_array(mysql_query("select * from  $t_board"."_$id  where no='$no'"));
        $_dbTime += getmicrotime()-$_dbTimeStart;

        if(!$data[no]) Error("선택하신 게시물이 존재하지 않습니다","zboard.php?$href$sort");

// 이전글과 이후글의 데이타를 구함;
        if(!$setup[use_alllist]) {        
                $_dbTimeStart = getmicrotime();
                if($data[prev_no]) $prev_data=mysql_fetch_array(mysql_query("select * from  $t_board"."_$id  where no='$data[prev_no]'"));
                if($data[next_no]) $next_data=mysql_fetch_array(mysql_query("select * from  $t_board"."_$id  where no='$data[next_no]'"));
                $_dbTime += getmicrotime()-$_dbTimeStart;
        }

// 모든 목록 보기가 아닐때 관련글을 모두 읽어옴;;
        if(!$setup[use_alllist]) {        
                $_dbTimeStart = getmicrotime();
                $check_ref=mysql_fetch_array(mysql_query("select count(*) from $t_board"."_$id where division='$data[division]' and headnum='$data[headnum]'"));
                if($check_ref[0]>1) $view_result=mysql_query("select * from $t_board"."_$id  where division='$data[division]' and headnum='$data[headnum]' order by headnum desc,arrangenum");
                $_dbTime += getmicrotime()-$_dbTimeStart;
        }

// 간단한 답글의 데이타를 가지고옴;;
        $_dbTimeStart = getmicrotime();
        $view_comment_result=mysql_query("select * from $t_comment"."_$id where parent='+ '+ '$no' order by no asc");
        $_dbTime += getmicrotime()-$_dbTimeStart;

// zboard.php에서 인크루드시 대상 위치를 zboard.php로 설정
        if(!$_view_included) $target="view.php";
        else $target="zboard.php";

// 비밀글이고 패스워드가 틀리고 관리자가 아니면 에러 표시
        if($data[is_secret]&&!$is_admin&&$data[ismember]!=$member[no]&&$member[level]>$setup[grant_view_secret]) {
                if($member[no]) {
                        $secret_check=mysql_fetch_array(mysql_query("select count(*) from $t_board"."_$id where headnum='$data[headnum]' and ismember='$member[no]'"));
                        if(!$secret_check[0]) error("비밀글을 열람할 권한이 없습니다");
                } else {
                        $secret_check=mysql_fetch_array(mysql_query("select count(*) from $t_board"."_$id where headnum='$data[headnum]' and password=password('$password')"));
                        if(!$secret_check[0]) {
                                head();
                                $a_list="<a onfocus=blur() href='zboard.php?$href$sort'>";    
                                $a_view="<Zeroboard ";
                                $title="이 글은 비밀글입니다.<br>비밀번호를 입력하여 주십시요";
                                $input_password="<input type=password name=password size=20 maxlength=20 class=input>";
                                include $dir."/ask_password.php";
                                foot();
                                exit();
                        } else {
                                $secret_str = $setup[no]."_".$no;
                                @setcookie("zb_s_check",$secret_str);
                        }
                }
        }

// 현재글의 HIT수를 올림;;
        if(!eregi($setup[no]."_".$no,$HTTP_SESSION_VARS["zb_hit"])) {
                $_dbTimeStart = getmicrotime();
                mysql_query("update $t_board"."_$id set hit=hit+1 where no='$no'");
                $_dbTime += getmicrotime()-$_dbTimeStart;
                $hitStr=",".$setup[no]."_".$no;
                
                // 4.0x 용 세션 처리
                $zb_hit=$HTTP_SESSION_VARS["zb_hit"].$hitStr;
                session_register("zb_hit");
        }

// 이전글 정리
        if($data[prev_no]&&!$setup[use_alllist]) {
                $prev_comment_num="[".$prev_data[total_comment]."]"; // 간단한 답글 수
                if($prev_data[total_comment]==0) $prev_comment_num="";
                $a_prev="<a onfocus=blur() href='".$target."?".$href.$sort."&no=$data[prev_no]'>";
                $prev_subject=$prev_data[subject]=stripslashes($prev_data[subject])." ".$prev_comment_num;
                $prev_name=$prev_data[name]=stripslashes($prev_data[name]);
                $prev_data[email]=stripslashes($prev_data[email]);

                $temp_name = get_private_icon($prev_data[ismember], "2");
                if($temp_name) $prev_name="<img src='$temp_name' border=0 align=absmiddle>";

                if($setup[use_formmail]&&check_zbLayer($prev_data)) {
                        $prev_name = "<span $show_ip onMousedown="ZB_layerAction('zbLayer$_zbCheckNum','visible')" style=cursor:hand>$prev_name</span>";
                } else {
                        if($prev_data[ismember]) $prev_name="<a onfocus=blur() href="javascript:void(window.open('view_info.php?id=$id&member_no=$prev_data[ismember]','mailform','width=400,height=510,statusbar=no,scrollbars=yes,toolbar=no'))" $show_ip>$prev_name</a>";
                        else $prev_name="<div $show_ip>$prev_name</div>";
                }

                $prev_hit=stripslashes($prev_data[hit]);
                $prev_vote=stripslashes($prev_data[vote]);
                $prev_reg_date="<span title='".date("Y/m/d H:i:d",$prev_data[reg_date])."'>".date("Y/m/d",$prev_data[reg_date])."</span>";

                if(!isBlank($prev_email)||$prev_data[ismember]) {
                        if(!$setup[use_formmail]) $a_prev_email="<a onfocus=blur() href='mailto:$prev_email'>";
                        else $a_prev_email="<a onfocus=blur() href="javascript:void(window.open('view_info.php?to=$prev_email&id=$id&member_no=$prev_data[ismember]','mailform','width=400,height=500,statusbar=no,scrollbars=yes,toolbar=no'))">";
                        $prev_name=$a_prev_email.$prev_name."</a>";
                }

                $prev="";
                $prev_icon=get_icon($prev_data);

                // 이름앞에 붙는 아이콘 정의;;
                $prev_face_image=get_face($prev_data);

                // 스팸 메일러 금지용
                $prev_mail=$prev_data[email]="";
                $a_prev_email="<Zeroboard ";
        } else {
                $hide_prev_start="<!--";
                $hide_prev_end="-->";
        }

// 다음글 정리
        if($data[next_no]&&!$setup[use_alllist]) {
                $a_next="<a onfocus=blur() href='".$target."?".$href.$sort."&no=$data[next_no]'>";
                $next_comment_num="[".$next_data[total_comment]."]"; // 간단한 답글 수
                if($next_data[total_comment]==0) $next_comment_num="";
                $next_subject=$next_data[subject]=stripslashes($next_data[subject])." ".$next_comment_num;
                $next_name=$next_data[name]=stripslashes($next_data[name]);
                $next_data[email]=stripslashes($next_data[email]);

                $temp_name = get_private_icon($next_data[ismember], "2");
                if($temp_name) $next_name="<img src='$temp_name' border=0 align=absmiddle>";

                if($setup[use_formmail]&&check_zbLayer($next_data)) {
                        $next_name = "<span $show_ip onMousedown="ZB_layerAction('zbLayer$_zbCheckNum','visible')" style=cursor:hand>$next_name</span>";
                } else {
                        if($next_data[ismember]) $next_name="<a onfocus=blur() href="javascript:void(window.open('view_info.php?id=$id&member_no=$next_data[ismember]','mailform','width=400,height=510,statusbar=no,scrollbars=yes,toolbar=no'))" $show_ip>$next_name</a>";
                        else $next_name="<div $show_ip>$next_name</div>";
                }
                
                $next_hit=stripslashes($next_data[hit]);
                $next_vote=stripslashes($next_data[vote]);
                $next_reg_date="<span title='".date("Y/m/d H:i:d",$next_data[reg_date])."'>".date("Y/m/d",$next_data[reg_date])."</span>";
                if(!isBlank($next_email)||$next_data[ismember]) {
                        if(!$setup[use_formmail]) $a_next_email="<a onfocus=blur() href='mailto:$next_email'>";
                        else $a_next_email="<a onfocus=blur() href="javascript:void(window.open('view_info.php?to=$next_email&id=$id&member_no=$next_data[ismember]','mailform','width=400,height=500,statusbar=noscrollbars=yes,toolbar=no'))">";
                        $next_name=$a_next_email.$next_name."</a>";
                }

                $next_icon=get_icon($next_data);

                // 이름앞에 붙는 아이콘 정의;;
                $next_face_image=get_face($next_data);

                // 스팸 메일러 금지용
                $next_mail=$next_data[email]="";
                $a_next_email="<Zeroboard ";
        } else {
                $hide_next_start="<!--";
                $hide_next_end="-->";
        }


// 현재 선택된 글을 정리함
        list_check($data,1);

/****************************************************************************************
* 변수 설정
***************************************************************************************/

// 글보기에서 쓰는 변수 수정
        $subject=$data[subject];
        if($data[homepage]) $a_homepage="<a onfocus=blur() href='$data[homepage]' target=_blank>"; else $a_homepage="<Zetx"; // 홈페이지 주소 링크


/****************************************************************************************
* 버튼 정리
***************************************************************************************/

// 메일주소가 있으면 이름에 메일 링크
        if(!isBlank($email)||$data[ismember]) {
                if(!$setup[use_formmail]) $a_email="<a onfocus=blur() href='mailto:$email'+ '>";
                else $a_email="<a onfocus=blur() href="javascript:void(window.open('view_info.php?to=$email&id=$id&member_no=$data[ismember]','mailform','width=400,height=500,statusbar=no,scrollbars=yes,toolbar=no'))">";
        } else $a_email="<Zeroboard ";

// 글쓰기버튼
        if($is_admin||$member[level]<=$setup[grant_write]) $a_write="<a onfocus=blur() href='write.php?$href$sort&no=$no&mode=write&sn1=$sn1'>"; else $a_write="<Zeroboard ";

// 답글 버튼
        if(($is_admin||$member[level]<=$setup[grant_reply])&&$no&&$data[headnum]>-2000000000) $a_reply="<a onfocus=blur() href='write.php?$href$sort&no=$no&mode=reply&sn1=$sn1'>"; else $a_reply="<Zeroboard ";

// 목록 버튼
        if($is_admin||$member[level]<=$setup[grant_list]) $a_list="<a onfocus=blur() href='zboard.php?id=$id&page=$page&page_num=$page_num&category=$category&sn=$sn&ss=$ss&sc=$sc&keyword=$keyword&prev_no=$no&sn1=$sn1&divpage=$divpage&select_arrange=$select_arrange&desc=$desc'>"; else $a_list="<Zeroboard  ";

// 취소버튼
        $a_cancel="<a onfocus=blur() href='$PHP_SELF?id=$id'>";

// 삭제버튼
        if(($is_admin||$member[level]<=$setup[grant_delete]||$data[ismember]==$member[no]||!$data[ismember])&&!$data[child]) $a_delete="<a onfocus=blur() href='delete.php?$href$sort&no=$no'>"; else $a_delete="<Zeroboard ";

// 수정버튼
        if(($is_admin||$member[level]<=$setup[grant_delete]||$data[ismember]==$member[no]||!$data[ismember])&&$no) $a_modify="<a onfocus=blur() href='write.php?$href$sort&no=$no&mode=modify'>"; else $a_modify="<Zeroboard ";

// 파일링크
        if($file_name1) $a_download1="<a onfocus=blur() href='download.php?$href$sort&no=$no&file=1'>"; else $a_download1="<Zeroboard ";
        if($file_name2) $a_download2="<a onfocus=blur() href='download.php?$href$sort&no=$no&file=2'>"; else $a_download2="<Zeroboard ";

// 추천버튼
        if(!eregi($setup[no]."_".$no,$HTTP_SESSION_VARS["zb_vote"])) $a_vote="<a onfocus=blur() href='vote.php?$href$sort&no=$no'>";
        else $a_vote = "<Zeroboard ";

// 사이트 링크를 나타나게 하는 변수;;
        if(!$sitelink1) {$hide_sitelink1_start="<!--";$hide_sitelink1_end="-->";}
        if(!$sitelink2) {$hide_sitelink2_start="<!--";$hide_sitelink2_end="-->";}

// 파일 다운로드를 나타나게 하는 변수;;
        if(!$file_name1) {$hide_download1_start="<!--";$hide_download1_end="-->";}
        if(!$file_name2) {$hide_download2_start="<!--";$hide_download2_end="-->";}

// 홈페이지를 나타나게 하는 변수
        if(!$data[homepage]) {$hide_homepage_start="<!--";$hide_homepage_end="-->";}

// E-MAIL 을 나타나게 하는 변수
        if(!$data[email]) {$hide_email_start="<!--";$hide_email_end="-->";}

// 코멘트를 안 보이게 하는 변수;;
        if(!$setup[use_comment])
        {$hide_comment_start="<!--"; $hide_comment_end="-->";}

// 회원로그인이 되어 있으면 코멘트 비밀번호를 안 나타나게;;
        if($member[no]) {
                $c_name=$member[name]; $hide_c_password_start="<!--"; $hide_c_password_end="-->";
                $temp_name = get_private_icon($member[no], "2");
                if($temp_name) $c_name="<img src='$temp_name' border=0 align=absmiddle>";
                $temp_name = get_private_icon($member[no], "1");
                if($temp_name) $c_name="<img src='$temp_name' border=0 align=absmiddle>".$c_name;
        } else $c_name="<input type=text name=name size=8 maxlength=10 class=input value="".$HTTP_SESSION_VARS["zb_writer_name"]."">";


/****************************************************************************************
* 실제 출력 부분
***************************************************************************************/
// 헤더 출력
        if(!$_view_included)head();

// 상단 현황 부분 출력
        if(!$_view_included) {
                $_skinTimeStart = getmicrotime();
                include "$dir/setup.php";
                $_skinTime += getmicrotime()-$_skinTimeStart;
        }


// 내용보기 출력
        $_skinTimeStart = getmicrotime();
        include $dir."/view.php";
        $_skinTime += getmicrotime()-$_skinTimeStart;

// 코멘트 출력;;
        if($setup[use_comment]) {
                while($c_data=mysql_fetch_array($view_comment_result)) {
                        $comment_name=stripslashes($c_data[name]);
                        $temp_name = get_private_icon($c_data[ismember], "2");
                        if($temp_name) $comment_name="<img src='$temp_name' border=0 align=absmiddle>";
                        $c_memo=trim(stripslashes($c_data[memo]));
                        $c_reg_date="<span title='".date("Y년 m월 d일 H시 i분 s초",$c_data[reg_date])."'>".date("Y/m/d",$c_data[reg_date])."</span>";
                        if($c_data[ismember]) {
                                if($c_data[ismember]==$member[no]||$is_admin||$member[level]<=$setup[grant_delete]) $a_del="<a onfocus=blur() href='del_comment.php?$href$sort&no=$no&c_no=$c_data[no]'>";
                                else $a_del=" <Zeroboard ";
                        } else $a_del="<a onfocus=blur() href='del_comment.php?$href$sort&no=$no&c_no=$c_data[no]'>";

                        // 이름앞에 붙는 아이콘 정의;;
                        $c_face_image=get_face($c_data);

                        if($is_admin) $show_ip=" title='$c_data[ip]' "; else $show_ip="";    

                        if($setup[use_formmail]&&check_zbLayer($c_data)) {
                                $comment_name = "<span $show_ip onMousedown="ZB_layerAction('zbLayer$_zbCheckNum'+ ','visible')" style=cursor:hand>$comment_name</span>";
                        } else {
                                if($c_data[ismember]) $comment_name="<a onfocus=blur() href="javascript:void(window.open('view_info.php?id=$id&member_no=$c_data[ismember]','mailform','width=400,height=510,statusbar=no,scrollbars=yes,toolbar=no'))" $show_ip>$comment_name</a>";
                                else $comment_name="<div $show_ip>$comment_name</div>";
                        }

                        $_skinTimeStart = getmicrotime();
                        include $dir."/view_comment.php";
                        $_skinTime += getmicrotime()-$_skinTimeStart;
                        flush();
                }
                if($member[level]<=$setup[grant_comment]) {
                        $_skinTimeStart = getmicrotime();
                        include "$dir/view_write_comment.php";
                        $_skinTime += getmicrotime()-$_skinTimeStart;
                }
        }

// 위, 아래글 출력, 코멘트, 버튼 출력
        $_skinTimeStart = getmicrotime();
        include $dir."/view_foot.php";
        $_skinTime += getmicrotime()-$_skinTimeStart;

// 관련글을 출력
        if($check_ref[0]>1) {

                $_skinTimeStart = getmicrotime();
                include "$dir/view_list_head.php";
                $_skinTime += getmicrotime()-$_skinTimeStart;

                while($data=mysql_fetch_array($view_result)) {
                        // 데이타 정렬
                        list_check($data);

                        if($data[no]==$no) $number="<img src=$dir/arrow.gif border=0>"; else $number=" ";
        
                        // 목록을 출력하는 부분
                        $_skinTimeStart = getmicrotime();
                        include $dir."/view_list_main.php";
                        $_skinTime += getmicrotime()-$_skinTimeStart;
                }

                $_skinTimeStart = getmicrotime();
                include "$dir/view_list_foot.php";
                $_skinTime += getmicrotime()-$_skinTimeStart;
        }

        

// layer 출력
        if($zbLayer&&!$_view_included) {
                $_skinTimeStart = getmicrotime();
                echo "n<script>".$zbLayer."n</script>";
                $_skinTime += getmicrotime()-$_skinTimeStart;
                unset($zbLayer);
        }

// 마지막 부분 출력
        if(!$_view_included) foot();

/***************************************************************************
* 마무리 부분 include
**************************************************************************/
        if(!$_view_included) {
                $_skinTimeStart = getmicrotime();
                include "_foot.php";
                $_skinTime += getmicrotime()-$_skinTimeStart;
        }

?>



⑥ 질문 내용 :

홈페이지 우측에는 레이어를 이용한 메뉴바가 있습니다. 처음에 들어갈때는 이상없이 나타나서 움직이는데
내용글을 읽게 되면 메뉴바가 움직이질 않습니다.
해결해주시면 정말 감사하겠네요.

http://www.hajeon.com/bbs/zboard.php?id=qanda

<- 이곳에서는 이상없음..


http://www.hajeon.com/bbs/zboard.php?id=qanda&page=1&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=55  <- 이곳에서는 우측 layer가 펴지지 않음..

해결해주세요..제발
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
이형영 우측에 있는 레이어가 안 펴지는데요. 해결부탁..  
샐리 세션과 쿠키는 어떻게 다른건지요? [1] 2007.08.10
곰돌이 두루이드 폼필드 수정시 에러나는거요; [1] 2007.08.10
유병화 나모에서  이거 대신 사용할수 있는 테그... [5] 2007.08.10
ann [영상관련질문]임포팅 잘되던 ''mov''동영상 파일이 갑자기 에러나면서 import가 안되네요-_-  
곽철의 Modal, Modeless 창에 대한 질문  
마론 게시판 지기를 자르려고 하는데 [1] 2007.08.10
걸러리 PHP 세션질문입니다. [3] 2007.08.10
한상명 [포토샵] 글씨가 써지지 않습니다.  
Lucia 제가 포토샵 초짜라서 그런데요. [1] 2007.08.10
김정환 포토샾에서 글씨를 쓰려구하는데...  
dragon http://를 붙이지 않으면 인터넷페이지가 열리지 않아요.. [2] 2007.08.10
제이 한 개의 서버에서 두개의 홈피 운영하는 방법이 궁금합니다. [1] 2007.08.10
mcmic 외부접속이 되지 않습니다. [2] 2007.08.10
Na:) 답변부탁드립니다. [2] 2007.08.10
조성미 서버에서 PHP를 지원 안한다네여... [2] 2007.08.10
뛰뛰빵빵''㉨'' 잇잖아요.. [3] 2007.08.10
제주도의향기 무료 홈피레이아웃에서요~ [1] 2007.08.10
☆*HaNuL*☆ php로 폼메일 만들때 서버쪽 조건? [1] 2007.08.10
구름 회원정보 관련 최근로그인 나타내기.. [1] 2007.08.10
stonefree 음악링크에 관해 질문드려요. [1] 2007.08.10
김희경 아무나 못 열어보게~ [4] 2007.08.10
최재갑 자바스크립트 질문... [4] 2007.08.10
강정수 가격대별 검색에 관한 질문  
enjoymina 플래쉬 메뉴가 해당 페이지를 인식하게하려면...  
박희정 글의 위가 짤렸어요.  
다라나 모질라에서 클립보드로 데이터 넣는 자바 스크립트가 있나요? [1] 2007.08.10
김준근 카운터 다는 법 [1] 2007.08.10
김성용 쇼핑몰.. [1] 2007.08.10
CityBoys-Life 제로보드에서의 "인기검색어"? [3] 2007.08.10