ParseExec($sql); //레코드필드 $R_Fields = "b_num, b_type, b_id, b_name, b_pwd, b_subject, b_email, b_jumin, b_phone1, b_phone2, b_phone3, b_cate, b_catename, b_noticechk, b_content, b_ip, b_count, b_look, b_open, b_ref, b_step, b_level, b_regdate, b_chuchun, b_sbjclr, b_sdate, b_edate, b_temp1, b_temp2, b_temp3, b_temp4, b_temp5, b_temp6, b_temp7, b_temp8, b_file1, b_file2, b_file3, b_file4, b_file5,b_keyword,b_c_count"; $R_tablename_str = $a_tablename; $R_WHERE_str = " WHERE b_num=".$b_num; SelectQuery ($R_Fields, $R_tablename_str, $R_WHERE_str); If ($is_ad_cms != "Y") { //관리자가아닐때 체크 //공개/비공개 체크************************************************************************************* if ($a_type == "Y") { //공개여부 사용일때 if($b_open == "N"){ //비공개일때 If ($_SESSION["pwd_chk_".$a_num."_".$b_num] != "ok") { locationhref("pwd.php?prepage=vie&a_num=".$a_num."&b_num=".$b_num."&".$page_info); } } } //************************************************************************************************** } if($a_edit == "N"){ //에디터 사용하지 않을때... $b_content = getTextmode($b_content); $b_temp8 = getTextmode($b_temp8); } //이전글 ------------------------------------------------------------------------------------------------ $sql_p_opt1 = " WHERE b_look = 'Y' AND b_num <> ".$b_num." AND b_ref <= ".$b_ref." AND b_step >=".$b_step; $sql_p_orderby = " ORDER BY b_ref DESC, b_step ASC"; //답변글 사용하지 않을때..적용 If ($a_reply == "N") { $sql_p_opt2 = " AND b_type='N'"; } $sql_p = "SELECT b_num, b_subject FROM ".$a_tablename; $sql_p = $sql_p . $sql_p_opt1 . $sql_p_opt2 . $sql_p_orderby." limit 0,1";; $mysql->ParseExec($sql_p); If ($mysql->RowCount() == 0) { //없으면 $prev_b_num = ""; } else { $mysql->FetchInto(&$rs_prev); $prev_b_num = $rs_prev[b_num]; $prev_b_subject = $rs_prev[b_subject]; } //이전글끝 ------------------------------------------------------------------------------------------------ //다음글 ------------------------------------------------------------------------------------------------ $sql_p_opt1 = " WHERE b_look = 'Y' AND b_num <> ".$b_num." AND b_ref >= ".$b_ref." AND b_step <=".$b_step; $sql_p_orderby = " ORDER BY b_ref ASC, b_step DESC"; //답변글 사용하지 않을때..적용 If ($a_reply == "N") { $sql_p_opt2 = " AND b_type='N'"; } $sql_p = "SELECT b_num, b_subject FROM ".$a_tablename; $sql_p = $sql_p . $sql_p_opt1 . $sql_p_opt2 . $sql_p_orderby ." limit 0,1"; $mysql->ParseExec($sql_p); //Set rs_next = dbcon.execute(sql_p) If ($mysql->RowCount() == 0) { //없으면 $next_b_num = ""; } else { $mysql->FetchInto(&$rs_next); $next_b_num = $rs_next[b_num]; $next_b_subject = $rs_next[b_subject]; } //다음글끝 ------------------------------------------------------------------------------------------------ ?>
".$b_cate_str[$b_cate]."";?>
작성자
작성일
첨부파일 <?=$b_file_name?> ( byte)  
내용
답변
답변부서
처리기간
처리현황
내용
답변 쓰기 수정 삭제 목록