<% If b_num = "" then '//일반등록 w_mode = "W" If b_type = "" then b_type = "N" '//값이 있으면 답변타입이다.. If b_type = "N" then b_content = a_writecontent b_open = "Y" b_sbjclr = "#ffffff" b_sdate = inputValue( request.queryString("b_sdate") ) b_edate = inputValue( request.queryString("b_edate") ) m_mobile = SESSION("ss_m_mobile") If m_mobile = "" Then m_mobile = "--" m_mobile_arr = Split(m_mobile, "-") b_phone1 = m_mobile_arr(0) b_phone2 = m_mobile_arr(1) b_phone3 = m_mobile_arr(2) elseIf b_num <> "" And b_type = "R" then '//답변글쓰기 일때 w_mode = "WR" '//레코드필드 R_Fields = "b_num, b_subject, b_content, b_ref, b_step, b_level, b_open" R_tablename_str = a_tablename R_WHERE_str = " WHERE b_num=" & b_num Call SelectQuery ( R_Fields, R_tablename_str, R_WHERE_str ) b_subject = "RE:" & b_subject b_content = "



------------------ 원문 -------------------------

" & b_content ElseIf b_num <> "" then '//그냥 수정일때.. w_mode = "M" '//레코드필드 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 Call SelectQuery (R_Fields, R_tablename_str, R_WHERE_str) If is_ad_cms <> "Y" and ( b_id <> session("ss_m_id") and session("ss_m_id") <> "" ) then '//관리자가아니고 내글도 아닐때 If SESSION("pwd_chk_" & a_num & "_" & b_num) <> "ok" then '//체크통과했으면.. Call locationhref("pwd.asp?prepage=modi&a_num=" & a_num & "&b_num=" & b_num & "&" & page_info) End if End if End if If b_sdate = "" then b_sdate = Date() End if b_sdate_arr = Split(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 = "" then b_edate = b_sdate End If b_edate_arr = Split(b_edate, "-") b_edate_y = b_edate_arr(0) b_edate_m = b_edate_arr(1) b_edate_d = b_edate_arr(2) prepage = Request.ServerVariables("path_info") & "?" & Request.ServerVariables("query_string") %>
&proc_mode=write_ok" enctype="multipart/form-data" onsubmit="return w_chk();">
<%If a_type = "N" Or a_type="T" then '//공개여부%> <%End if%>
* 표시가 된 곳은 필수 항목입니다.
<%If a_type = "Y" then '//공개/비공개%> <%End if%> <%If a_phone = "Y" then '//전화번호%> <%End if%> <%If a_email = "Y" then '//이메일%> <%End if%> <%If a_home = "Y" then '//홈페이지%> <%End if%> <%If a_cate = "Y" and b_type <> "R" then '//분류%> <%End if%> <% If a_upload = "Y" then '//첨부파일 사용일때 %> <% End if %>
<%=replace(tit_name, " | ", "")%>
글쓰기
* 한글만 사용하실 수 있습니다.
* 10자 이내의 영문/숫자만 사용하실 수 있습니다.
공개여부 /> />
* @포함한 이메일주소를 입력하세요.
*일정기간 ~
/>
문자알람 수신번호 : - -
※ 문자알림설정시 일정명으로 문자메세지가 발송됩니다.
<%If a_edit = "Y" then '//에디터가 사용일때 '//$_SESSION["fck_filepath"] = "/userfiles/"; //첨부파일경로 '//$_SESSION["fck_filepath"] = "/data/popup/"; //첨부파일경로 session("fck_filepath") = "/data/board/"& a_tablename & "/" '업로드 경로(동적경로를 위해 세션사용) 'response.write session("fck_filepath") Set oFCKeditor = New FCKeditor oFCKeditor.BasePath = "/fckeditor/" oFCKeditor.value = b_content oFCKeditor.ToolbarSet = "Basic3" oFCKeditor.Create "b_content" Else %> <%End if%>
첨부파일 <% file_cnt = 0 for z=1 to a_upload_len b_file_name = eval("b_file" & z) %> <% If b_file_name <> "" then file_cnt = file_cnt + 1 %> <%=b_file_name%> 첨부파일 삭제하기
<% End if next %> <% 'nn_basePath 하위에 Upload 폴더와 nn_uploadPath에 지정될 폴더는 인터넷게스트계정는 또는 Users 계정에 수정/쓰기 권한이 있어야 합니다. nn_basePath = "/content/board/nnupload/" 'nn업로드가 설치된 경로 nn_paramFilter = "." & Replace(a_nofile,",","|.") '"|.jpg|.zip|.txt|.xls" '업로드 허용 파일 nn_paramMaxFileSize = a_nofilesize '업로드 용량(MB) nn_paramMaxFileNumber = a_upload_len - file_cnt '업로드 개수 nn_width = "100%" '가로크기 nn_height = "150px" '세로크기 nn_uploadPath = "/data/board/" & a_tablename & "/" '업로드할 경로 nn_key = Application("nn_key") '키 %> <% If CInt(a_upload_len) > file_cnt then createUpload() End if %>
목록