116 lines
2.8 KiB
Plaintext
116 lines
2.8 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
d_no = request("d_no")
|
|
target_sn = request("target_sn")
|
|
go_url = request("go_url")
|
|
work_flag = request("work_flag")
|
|
reply = request("reply")
|
|
modi_reply = request("modi_reply")
|
|
|
|
modi_reply=replace(modi_reply,"%26","&")
|
|
modi_reply=replace(modi_reply,"%2B","+")
|
|
modi_reply=replace(modi_reply,"%3E",">")
|
|
modi_reply=replace(modi_reply,"%3C","<")
|
|
modi_reply=replace(modi_reply,"%3F","?")
|
|
modi_reply=replace(modi_reply,"%5C","\")
|
|
modi_reply=replace(modi_reply,"%5B","[")
|
|
modi_reply=replace(modi_reply,"%5D","]")
|
|
modi_reply=replace(modi_reply,"%2F","/")
|
|
modi_reply=replace(modi_reply,"%25","%")
|
|
|
|
if work_flag = "1" then '리플 삭제
|
|
query = "SELECT * "
|
|
query = query & "FROM 문서내용 "
|
|
query = query & "WHERE 문서번호 = '" & d_no & "' "
|
|
|
|
rsc.open query, adoConn, 1
|
|
if rsc.recordcount > 0 then
|
|
for i = 2 to 6
|
|
if cint(i) = cint(target_sn) then
|
|
else
|
|
if ISNULL(rsc("target9" & i)) OR rsc("target9" & i) = "" then
|
|
tmp_chk = tmp_chk + 1
|
|
end if
|
|
end if
|
|
next
|
|
end if
|
|
rsc.close
|
|
|
|
query = "UPDATE 문서내용 "
|
|
query = query & "SET "
|
|
if tmp_chk = 4 then
|
|
query = query & " target91 = null, "
|
|
end if
|
|
query = query & " target9" & target_sn & " = null "
|
|
query = query & "WHERE 문서번호 = '" & d_no & "' "
|
|
|
|
adoconn.execute query
|
|
|
|
elseif work_flag = "2" then '리플 삽입
|
|
query = "SELECT * "
|
|
query = query & "FROM 문서내용 "
|
|
query = query & "WHERE 문서번호 = '" & d_no & "' "
|
|
|
|
rsc.open query, adoConn, 1
|
|
if rsc.recordcount > 0 then
|
|
target91 = rsc("target91")
|
|
end if
|
|
rsc.close
|
|
|
|
if target91 = "" OR ISNULL(target91) then
|
|
for i = 2 to 6
|
|
if cint(i) = cint(target_sn) then
|
|
target91 = target91 & Session("loginuser") & "-" & Session("User_Number")
|
|
else
|
|
target91 = target91 & " "
|
|
end if
|
|
|
|
if i <> 6 then
|
|
target91 = target91 & "^^"
|
|
end if
|
|
next
|
|
else
|
|
array_tmp = split(target91, "^^")
|
|
array_tmp(target_sn - 2) = Session("loginuser") & "-" & Session("User_Number")
|
|
|
|
for i = 0 to UBOUND(array_tmp)
|
|
if i <> 0 then
|
|
tmp_target91 = tmp_target91 & "^^"
|
|
end if
|
|
tmp_target91 = tmp_target91 & array_tmp(i)
|
|
next
|
|
target91 = tmp_target91
|
|
end if
|
|
|
|
query = "UPDATE 문서내용 "
|
|
query = query & "SET "
|
|
query = query & " target91 = '" & target91 & "', "
|
|
query = query & " target9" & target_sn & " = '" & CheckWord(modi_reply) & "' "
|
|
query = query & "WHERE 문서번호 = '" & d_no & "' "
|
|
|
|
adoconn.execute query
|
|
|
|
end if
|
|
%>
|
|
<html>
|
|
<head>
|
|
<title>
|
|
|
|
</title>
|
|
<script language=javascript>
|
|
function goit(a, b)
|
|
{
|
|
alert('처리되었습니다');
|
|
|
|
document.pms.action = b + "?d_no=" + a;
|
|
document.pms.submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onLoad="goit('<%=d_no%>','<%=go_url%>')">
|
|
<form name="pms" method="post">
|
|
|
|
<input type="hidden" name="p_sn" value="<%=p_sn%>">
|
|
|
|
</body>
|
|
</html> |