//파라미터정보 *************************************************************************************
$b_num = InputValue($b_num);
$b_type = InputValue($b_type);
//**************************************************************************************************
If ($b_num == "") { //일반등록
$w_mode= "W";
If ($b_type == "") { $b_type = "N"; }//값이 있으면 답변타입이다..
If ($b_type == "N") { $b_content = $a_writecontent; }
$b_open = "Y";
$b_sbjclr = "#ffffff";
}else If ($b_num != "" And $b_type == "R") { //답변글쓰기 일때
$w_mode= "WR";
//레코드필드
$R_Fields = "b_num, b_subject, b_content, b_ref, b_step, b_level";
$R_tablename_str = $a_tablename;
$R_WHERE_str = " WHERE b_num=".$b_num;
SelectQuery ($R_Fields, $R_tablename_str, $R_WHERE_str);
$b_subject = "RE:".$b_subject;
$b_content = "
------------------ 원문 -------------------------
".$b_content;
}Else If($b_num != ""){ //그냥 수정일때..
$w_mode = "M";
If ($is_ad_cms != "Y") { //관리자가아닐때 체크
If ($_SESSION["pwd_chk_".$a_num."_".$b_num] != "ok") { //체크통과했으면..
locationhref("pwd.php?prepage=modi&a_num=".$a_num."&b_num=".$b_num."&".$page_info);
}
}
//레코드필드
$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_file1, b_file2, b_file3, b_file4, b_file5,b_keyword";
$R_tablename_str = $a_tablename;
$R_WHERE_str = " WHERE b_num=".$b_num;
SelectQuery ($R_Fields, $R_tablename_str, $R_WHERE_str);
}
if($b_sdate == ""){
$b_sdate_y = date("Y");
$b_sdate_m = date("m");
$b_sdate_d = date("d");
}else{
$b_sdate_arr = explode("-", $b_sdate);
$b_sdate_y = $b_sdate_arr[0];
$b_sdate_m = $b_sdate_arr[1];
$b_sdate_d = $b_sdate_arr[2];
}
if($b_edate == ""){
$b_edate_y = date("Y");
$b_edate_m = date("m");
$b_edate_d = date("d");
}else{
$b_edate_arr = explode("-", $b_edate);
$b_edate_y = $b_edate_arr[0];
$b_edate_m = $b_edate_arr[1];
$b_edate_d = $b_edate_arr[2];
}
?>